Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (53)

  • 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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

Sur d’autres sites (9219)

  • Extract audio from video in mp3 format using android-ffmpeg-library

    28 mai 2014, par user2870161

    I want extrat audio from any type of video file and save it in mp3 format using android-ffmpeg-library.

    My most of work is done here i am create wav file using this code but problame is when i create mp3 file it make only 0kb file in sdcard.

    I hope I’ve made myself clear, and thanks for taking the time to read this.

       if (inputPath == null || outputPath == null) {
           throw new IllegalStateException("Need an input and output filepath!");
       }  

       final List<string> cmd = new LinkedList<string>();


       String baseDir = Environment.getExternalStorageDirectory().getAbsolutePath();
       String fileName = "3.mp4";
       String fileName1 = "2.mp3";

       String path  = baseDir + "/" + fileName;
       String path1  = baseDir + "/" + fileName1;

         File f = new File(path);

         if(f.exists()){
             System.out.println("File existed");
         }else{
             System.out.println("File not found!");
         }

         cmd.add(mFfmpegPath);
         cmd.add("-i");
         cmd.add(path);

         cmd.add("-vn");
         cmd.add("-acodec");
         cmd.add("copy");

         cmd.add(path1);








       final ProcessBuilder pb = new ProcessBuilder(cmd);
       return new ProcessRunnable(pb);
    </string></string>
  • 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.

    &#xA;

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

    &#xA;

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

    &#xA;

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

    &#xA;

    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;