UDP Stream

I am using the CasparCG Playout to generate a channel with many video files. However, I can’t configure a multicast output (UDP). Does anyone know if this is possible?

I tried to change the carparcg.config file with this line:

	<channels>
		<channel>
			<video-mode>1080p6000</video-mode>
			<consumers>
				<screen>
					<device>1</device>
					<name>youcast</name>
					<aspect-ratio>16:9</aspect-ratio>
				</screen>
				<system-audio />					
				<ffmpeg>
					<path>udp://239.50.98.216:5001</path>
					<args>-format mpegts -vcodec libx264 -crf 0 -tune zerolatency -preset ultrafast </args>
					<separate-key>false</separate-key>
					<mono-streams>false</mono-streams>
				</ffmpeg>
			</consumers>
		</channel>
	</channels>

But it doesn’t work. Could you help me?

Thank you.

Try moving the -format switch to the end of the argument string.

<args>-vcodec libx264 -crf 0 -tune zerolatency -preset ultrafast -format mpegts</args>

-format often assumes the rest of the properties up to the end of the line are switches for the format. The -format switch at the start of the line does sometimes work, for example when the standard client asks for a preview stream from the server.

Occasionally you need to specify a maximum packet size as well. The example below uses a custom command to add a stream to channel 1 on localhost:

ADD 1-1001 STREAM udp://127.0.0.1:9999?pkt_size=1316 -codec:v libx264
-tune:v zerolatency -preset:v ultrafast -crf:v 25 -format mpegts

It can be received in VLC with a command udp://@127.0.0.1:9999?pkt_size=1316

Privacy Policy   Terms of Service