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

The current version of the SRS-Stack, upon concluding a live stream, generates an M3U8 file for the live recording. This file cannot be played on Apple devices and the WeChat application for PC. #153

Open
hjxsj opened this issue Dec 21, 2023 · 5 comments
Assignees
Labels
bug Something isn't working TransByAI Translated by AI/GPT.

Comments

@hjxsj
Copy link

hjxsj commented Dec 21, 2023

The current version of the SRS (Simple Realtime Server) stack is experiencing issues where the M3U8 files from live broadcast recordings, when called by other programs, are not playable on Apple and WeChat PC clients. Please address this problem.

TRANS_BY_GPT4

@hjxsj hjxsj added the bug Something isn't working label Dec 21, 2023
@winlinvip winlinvip changed the title 现在版本的srs-stack直播结束调用直播录制的M3U8文件到其他程序无法在苹果和微信PC端播放 The current version of the SRS-Stack, upon concluding a live stream, generates an M3U8 file for the live recording. This file cannot be played on Apple devices and the WeChat application for PC. Dec 21, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Dec 21, 2023
@winlinvip
Copy link
Member

winlinvip commented Dec 21, 2023

After the live broadcast is recorded, an MP4 file will be generated instead of streaming in HLS format.

TRANS_BY_GPT4

@winlinvip winlinvip self-assigned this Dec 21, 2023
@hjxsj
Copy link
Author

hjxsj commented Dec 22, 2023

After recording a live broadcast, it was saved as an MP4 file, but the MP4 is slow to buffer when accessed. The HLS format streams in the folder can also be used. I have attempted this, and it seems likely that the issue with playback on Apple phones is due to cross-domain settings.

TRANS_BY_GPT4

@hjxsj
Copy link
Author

hjxsj commented Dec 22, 2023

I placed the following code
/www/server/nginx/conf
After adding the code under the http section in the nginx.conf file, it became viewable, but then it was not viewable on Apple phones during live streaming.

Allow cross-origin

    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Credentials' 'true';
    add_header 'Access-Control-Allow-Methods' '*';
    add_header 'Access-Control-Allow-Headers' '*';

TRANS_BY_GPT4

@winlinvip
Copy link
Member

winlinvip commented Jan 7, 2024

The MP4 format must be used; the HLS is merely a temporary file for preview purposes during recording.

However, I will take some time to look into the cross-domain issue.

TRANS_BY_GPT4

@anandcdas
Copy link

Is it possible to record a Live rstp stream from an IP camera directly on the SRS stack ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

3 participants