'FFmpeg streaming rtmp muliple streams

I have a mpeg file with two video streams stream #0:0[0x27] yuv420p 352X288 and #0:1[0x29] yuv420p 640X480

I am trying to read the file and send it out rtmp

ffmpeg -stream_loop -1 -i myvideofile.mpg -f mpegts udp://localhost:123456

To verify the stream is streaming I use ffplay

ffplay udp://localhost:123456

I get the video, but it is only one of the two streams I am expecting. the 640x480

Is there something that I need to do to make both streams get sent?



Solution 1:[1]

To remap all streams you have to pass -map 0.

ffmpeg -stream_loop -1 -i myvideofile.mpg -map 0 -f mpegts udp://localhost:123456

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 desean