From: Heiko S. <hsc...@ft...> - 2001-08-30 16:31:00
|
Hi Guenter, Hi list, > > > That works fine after you have the cached index for your file, but > > > what about disc based media? Well, you could try to build an index of > > > I-frames for a DVD, but it will take quite some time... > > > > For DVDs you can make somewhat accurate estimates and seeks based on > > the information in the IFO/NAV data. > > oki, I'll implement the bitrate-estimation based aproach :> > > in fact, I'm planning to leave the implementation details to whomever > implements a demuxer - so the demuxers will have a new function pointer that sounds like a great solution to me. > /* > * estimate stream length in seconds > * may return 0 for non-seekable streams > */ > > int (*get_stream_length) (demux_plugin_t *this); wouldn't it be best to calculate in frames instead of secods ?! just to be safe. > buf_element_t has a new field > > int input_time;/* time offset in seconds from > beginning of stream */ dito... why seconds when in some cases frames are possible ? in the cases when it's not possible there is no loss, but for example motion-jpeg in avi streams could be handled very precisely... Heiko |