
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (100)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...)
Sur d’autres sites (5727)
-
avfilter/vf_bilateral : stop using sigmaS as percent of width/height
17 juillet 2020, par Paul B Mahol -
electron app fluent-ffmpeg " Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height"
27 juillet 2020, par MartinI am trying to run an ffmpeg command in my electron app. I have created the function ffmpegTest() based off instructions for setting up ffmpeg here :


https://alexandercleasby.dev/blog/use-ffmpeg-electron


and the example query for ffmpeg-fluent here :


https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/blob/master/examples/image2video.js


function ffmpegTest(){
 console.log('ffmpeg-test')
 //require the ffmpeg package so we can use ffmpeg using JS
 const ffmpeg = require('fluent-ffmpeg');
 //Get the paths to the packaged versions of the binaries we want to use
 const ffmpegPath = require('ffmpeg-static').replace(
 'app.asar',
 'app.asar.unpacked'
 );
 const ffprobePath = require('ffprobe-static').path.replace(
 'app.asar',
 'app.asar.unpacked'
 );
 //tell the ffmpeg package where it can find the needed binaries.
 ffmpeg.setFfmpegPath(ffmpegPath);
 ffmpeg.setFfprobePath(ffprobePath);
 
 var imgPath = "C:\\Users\\marti\\Documents\\martinradio\\uploads\\israel song festival 1979\\front.jpg"
 var outputPath = "C:\\Users\\marti\\Documents\\martinradio\\uploads\\israel song festival 1979\\output.m4v"

 // make sure you set the correct path to your video file
 var proc = ffmpeg(imgPath)
 // loop for 5 seconds
 .loop(5)
 // using 25 fps
 .fps(25)
 // setup event handlers
 .on('end', function() {
 console.log('file has been converted succesfully');
 })
 .on('error', function(err) {
 console.log('an error happened: ' + err.message);
 })
 // save to file
 .save(outputPath);

 console.log("end of ffmpeg-test")
}



it is trying to convert an image to a video, my filepaths are accurate, but when I run this function, I get this output in console :


ffmpeg-test
index.js:137 end of ffmpeg-test
index.js:132 an error happened: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!



After the error prints out, I can see my output.m4v file inside my output folder, but it is 0KB in size and wont open. Is there some way I can specify my bit_rate / rate / width / height in my fluent-ffmpeg command so I can run this simple ffmpeg command ?


thanks


-
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
28 août 2020, par bbdangarI am using this library : com.arthenica:mobile-ffmpeg-full:4.4


Getting this error message while running the command :


final String command = "-y -i "+ inputPath +" -ar 22050 -hls_list_size 1000000 -hls_time 2 -s 640x360 " + outputPath;



here is the complete code :


private void convertVideo() {
 String inputPath = "/storage/emulated/0/Download/video.mp4";
 String outputPath = "/storage/emulated/0/Download/output.m3u8";
 final String command = "-y -i "+ inputPath +" -ar 22050 -hls_list_size 1000000 -hls_time 2 -s 640x360 " + outputPath;
 FFmpeg.executeAsync(command, new ExecuteCallback() {
 @Override
 public void apply(long executionId, int returnCode) {

 if (returnCode == RETURN_CODE_SUCCESS) {
 Log.i(TAG, "Command execution completed successfully.");
 } else if (returnCode == RETURN_CODE_CANCEL) {
 Log.i(TAG, "Command execution cancelled by user.");
 } else {
 Log.i(TAG, String.format("Command execution failed with rc=%d and the output below.", returnCode));
 Config.printLastCommandOutput(Log.INFO);
 }
 }
 });

 }



here is output log :


2020-08-28 07:05:59.355 10725-10820 W/mobile-ffmpeg: [graph 0 input from stream 0:0 @ 0xe2306c80] sws_param option is deprecated and ignored
2020-08-28 07:05:59.448 10725-10820 E/mobile-ffmpeg: [h264_v4l2m2m @ 0xcb442c00] can't configure encoder
2020-08-28 07:05:59.448 10725-10820 E/mobile-ffmpeg: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
2020-08-28 07:05:59.463 10725-10820 I/mobile-ffmpeg: Conversion failed!
2020-08-28 07:05:59.465 10725-10725 I/mobile-ffmpeg: ffmpeg version v4.4-dev-416 Copyright (c) 2000-2020 the FFmpeg developers