[Libav-user] MPEG-TS muxrate example.

Cheehan pockethook at gmail.com
Tue Jul 2 15:50:24 CEST 2013

I have been trying to create a MPEG-TS file using the the ffmpeg examples.

I've been trying to specify a muxrate in the muxing.c example code:

When I do so by adding:

AVDictionary *dict = NULL;
av_dict_set(&dict, "muxrate", "2000000", 0);


ret = avformat_write_header(oc, &dict);

I get the following warning:

dts < pcr, TS is invalid.

The example code with my modifications is availiable here (line 471):

Am I going about setting the muxrate correctly? Why do I get the warning?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130702/447c6e19/attachment.html>

More information about the Libav-user mailing list