[MPlayer-users] DVD seeking and byte position

Nico Sabbi nsabbi at tiscali.it
Fri Jan 28 14:43:40 CET 2005


Thorben Kröger wrote:

>Hello,
>I want to rip small sequences from a dvd using mplayer/mencoder to cut 
>different scenes from different movies together. Let's say I want the segment 
>starting from position 00:35:06, I could use "mplayer dvd://1 -ss 00:35:06". 
>However, this does not always work, because dvd seeking isn't accurate. So I 
>might end up at position 00:40:00 or somewhere else and get a totally 
>different segment.
>Reading the manpage, I noticed that there is a -sb option to seek to a byte 
>position, and this does work with DVDs, too.
>However, I have no idea how to display the current byte position with mplayer.
>If I could do that (and seeking to byte position is more accurate than seeking 
>with -ss) I could simply play the dvd with mplayer and find the scene I want, 
>then note down the byte position which mplayer could display in some sort of 
>debug output and then fire up mencoder and encode the sequence I want.
>
>  
>

stream_tell(stream) is the byte position of the stream playing.
stream is also accessible as demuxer->stream




More information about the MPlayer-users mailing list