> A more generic approach, which also works for VFR streams are frame tables, > which I explained here: > > http://hirntier.blogspot.com/2009/09/frame-tables.html
Very cool. I will look more into this. > In the general case, you should be aware of the following: > > - The video framerate might be variable > > - The first timestamps of a file don't have to start with zero (especially for > MPEG type streams). In particular, the first audio sample doesn't have to > correspond to the first video frame. > > - An audio sample and a video frame are assumed to be in sync if: > > gavl_time_unscale(audio_format.samplerate, audio_frame->timestamp) == > gavl_time_unscale(video_format.timescale, video_fame->timestamp); > > Hope this helps It helps tremendously. Thank you -august. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Gmerlin-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gmerlin-general
