Welcome to World of IPTV

The most popular IPTV Communiy.


To get write permissions (open threads, make some post) you have to upgrade your account (12 Euro annual fee) after registration.
As basic registered member you have read only permissions.


 Please Note! 
This is not a VIP membership and does not replace the use of credits !
This only serves to be able to use the forum fully with write permissions as a basic member!

Forum Rules

Our Community Rules.
So that nobody can say, "I didn't know"

Donate us

Help us to keep the community up to date with a small donation

Account Upgrade

Upgrade your account and get full post permissions!

Create a Mosaic

boxcabo

Member
Member
Joined
Oct 23, 2019
Messages
126
Likes
42
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
 

urgodfather

Chief Moderator
Staff member
Chief Moderator
Moderator
Member
Joined
Sep 22, 2019
Messages
1,735
Likes
4,976
Points
124
Location
neither here, nor there
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
Top