<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 7:34 PM, Steven Liu <span dir="ltr"><<a href="mailto:lingjiujianke@gmail.com" target="_blank">lingjiujianke@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="gmail-">2016-11-29 18:44 GMT+08:00 mahesh p <span dir="ltr"><<a href="mailto:mahesh.p417@gmail.com" target="_blank">mahesh.p417@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>     encoder itself produces different video output files.</div><div>for ex: bitstream_1.out, bitstream_2.out, bitstream_3.out</div><div><br></div><div><br></div><div><pre class="gmail-m_-2313891266209222502m_3184575936318982414gmail-wiki" style="background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:rgb(247,247,247);border:1px solid rgb(215,215,215);border-radius:0.3em;margin:1em 1.75em;padding:0.25em;overflow:auto;color:rgb(0,0,0);font-size:13px">ffmpeg -i input -filter_complex \
"[0:v]split=2[s0][s1]; \
 [s0]scale=1280:-2[v0]; \
 [s1]scale=640:-2[v1]" \
-map "[v0]" -map "[v1]" -map 0:a -c:v libx264 -c:a aac -f tee \
"[select=\'v:0,a\']local0.mkv| \
 [select=\'v:0,a\':f=flv]rtmp:/<wbr>/server0/app/instance/playpath<wbr>| \
 [select=\'v:1,a\']local1.mkv| \
 [select=\'v:1,a\':f=flv]rtmp:/<wbr>/server1/app/instance/playpath<wbr>"</pre></div><div><br></div><div>but In above ffmpeg example two x264 encoder instances will run in parallel right? If one <span style="font-size:13px;background-color:rgb(247,247,247);color:rgb(0,0,0)">libx264 encoder produces different video output files how ffmpeg will handle?</span></div></div></blockquote><div><br></div></span><div>If you want output multiple rtmp stream, you can use like this:</div><div><br></div><div>ffmpeg -i input -vcodec libx264 -f flv "tee:rtmp://server0/app/<wbr>stream0|rtmp://server1/live/<wbr>stream1" </div></div></div></div></blockquote><div>Thanks, Carl Eugen said '<span style="font-size:12.8px">No encoder supported by FFmpeg can produce more than </span><span style="font-size:12.8px">one video stream'</span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail-h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div></div><div class="gmail-m_-2313891266209222502HOEnZb"><div class="gmail-m_-2313891266209222502h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 2:03 PM, Steven Liu <span dir="ltr"><<a href="mailto:lingjiujianke@gmail.com" target="_blank">lingjiujianke@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>2016-11-29 13:41 GMT+08:00 mahesh p <span dir="ltr"><<a href="mailto:mahesh.p417@gmail.com" target="_blank">mahesh.p417@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Actually encoder producing multiple output files but where as tee muxer can be used to write the same data to several files So I'm looking for solution where ffmpeg generates all output files which are produced by an encoder.<br></div></blockquote></span><div>if you want to use tee, the tee format is a AVFormatContext, you can use it like write mp4, mov, flv, and so on.</div><div>tee can split multiple output file use '|'</div><span><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"></div><div class="gmail-m_-2313891266209222502m_3184575936318982414m_-7344172133211457099HOEnZb"><div class="gmail-m_-2313891266209222502m_3184575936318982414m_-7344172133211457099h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 29, 2016 at 7:47 AM, Steven Liu <span dir="ltr"><<a href="mailto:lingjiujianke@gmail.com" target="_blank">lingjiujianke@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>2016-11-28 16:39 GMT+08:00 mahesh p <span dir="ltr"><<a href="mailto:mahesh.p417@gmail.com" target="_blank">mahesh.p417@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>            I am looking for a solution by which one encoder can generate multiple output files. Can we do this with ffmpeg today?</div></div></blockquote><div><br></div></span><div>Do you mean muxers: tee, tee proto</div><div>if you mean codec, you can refer to Carl's response.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>Mahesh</div></div><span>
<br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
<br></span></blockquote></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
<br></blockquote></span></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/list<wbr>info/libav-user</a><br>
<br></blockquote></div></div></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
<br></blockquote></div><br></div></div>