[vlc-devel] Re: Doing an lseek() with VOB files ...
Sigmund Augdal
sigmunau at stud.ntnu.no
Tue Aug 12 12:48:06 CEST 2003
Could you try calling input_AccessReinit( p_input ) before doing the search?
Sigmund
On Fri, Aug 08, 2003 at 08:12:57PM +0000, j.zorko at att.net wrote:
>
> Hello, all ...
>
> I'm finding that if I lseek() to a byte position in a VOB file via input_Seek( position,
> INPUT_SEEK_BYTES | INPUT_SEEK_SET ), that the video is jumbled up for a bit after the seek. I
> attribute this to the video decoder still having old data from before the seek, and P or B frames
> referencing this data (i.e. . So, i've a couple of questions:
>
> 1. After doing a seek, how do I clear out the decoder so that it starts with new data read after
> the seek has happened?
> 2. Is there a certain reference point I can seek to to make #1 not needed? I tried doing an
> lseek() directly to a sequence header, but that didn't reduce the jumble. I also tried lseeking to
> the pack header before the sequence header, but that didn't fix it, either. I don't mind getting
> into the codec interface code (libmpeg2.c for instance), but if I could keep stuff like this in the
> upper levels (in case we decide to use another MPEG decoder) that would be cool ...
>
> Regards,
>
> John
>
> --
> Falling You - exploring the beauty
> of voice and sound
> http://www.mp3.com/fallingyou
> --
> This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
> To unsubscribe, please read http://developers.videolan.org/lists.html
> If you are in trouble, please contact <postmaster at videolan.org>
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc-devel
mailing list