How to duplicate a mpegts stream into multiple other UDP streams using FFMPEG
<p>I'm experimenting with ffmpeg commandline to see to see if I can re-stream a mpegts udp stream in different resolutions. </p>

<p>I succeed in re-streaming an incoming stream into a stream with a different resolution: </p>

<p><code>ffmpeg -y -i "udp://234.5.6.7:1234" -vf scale=-1:320 -map 0 -acodec copy -dcodec copy -f mpegts udp://234.5.6.8:1234</code></p>

<p>I would like to stream <a href="https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs" rel="nofollow">to multiple output</a> mpegts streams in various resolutions. I could of course listen from multiple instances to the original broadcast and each stream to a different new endpoint and resolution, but it would be nicer to achieve this with a single ffmpeg call. </p>

<p>Trying to at least output to multiple streams I seem stuck on getting the following to run (even without changing the resolution:)</p>

<p><code>ffmpeg -y -i "udp://234.5.6.7:1234" -f tee "[f=mpegts:map=0:acodec=copy:dcodec=copy]udp://234.5.6.8:1234|[f=mpegts:map=0:acodec=copy:dcodec=copy]udp://234.5.6.9:1234"</code></p>

<p>This results in the following error:</p>

<blockquote>
  <p>Output file #0 does not contain any stream</p>
</blockquote>

<p>Could it be that I'm providing the output parameters incorrectly? How would I fix the above line to generate two (or more) output streams?</p>