[MPlayer-dev-eng] [PATCH] keyframes in real rtsp, (auto-)index generation and seeking in realmedia .rm files

Attila Kinali kinali at gmx.net
Mon Dec 8 11:27:12 CET 2003


On Wed, 19 Nov 2003 12:51:01 -0800 (PST)
rgselk <rgselknospam at yahoo.com> wrote:


> The first patch finds keyframes in a real rtsp stream.
> 
> The second patch implements index generation and seeking while
> generating less (read: no?) SEGV's. The SEGV can be demonstrated very
> easy by -dumpstream'ing a stream to disk and then trying to use -idx or
> -forceidx on the resulting file...
> 
> Index generation is done on the fly when you specify the '-idx' flag to
> mplayer. This means that while the stream is playing the index is
> extended every time we find a new keyframe. Forward seeking tries to
> generate the next part of the index needed for seeking and then uses
> this freshly generated index.

IMHO this should be changed to index generation at startup to
be consistent with the normal behavior if -idx.

 
> One thing I did not care about now is to disable seeking while
> streaming from the network instead of from a file. But I guess that
> should not be to difficult...

Well, you should care about that :)
 
> One fundamental problem with realmedia streams and mplayer is the
> desynchronization. The keyframes for audio and video are sometimes more
> than 2 seconds apart from each other.
> You have to use something like '-autosync 1 -mc 10' to get a quick
> resynchronization after seeking...
> 

Any more comments on this patch ?

			Attila Kinali

-- 
egp ist vergleichbar mit einem ikea bausatz fuer flugzeugtraeger
			-- reeler in +kaosu



More information about the MPlayer-dev-eng mailing list