[libavg-devel] Audio Support Patch

Nick Hebner hebnern at gmail.com
Sat Jan 5 00:08:16 CET 2008


Hey again,

I am working on modifying seeking to work correctly with audio, and have
come up with some points for discussion.

The main problem that I have run into is seeking is currently based on a
frame number. This is fine for video, but when we have audio only nodes, we
will not have frame numbers to seek to. I think that the best thing to do
here is to change seeking (at least at the decoder/demuxer level) to be
based on stream time as this applies to audio as well as video streams.

Now we obviously need to retain seeking by frame numbers for backwards
compatibility (and its a nice option to have), and as I see it, there are
two ways to accomplish this.

1. Have two seek methods in IVideoDecoder: seekFrame(int DestFrame) and
seekTime(long long DestTime). seekFrame() may be internally built on
seekTime() using the nominal framerate to calculate the time.

2. Simply provide an accessor to the nominal framerate and allow higher
level nodes to implement their own seekFrame() behavior. This seems a bit
cleaner and simpler to me, and is my preference currently.

Once these issues are sorted, would we like to add a seekToTime() method to
the video node as an alternative to seeking by frame?

Let me know what you think.

Thank,
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.datenhain.de/pipermail/libavg-devel/attachments/20080104/32b67344/attachment.htm 


More information about the libavg-devel mailing list