I want to multicast two videos to two different ports of a multicast address. I am able to send one video to one port at a time. But I want a command where both the videos are sent to the ports at the same time. I used the command
{ffmpeg -i stream1_small.ts -vcodec copy -acodec copy -f mpegts -re "udp://239.101.101.1:1234?ttl=1&pkt_size=1316" &
ffmpeg -i stream2_small.ts -vcodec copy -acodec copy -f mpegts -re "udp://239.101.101.1:1235?ttl=1&pkt_size=1316" &}
When i execute the command stream2_small.ts is streamed to the port 1235 but stream1_small.ts is giving a error as
Output #0, mpegts, to 'udp://239.101.101.1:1234?ttl=1&pkt_size=1315
':
Metadata:
encoder : Lavf53.4.0
Stream #0.0: Video: mpeg2video, yuv420p, 360x180 [PAR 8:9 DAR 16:9], q=2-31, 104857 kb/s, 90k tbn, 25 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, stereo, 96 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
[mpegts @ 0xaacc360] max_analyze_duration 5000000 reached at 5000000
Please tell me what mistake i am doing