Recherche avancée

Médias (91)

Autres articles (64)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (11684)

  • How to create video from multiple gallery images store in array flutter ffmpeg

    26 janvier 2023, par Ammara

    I select images from gallery using multi_image_picker in flutter and store all images in array.

    


      try {
   resultList = await 
   MultiImagePicker.pickImages(
    maxImages: 300,
    enableCamera: true,
    selectedAssets: images,
    materialOptions: MaterialOptions(
      actionBarTitle: "Photo Editor and Video 
   Maker App",
    ),
  );
 }


    


    User can select images from gallery and store in resultlist array.
Now I want to pass this array to ffmpeg to create video from all these images.

    


    I try a lot and search almost all sites but fail. Here is my code.

    


    Future<void> ConvertImageToVideo () async{&#xA;const String BASE_PATH = &#x27;/storage/emulated/0/Download/&#x27;;&#xA;const String AUDIO_PATH = BASE_PATH &#x2B; &#x27;audiio.mp3&#x27;;&#xA;const String IMAGE_PATH = BASE_PATH &#x2B; &#x27;image002.png&#x27;;&#xA;const String OUTPUT_PATH = BASE_PATH &#x2B; &#x27;output02.mp4&#x27;;&#xA;// final FlutterFFmpeg _flutterFFmpeg = FlutterFFmpeg();&#xA;if(await Permission.storage.request().isGranted){&#xA;  List<asset> resultlist  = <asset>[];&#xA;  String commandToExecute =&#xA;      &#x27;-r 15 -f mp3 -i ${AUDIO_PATH} -f image2 -i ${resultlist} -y ${OUTPUT_PATH}&#x27;;&#xA;  await FFmpegKit.execute(commandToExecute).then((session) async {&#xA;    final returnCode = await session.getReturnCode();&#xA;    final state = await session.getState();&#xA;    if (ReturnCode.isSuccess(returnCode)) {&#xA;      print("ruuning   "&#x2B;state.toString());&#xA;      print("video created " &#x2B; returnCode.toString());&#xA;    } else if (ReturnCode.isCancel(returnCode)) {&#xA;      print("video cancel "  &#x2B; returnCode.toString());&#xA;    } else {&#xA;      print("error " );&#xA;    }&#xA;  });&#xA;}else if (await Permission.storage.isPermanentlyDenied) {&#xA;  openAppSettings();&#xA;}&#xA;</asset></asset></void>

    &#xA;

    }

    &#xA;

  • Unrecognized option 'crf'

    6 septembre 2022, par Arjit Kaushal

    I am trying compress video using ffmpeg but i am facing errors in the command.&#xA;Although it runs perfectly fine on my linux terminal.( ffmpeg -i input.avi -vcodec libx264 -crf 24 output.avi).

    &#xA;

    my code :

    &#xA;

    void _compress() {&#xA;        if (_videoModel == null) return;&#xA;        String inputPath = _videoModel!.originalCachePath;&#xA;        String outputPath = _videoModel!.editCachePath;&#xA;    &#xA;        FFmpegKit.execute("-i $inputPath -vcodec libx264 -crf 24 -y $outputPath")&#xA;            .then((session) async {&#xA;          final returnCode = await session.getReturnCode();&#xA;          if (ReturnCode.isSuccess(returnCode)) {&#xA;            Navigator.pushNamed(context, PreviewPage.routeName,&#xA;                arguments: _videoModel);&#xA;          } else if (ReturnCode.isCancel(returnCode)) {&#xA;            print("compress cancel");&#xA;          } else {&#xA;            print("compress error : $returnCode");&#xA;            FFmpegKitConfig.enableLogCallback((log){&#xA;              final message = log.getMessage();&#xA;              print(message);&#xA;            });&#xA;    &#xA;    &#xA;          }&#xA;        });&#xA;      }&#xA;

    &#xA;

    I am facing the following errors :&#xA;Unrecognized option 'crf',&#xA;I/flutter (31056) : Error splitting the argument list,&#xA;Option not found.

    &#xA;

  • Combining audio and multiple videos with FFMPEG [closed]

    6 novembre 2023, par Lee P

    I am working on a ffmpeg script to combine two videos with one audio file. The first video file should start after about 6 seconds and the second after about 40 seconds, and there should be a padding with a black screen between the two videos.&#xA;However, it only seems to add the first video clones the final frame as the padding.

    &#xA;

    Here is my current script :

    &#xA;

    ffmpeg -i video_0.mp4 -i video_1.mp4 -i audio.mp4 -filter_complex "[0:v] tpad=start_duration=5927ms:start_mode=add:color=black:stop_mode=add:color=black; [1:v] tpad=start_duration=44901ms:start_mode=add:color=black:stop_mode=add:color=blackconcat=n=2" -map 2:a -f mp4 -movflags &#x2B;faststart composite_recording.mp4&#xA;

    &#xA;

    The final video timing should be :

    &#xA;

    00:00-00:06 — black screen
    &#xA;00:06-00:24 — first video
    &#xA;00:24-00:40 — black screen
    &#xA;00:40-00:48 — second video

    &#xA;

    I tried setting different values for the tpad start_duration for the second video and expected it to start the second video at around 40 seconds into the audio, however it didn't change anything.

    &#xA;