cut a movie (ffmpeg, vlc, mplayer, gstreamer)

Thibaut thibaut78400 at free.fr
Thu Nov 19 08:12:42 UTC 2009


Hi

I try to cut a movie I just recorded from a rtsp server.

The movie is:

$ ffmpeg -i mymovie.avi

...

Seems stream 0 codec frame rate differs from container frame rate: 50.00 
(50/1) -> 25.00 (25/1)
Input #0, avi, from 'La-revanche-de-Staline.avi':
   Duration: 00:00:00.50, start: 0.000000, bitrate: -2147483 kb/s
     Stream #0.0: Video: mpeg2video, yuv420p, 480x576 [PAR 32:15 DAR 
16:9], 15000 kb/s, 25 tbr, 25 tbn, 50 tbc
     Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s
At least one output file must be specified



I tried:
mencoder -ss 00:04:48 -endpos 00:51:00 -ovc copy -oac copy mymovie.avi 
-o result.avi
but it cuts just the end of the movie. Not the first 4 minutes

or:
ffmpeg -sameq -ss 310 -t 3162 -i mymovie result.avi
It work perfectly fine for the video but not for the sound

Do you have a solution ?
(a solution with gstreamer would be perfect)

Any idea?
t.




More information about the ubuntu-users mailing list