
Recherche avancée
Autres articles (83)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (4075)
-
ffmpeg get last x seconds with high accuracy
12 mars 2018, par rbarabI would like to batch process mp4 videos, getting the last x seconds of each and saving them to individual files.
I need to do this with a very high accuracy, preferably to 0.001 seconds or better.
Found a related question (FFMPEG : get last 10 seconds) suggesting -sseof, which works great, but as the answer said it’s not completely accurate with stream copy.I am trying to match video lengths to the length of a reference video.
Would I need to re-encode ? Can sseof handle this accurate enough if I specify duration as 00:00:00.000000 (which I get from reference video ffprobe) ?
Please see related ffprobe -i below, all videos to be processed have this same encoding.
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.83.100
Duration: 00:00:58.67, start: 0.000000, bitrate: 639 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x360, 499 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 131 kb/s (default)
Metadata:
handler_name : SoundHandler
duration=58.673000Is there a better way to achieve frame-level accuracy ? As end goal I would need to overlay these videos with 25fps ’frame-level accuracy’.
Thanks a lot !
-
vp9 : split superframes in the filtering stage before actual decoding
13 novembre 2016, par Anton Khirnov -
FFMPEG Generate video clips and concatenate them all
8 février 2020, par lms702I have a bunch of images (.png) and audio files (.wav) that I want to combine and concatenate. For example, if I have a1.wav, i1.png, a2.wav, and i2.png, I want to output a video that is a1.wav overlayed onto i1.png, then (concatenated to a2.wav overlayed onto i2.png.
Currently, my approach is to save each individual clip and then concatenate them all at the end.
To save each clip, I use this command (in a loop for all of my clips) :
ffmpeg -i {imageFile} -i {audioFile} -nostdin -qscale:v 1 -vcodec libx264 -pix_fmt yuv420p {outputFile.mp4}``
It outputs an mp4 that kind of works - the playback is really buggy but works in full screen.
My current approach to concatenating has not been at all successful. I create a list of the clip names and put it into filename then call this command :
ffmpeg -f concat -i {filename} -c copy clips/finalOutput.mp4
This outputs a pretty jumbled video and this error repeated :
[mp4 @ 000001cdec110740] Non-monotonous DTS in output stream 0:1; previous: 1045041, current: 604571; changing to 1045042. This may result in incorrect timestamps in the output file.
So, a few questions.
What is the best way to go about this process ?
Should I be saving each clip or is there a better way to do it all in one command ?
If I do save each clip, is there a better file format I should use ?
Plz help with the concatenation command.
Also note that because I am automating this with python I can build arbitrarily large commands, though that might not be ideal.
I am very new to this and I would really appreciate any help !