Thu Feb 8 10:38:13 CST 2007

Video Manipulation

I have been experimenting with video manipulation in Linux.
I often come across situations where I come across a stream on the Internet, and I would like to download it for my records. To download the stream, I use mencoder:
mencoder -oac copy -ovc copy http://location_of_the_stream -o downloaded_stream.streamextension
Once I do this and I want to edit the stream, I use ffmpeg:
ffmpeg -i downloaded_stream.streamextension -target pal-dv stream.dv
Once I have the stream in this format, I can edit it using Kino software which is part of Ubuntu. Once I crop the scene that I want to use I can export this scene in dv format using Kino. Once I have the dv file and I want to share it with friends, I can make an mpeg out of it by doing:
ffmpeg -i dvfilefromkino.dv -target vcd newfile.mpg
At this point, I have a new mpeg file that contains only the part of the video that I want to archive that I can share with the people that the stream is relevant to. The audio and the video seem slightly out of sync at this point, it's a problem that I have not had the time to look into at this point.

Posted by Mathieu Allard