[MPlayer-users] How to encode the middle part of a file?

Nico nsabbi at libero.it
Sun Oct 19 11:16:20 CEST 2003



Adam Nielsen wrote:

>[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
>  
>
>>try using -sb <bytepos>, it works for me.
>>    
>>
>
>Well that stops the crash, but I lose the audio...
>

does the demuxer report NO SOUND ?
In that case just add -tsprobe 20000000 or some other larger value.
In any case I suggest to apply the last TS demuxer patch I posted in 
-dev-eng

>I realised why -ss was failing though - I used "mencoder -oac copy -ovc copy" 
>to convert the MPEG transport stream into an AVI, however mplayer cannot seek 
>through that AVI file (it just quits when you try to seek) so I think that's 
>why mencoder failed too.
>
try -vc ffmpeg2

>
>I tried the original transport stream and -ss does work, but unfortunately it 
>drops frames in the first few seconds of encoding, which means I can't get a 
>frame-accurate cut without losing subsequent frames over the following few 
>seconds.
>  
>
you can -ss a little sooner and cut the encoded file with avidemux[2]

>I can't see any easy way around this, so I might try some mpeg-cut tools to 
>cut the input file to the correct size and hope mencoder will process that 
>without dropping frames.
>
>If anyone has any other ideas, please let me know!
>
>Thanks for your help,
>Adam.
>
>  
>
    Nico



More information about the MPlayer-users mailing list