[FFmpeg-devel] How to get video frame offset position in TS file ?

Thomas Parmegiani thomasp
Tue Oct 23 13:49:29 CEST 2007


Hi all !

I am trying to get the start position of the current frame read (using
av_read_frame) of my TS source file.
To get this position I use : ic->streams[video_index]->parser->frame_offset.

It is working if I use it with a .m2v file (without any audio). but if I use
it on my original TS file which contains audio the frame offset is wrong.
Did I miss something to get my video frame offset in case I have audio ?

Best Regards,

Thomas.P




More information about the ffmpeg-devel mailing list