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?
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to