Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync multiple stream #1319

Closed
pryiz opened this issue Feb 11, 2019 · 6 comments
Closed

Sync multiple stream #1319

pryiz opened this issue Feb 11, 2019 · 6 comments
Assignees
Labels
EnglishNative This issue is conveyed exclusively in English. Won't fix We won't fix it.
Milestone

Comments

@pryiz
Copy link

pryiz commented Feb 11, 2019

Hi there,

I use SRS on 3 differents servers, so 3 IPs. The goal is to have 3 video input from 3 smartphones (using broadcastme mobile app). I have those 3 inputs in my OBS software and then stream it to facebook.

My issue : those 3 inputs are totally desynch, even if allsmartphones are on the same wifi.

Any clue how I can fix it? Is is possible to have multiple devices to the same IPs?

Thanks a for lot for your work and help!

@hy05190134
Copy link

what's the mean of sync multiple stream? Do you mean the same delay of different streams as if the 3 different stream coming from the same device?

@pryiz
Copy link
Author

pryiz commented Feb 12, 2019

Hi, yes you got it!

I have 3 smartphones, each streaming to a different server:
Smartphone1 : rtmp://"IP1"/live/stream
Smartphone2 : rtmp://"IP2"/live/stream
Smartphone3: rtmp://"IP3"/live/stream

and when I add those 3 streams in OBS, videos are not sync...

thanks for your answer

@hy05190134
Copy link

@pryiz I wonder how to check the streams whether sync? just by eyes? what's your demand by syncing the 3 streams? for the communicating with 3 people?

@ccMatrix
Copy link

ccMatrix commented Apr 6, 2020

This would be an excellent feature which I could also really use.

Maybe inject a timestamp into the stream which is then used to hold back and sync the streams? Smartphone apps could get current time using ntp server and add the current timestamp to meta info of rtmp stream?

@winlinvip
Copy link
Member

Won't support, because it's not a common use scenario.

@winlinvip winlinvip self-assigned this Sep 11, 2021
@winlinvip winlinvip added the Won't fix We won't fix it. label Sep 11, 2021
@winlinvip winlinvip added this to the 3.0 milestone Sep 11, 2021
@drunkod
Copy link

drunkod commented Apr 18, 2023

@winlinvip ,

Please add synchronizing media streams function. This is a unique feature for the project and can attract users like OBS.

This is already implemented in RTP.
SRT?, RTMP? implementation is necessary.

Larix Broadcaster (aka mobile obs) streaming client has added a feature to send NTP timestamps for all supported streams:
Insert SEI time metadata and specify NTP server, this allows synchronizing streams on server side.
https://softvelum.com/timesync/

RTP - Synchronizing media streams: Implementation of NTP is not required to use RTP... However, if NTP timestamp implemented in RTCP, it can be used to synchronize media streams even from different host... https://gist.github.com/simonkim/a9a3aa4f1ca04448c64212b3b079d107
Synchronizing Streams via SRT:

Some SRT encoders like new JVC-cams , Haivision-encoder and software encoder LarixBroadcaster (iPhone/Android) can do this:
synchronize internal clock by time-server (usually by NTP protocol).
It means all encoders have one clock:if one camera has time 11:59:59 then other cameras have same time.
send this time inside encoded feed (SEI metainfo)

Haivision/srt#2044 (comment)

https://manpages.ubuntu.com/manpages/focal/man1/srt-multiplex.1.html

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 28, 2023
@ossrs ossrs locked and limited conversation to collaborators Jul 28, 2023
@winlinvip winlinvip converted this issue into discussion #3729 Jul 28, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
EnglishNative This issue is conveyed exclusively in English. Won't fix We won't fix it.
Projects
None yet
Development

No branches or pull requests

5 participants