Erik Slagter wrote:
On Fri, 2005-04-29 at 09:34 -0300, Rodrigo Severo wrote:
In the end I decided to drop transcode for video processing as ffmpeg is faster and, most important, really does the job. Here is the working solution I have right now:
# Extract all the pieces I need: ffmpeg -ss 00:00:10 -t 20 -i original1.avi temp1.yuv ffmpeg -ss 00:15:10 -t 45 -i original1.avi temp2.yuv ffmpeg -ss 00:05:00 -t 15 -i original2.avi temp3.yuv
# Join them in a single raw stream: cat temp1.yuv temp2.yuv temp3.yuv > temp.yuv
# Encode in the final format: ffmpeg -s 320x240 -r 15 -t 80 -i temp.yuv -vcodec msmpeg4 -an final.avi
Of course this is a slight simplification of what I'm actually doing as the final encoding will occur several times. I need several versions of the final movie. The sound processing will probably be a bit complicated also.
Can't you just demux, concatenate, and mux again, instead of completely re-encoding?
Not really as I need to create several different versions (encoding options) of the same original. I'm not sure yet but probably there won't be any version with the same encoding options as the original. As "encoding options" I mean not only bitrate, fps, frame size but also audio and video codec. As you see, re-encoding isn't optional. As fast as it can be, I trying to decode only once to have a, probably little, speed gain. Is there a better way to get this kind of results? Rodrigo Severo