[Ffmpeg-devel] Seeking on a live stream

Andy Parkins andyparkins
Fri Jun 17 20:29:51 CEST 2005


On Friday 17 June 2005 17:35, Erik Slagter wrote:

> You're practically saying here that you're recording an mpeg4 elementary
> stream, because you do not mention any container. Mpeg4 elementary
> streams can be sought in while recording very well, no problem.

Well as it happens; my source is an MPEG4 capture card so my source is an 
elementary stream.  I am using libavformat to wrap the stream in a container 
- any container.  My question - badly phrased clearly - is what container I 
should be using?

> BUT you're probably not recording an elementary stream at all (just like
> 999/1000 of the others) but using an avi container (either on purpose or
> not). Avi streams cannot be sought in without making an index. The index
> is made when you stop the recording. You can convince mplayer though to
> make an index on the fly with -idx. Prepare for some waiting time.

Yep, I knew that.  As I mentioned in my original the seeking isn't working 
because those indices aren't yet written.

> Better not use avi at all, but I guess (as usual) that's out of the
> question because it needs to be erhm... compatible with windows, right?

No; I am writing the player and the recorder so it can be anything I want.

Andy


-- 
Dr Andrew Parkins, M Eng (hons), AMIEE

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20050617/716326c5/attachment.pgp>



More information about the ffmpeg-devel mailing list