[FFmpeg-user] Multicasting to 2 different output channels

Karim SLIMANI karim at playmedia.fr
Wed Jun 29 16:55:54 CEST 2016


2016-06-29 15:31 GMT+02:00 Moritz Barsnick <barsnick at gmx.net>:

> On Fri, Jun 24, 2016 at 11:20:49 -0700, Praveen wrote:
> > Youtube live and Facebook live simultaneously. One option i was thinking
> > of is to send a unicast stream using ffmpeg on to a ffserver and from
> > there multicast to two different output streams (one each for Youtube
> > lice & Facebook live respectively). Is this possible ? If so, can
> > someone give me hints please ?
>
> I would rather have suggested to let one ffmpeg instance create two
> outputs. This is either by specifying two output targets (each with
> their own encoding options), or by using the the tee muxer. In the
> first case, ffmpeg would be encoding twice in parallel; in the second
> case, ffmpeg would encode only once, but both YouTube and Facebook
> would need to accept the same codec options.
>
> To repeat Reuben's request: Could you share the details of streaming to
> Facebook? Thanks.
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>

Or maybe one FFmpeg instance which encode and send to localhost as
multicast (for example in mpeg-ts).
And two other instances which read mpeg-ts (use copy method) and send as
rtmp to each target.

The main reason is (if i am not wrong) you use a single FFmpeg instance to
do that, if, for example, Facebook is down, then the instance will stop and
the Youtube stream will be also down.
Using 3 instances, if the Facebook one is down, the Youtube will still work.


More information about the ffmpeg-user mailing list