[FFmpeg-devel] [PATCH] Add libavformat option to ignore non monotime dts timestamps

Sam Creasey sammy
Mon Sep 27 16:40:15 CEST 2010

On Sat, Sep 25, 2010 at 11:24 AM, Mike Scheutzow <mjs973 at optonline.net> wrote:

> The high level issue here is that the FFmpeg h264_parser does not know how
> to generate timestamps for an h264 elementary stream. That means that the
> ffmpeg app has to make a guess at proper values. By the way, if you are
> attempting to do a "-vcodec copy", that is known not to work with h264
> elementary stream input (there are multiple bug reports on roundup.)
> How much do you know about the input stream you are processing? If the input
> stream is very simple (e.g. no B frames, fixed frame rate) then a tiny hack
> to ffmpeg.c could customize it to work for your specific situation.

Thanks for the additional info...  I hadn't done as much searching
through the existing bug reports as I probably should have.

I think I will take the alternative option of maintaining a small
internal patch to handle the input from this particular device.  I
doubt there's any remotely simple way to add a general fix to ffmpeg

-- Sam

More information about the ffmpeg-devel mailing list