[MPlayer-dev-eng] Announce of Movieconvert

Michael Niedermayer michaelni at gmx.at
Mon Jun 14 17:06:41 CEST 2004


Hi

On Monday 14 June 2004 15:54, Jan Knutar wrote:
[...]
> > But seeking is much too unreliable.
> > Sometimes it differs over 3000 seconds (mainly on mpeg1 Videos). I
> > tried very hard to find a workaround for this, but I failed.
>
> When I was last playing with the divx2svcd script, I wanted to try make
> the splitting into volumes by size done by mencoder instead of tcmplex.
>
> I ran into same problem. However, I had an idea on how to sort of solve
> it, haven't tried it yet though.
>
> Afaik, seeking in mpeg1 is done by estimating the bitrate (or relying on
> the header figures), and jumping to the position in the bytestream that
> would match teh requested time, if the bitrate estimate was correct.
> This means that adjusting the -ss value should increase and decrease
> teh actual time we end up at, I'm assuming mpeg1 has some timestamps
> embeded which makes the time somewhat reliable atleast... (This
> wouldn't work on DVD, right?).
> Anyway, ever heard of "binary search"? :-) You could run a series of
> mplayer -ss $time -frames 2 and look for the time in the output, while
> varying the time using binary search method. I think it'd have to be
> slightly modified though, because in the end you'd end up oscillating
> between the two closest time positions over and under the requested
> value, due to the granularity caused by only being able to seek to
> keyframes.
>
> Or, you could try write patch for mplayer (YES PLEASE!!) that implements
> frame exact seeking (YES PLEASE!!!) :D
try libavformats mpeg demuxer, dunno if it works with mplayer but it does a 
binary search for seeking, that also means it will fail if there are 
timestamp discontinuities which is common

[...]
-- 
Michael
level[i]= get_vlc(); i+=get_vlc();		(violates patent EP0266049)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]);	(violates patent #5,905,535)
buf[i]= qp - buf[i-1];				(violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en




More information about the MPlayer-dev-eng mailing list