Skip to content
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

GB28181: Pure video stream HLS has exceptions on Apple devices #1326

Closed
canbylee opened this issue Feb 28, 2019 · 8 comments
Closed

GB28181: Pure video stream HLS has exceptions on Apple devices #1326

canbylee opened this issue Feb 28, 2019 · 8 comments
Assignees
Labels
Duplicated Duplicated bug. Enhancement Improvement or enhancement. Feature It's a new feature. TransByAI Translated by AI/GPT.
Milestone

Comments

@canbylee
Copy link

canbylee commented Feb 28, 2019

Front-end: For Hikvision IPC, using pure video stream without audio channel, pushing stream to SRS using FFMPEG. If HLS is used with react-native-video, it cannot play, but VLC can play it normally. It can be played on Apple browsers, but it does not autoplay or occasionally cannot play. If the audio PMT is commented out, it seems to work normally. What is the reason for this comment? (For HLS, there must be at least one audio channel)

   if (as == SrsTsStreamAudioAAC || as == SrsTsStreamAudioMp3) {
        // use audio to carray pcr by default.
        // for hls, there must be atleast one audio channel.
        //pmt->PCR_PID = apid;
        //pmt->infos.push_back(new SrsTsPayloadPMTESInfo(as, apid));
    }

TRANS_BY_GPT3

@winlinvip winlinvip added Enhancement Improvement or enhancement. Feature It's a new feature. labels Apr 6, 2019
@winlinvip winlinvip added this to the srs 3.0 release milestone Apr 6, 2019
@winlinvip
Copy link
Member

winlinvip commented Apr 6, 2019

It seems that the early standard of Apple stated that there should be at least one audio, but there may have been recent updates to HLS. It is possible to consider supporting pure video streams.

TRANS_BY_GPT3

@canbylee
Copy link
Author

canbylee commented Apr 8, 2019

If it is pure video streaming without audio, no abnormality has been found on various platforms temporarily.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

Postpone to SRS4

@winlinvip
Copy link
Member

winlinvip commented Aug 23, 2021

Few scenarios, no plans to support.

TRANS_BY_GPT3

@geiliwanghaichao
Copy link

geiliwanghaichao commented Sep 6, 2021

@canbylee hello, I have also encountered a similar problem. When streaming the camera from Hikvision/Dahua to SRS without enabling audio, using VLC to play the m3u8 file shows the following image:
c8413cb9662a57067a4f7c835f5827f
When using ffplay to play, it shows the following image:
ed28ba309d9726c1035c9356948f604
Because we are collaborating with a third party, the audio is not enabled on the front-end camera. However, when viewing it on ffplay, the audio channel is displayed, which causes the third-party decoding to fail. Following your method, by commenting out the above two lines of code, ffplay no longer displays the audio channel. Although this eliminates the error,
167a18b08bbe25faac8f59e1ec85d10

However, it is unknown whether this has any impact on the entire process. @winlinvip, the expert, mentioned that in "a few scenarios, there is no intention to support" this. However, currently, it is found that when using cameras from Hikvision/Dahua to push streams to SRS, this issue persists. It is unclear if there are any plans to address this problem in the future.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Sep 11, 2021

Belonging to the monitoring scene is more common, Haibo can consider whether it is worth supporting.

TRANS_BY_GPT3

@winlinvip winlinvip reopened this Sep 11, 2021
@winlinvip winlinvip changed the title 纯视频流HLS在苹果端有异常 GB28181: 纯视频流HLS在苹果端有异常 Sep 11, 2021
@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Nov 4, 2021

Repeated issue, please go to #2570 (comment)

TRANS_BY_GPT3

@duiniuluantanqin duiniuluantanqin added the Duplicated Duplicated bug. label Nov 9, 2021
@winlinvip winlinvip changed the title GB28181: 纯视频流HLS在苹果端有异常 GB28181: Pure video stream HLS has exceptions on Apple devices Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
@winlinvip
Copy link
Member

In HLS specfication, there should be at least one audio stream. So, HLS does not work when pure video stream is published by RTMP or WebRTC or SRT.

Workaround: Insert a silent audio stream, which means create a audio stream by FFmpeg. You can also use Camera stream feature of SRS Stack that support this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicated Duplicated bug. Enhancement Improvement or enhancement. Feature It's a new feature. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

4 participants