[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:
https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/muxing.c

When I do so by adding:

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

before

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):
http://pastebin.com/SxjP62iA

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