Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Create a Mosaic

boxcabo

Extended Member
Ext. Member
Joined
Oct 23, 2019
Messages
129
Reaction score
53
Points
39
Location
Portugal
Hi,

I am trying to create a Mosaic with 4 live streams.

1 - I have tried OBS on a Windows Machine, but as soon as 1 stream of the 4 stops, that same stream never comes back live again (it does not restart itself).

2 - I have tried using "ffmpeg" on a Ubuntu Server, but with the same outcome, as soon as 1 stream of the 4 stops, that same stream never comes back live again (it does not restart itself).
I have used this command:

ffmpeg -i http://first-stream -i http://second-stream -i http://third-stream -i http://forth-stream -filter_complex "nullsrc=size=1280x720 [base]; [0:v] setpts=PTS-STARTPTS, scale=640x320 [upperleft]; [1:v] setpts=PTS-STARTPTS, scale=640x320 [upperright]; [2:v] setpts=PTS-STARTPTS, scale=640x320 [lowerleft]; [3:v] setpts=PTS-STARTPTS, scale=640x320 [lowerright]; [base][upperleft] overlay=shortest=0 [tmp1]; [tmp1][upperright] overlay=shortest=0:x=640 [tmp2]; [tmp2][lowerleft] overlay=shortest=0:y=320 [tmp3]; [tmp3][lowerright] overlay=shortest=0:x=640:y=320" -c:v libx264 -c:a aac -f flv rtmp://RTPMSERVERIP/live/mosaic


Does anyone can please help me on this one?
Thank you very much
 
Hi,

I am trying to create a Mosaic with 4 live streams.

1 - I have tried OBS on a Windows Machine, but as soon as 1 stream of the 4 stops, that same stream never comes back live again (it does not restart itself).

2 - I have tried using "ffmpeg" on a Ubuntu Server, but with the same outcome, as soon as 1 stream of the 4 stops, that same stream never comes back live again (it does not restart itself).
I have used this command:

ffmpeg -i http://first-stream -i http://second-stream -i http://third-stream -i http://forth-stream -filter_complex "nullsrc=size=1280x720 [base]; [0:v] setpts=PTS-STARTPTS, scale=640x320 [upperleft]; [1:v] setpts=PTS-STARTPTS, scale=640x320 [upperright]; [2:v] setpts=PTS-STARTPTS, scale=640x320 [lowerleft]; [3:v] setpts=PTS-STARTPTS, scale=640x320 [lowerright]; [base][upperleft] overlay=shortest=0 [tmp1]; [tmp1][upperright] overlay=shortest=0:x=640 [tmp2]; [tmp2][lowerleft] overlay=shortest=0:y=320 [tmp3]; [tmp3][lowerright] overlay=shortest=0:x=640:y=320" -c:v libx264 -c:a aac -f flv rtmp://RTPMSERVERIP/live/mosaic


Does anyone can please help me on this one?
Thank you very much
maybe it would be better to transcode each stream separately, then re-encode into a mosaic. then if there is issue with one stream, you can restart it's transcode individually
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top