[MPlayer-users] Extracting a segment from an MPEG file
    Carl Eugen Hoyos 
    cehoyos at ag.or.at
       
    Sun Feb 26 20:19:39 CET 2012
    
    
  
Vincenzo Romano <vincenzo.romano <at> notorand.it> writes:
> 1. If I use mplayer -ss <time> -endpos <time> doesn't work. 
> Something like this:
> mplayer -ss 15:30 -endpos 1:40 -dumpstream -dumpfile 1.mpg x.mpg
> What I get is an exact copy of the original file as if -ss 
> and -endpos had been ignored.
Either use dd if=x.mpg of=1.mpg bs=500k skip=100 count=10
(Adjust values)
or
ffmpeg -ss 15:30 -i x.mpg -vcodec copy -acodec copy -t 1:40 1.mpg
(This may not work perfectly, but is actively maintained and I 
just tested it successfully on a random mpeg stream.)
Carl Eugen
    
    
More information about the MPlayer-users
mailing list