How to download/convert multiple streams to multiple outputs with FFmpeg?
<p>Let's say I have 20 different online stream videos (playlist.m3u8) and I want every video to output to their own .avi files. How can I do that in single file, so I don't have to download and convert every single one separately?</p>

<p>I found a -map command online, but didn't get straight answer to this.</p>

<p>Will this be a working code?</p>

<pre><code>ffmpeg -i 1playlist.m3u8 -vf scale=768:-1 -vcodec libx264 -crf 24 -acodec copy -map 0 1.avi \
-i 2playlist.m3u8 -vf scale=768:-1 -vcodec libx264 -crf 24 -acodec copy -map 1 2.avi \
-i 3playlist.m3u8 -vf scale=768:-1 -vcodec libx264 -crf 24 -acodec copy -map 2 3.avi
</code></pre>