From: Michael R. <mr...@us...> - 2002-10-02 12:53:08
|
Hi Vikash, > What's the best way to figure out the length of a stream in xine? > Play it through then compute current_time? (I'm having bad luck with > get_stream_length) Also, to compute the position associated with a > given time, is it just 65536 * (current_time_in_secs / > length_in_secs)? > > (All this is in an attempt to use xine_play to seek to evenly-spaced > positions in a stream, so I can grab snapshots.) A function to receive individual frames by maybe frame number or timestamp is planned for the new API. Maybe this will help you once it is implemented, but this can take some time. (Just wanted to inform you that it's planned.) Michael -- /* Host controller interrupts must not be running while calling this * function or the penguins will get angry. */ 2.2.16 /usr/src/linux/drivers/usb/ohci.c |