
Recherche avancée
Autres articles (101)
-
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 : (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (7669)
-
Node-Fluent-ffmpeg stops with Error initializing complex filters. Invalid argument
28 août 2020, par V.PanichkinI use node-fluent-ffmpeg to generate ffmpeg command. I created a node.js app, but it throws an exception :


Error: ffmpeg exited with code 1: Error initializing complex filters.
Invalid argument

 at ChildProcess.<anonymous> (/home/victor/Documents/work/recorder_ws/node_modules/fluent-ffmpeg/lib/processor.js:182:22)
 at ChildProcess.emit (events.js:315:20)
 at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
</anonymous>


The command that was generated by Node-Fluent-Ffmpeg is


ffmpeg -i /home/user/videos/1.webm -i /home/user/videos/3.webm -i /home/user/videos/4.webm -i /home/user/videos/5.webm -y -filter_complex "[0:v] scale=qvga [a0];[1:v] scale=qvga [a1];[2:v] scale=qvga [a2];[3:v] scale=qvga [a3];[a0][a1][a2][a3]xstack=inputs=4:layout=0_0|w0_0|0_h0|w0_h0[out]" -map "[out]" -c:v libx264 -t '30' ./server-generated.mkv



I checked it several times and didn't find any problem. Afterwards, I run this generated command directly in the console and it works fine.


Could someone tell me why node-fluent-ffmpeg cannot run this command with a valid ffmpeg command and throws invalid argument exception ?


-
FFMPEG : high quality animated gif ?
5 mai 2017, par David HopeI’m generating animated gif from a video on my server.
The generated animated gif is not really high quality and it looks like the pixels are huge.
Example :
This is how I generate the gif :
shell_exec("/usr/bin/ffmpeg -i video.mkv -vf scale=500:-1 -t 10 -r 10 image.gif");
I did a search on google and came across this code :
shell_exec("/usr/bin/ffmpeg -i video.mkv -r 20 -f image2pipe -vcodec ppm - | convert -delay 5 - output.gif");
But the code above doesn’t do anything and no output.gif is being generated at all.
Could someone please let me know if there is a clear way to generate a high
quality gif using ffmpeg
?There are some tutorials that I came across but none of them worked for me and some of them involves using imagemagic which i dont have access to.
-
How can I include all ts files ffmpeg generates in the m3u8 playlist ?
14 février 2015, par PobreI have the latest ffmpeg version 2.5 and I am trying to convert a mp4 file into HLS files. From what I understand ffmpeg can generate ts and m3u8 playlist. When ffmpeg finishes, the playlist just contains last few ts files generated. It appears it’s being overwritten. What parameters must I pass to ffmpeg to generate a complete m3u8 list of all the ts files ?
final m3u8 generated :
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:9
#EXT-X-MEDIA-SEQUENCE:50
#EXTINF:9.000000,
480x27050.ts
#EXTINF:9.000000,
480x27051.ts
#EXTINF:9.000000,
480x27052.ts
#EXTINF:9.000000,
480x27053.ts
#EXTINF:0.466667,
480x27054.ts
#EXT-X-ENDLISTffmpeg arguments :
ffmpeg -i test_2.mp4 -c:a aac -strict experimental -ac 2 -ar 48k -ab 64k -c:v libx264 -s 480x270 -aspect 16:9 -b:v 400k -r 15 -g 45 -profile:v baseline -level 3.0 -f hls -hls_time 9 480x270.m3u8