I’m using latest CasparCG 2.0.7 and a simple playout controller for IPTV-playout. I have to produce accurate CBR mpegts multicast UDP stream which is sent to hardware DVB-T muxers. The muxers accept only CBR stream with PCR accuracy interval around 30ns. I put together a simple ffmpeg cmd which satisfies the requirements and it works ok.
The ffmpeg parameters I added to CasparCG and it (almost) all works perfectly without the “muxrate” parameter. The stream plays nice, but it’s VBR without proper muxrate setting and PCR interval isn’t accurate. If I add the muxrate parameter, I get lots of “PCR<DTS: TS is invalid” errors displaying all the time inside CasparCG console. The same parameters combination works perfectly nice if I run ffmpeg directly from command line, but it won’t work from CasparCG. I tried all possible combinations using different values and different codecs, but I’m out of luck.
The working combination is (just important video params): -c:v mpeg2video -minrate 5000k -maxrate 5000k -bufsize 700k -pcr_period 30 -f mpegts udp://126.96.36.199:5000?pkt_size=1316"
The same command with “muxrate” parameter added and all others left the same, produces errors: -c:v mpeg2video -minrate 5000k -maxrate 5000k -bufsize 700k -muxrate 5450k -pcr_period 30 -f mpegts udp://188.8.131.52:5000?pkt_size=1316"
I’m completely lost. Is there anything that can be done to use “muxrate” paramater without these errors? Am I missing some other parameter maybe? Lastly, why command line ffmpeg (v3.x and v4.x) with the same parameters and same video output work ok, but not from CasparCG?
Thank you in advance for any kind of help! Best regards.