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 mp4 file generated by the DVR gives an error when played with the native Windows 10 player. #1548

Closed
slhchinatelecom opened this issue Dec 30, 2019 · 3 comments
Assignees
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Milestone

Comments

@slhchinatelecom
Copy link

slhchinatelecom commented Dec 30, 2019

Description
Using DVR mp4 configuration, generate mp4, playback on Windows, the player reports an error.

Description
Please describe the issue you encountered.

1. SRS Version: srs 3.0 -a7

Test command:
./objs/srs -c conf/dvr.mp4.conf

Push stream
./ffmpeg -y -i /home/shilh/sample_h264_300kbit.mp4 -c copy -f flv rtmp://127.0.0.1:1935/live/test

The generated mp4 file can be played using Windows 10 Media Player.

Adding an edit box to the video track can solve the issue.
srs_kernel_mp4.cpp line 5777

        SrsMp4EditBox* edts = new SrsMp4EditBox();
        trak->set_edts(edts);

        SrsMp4EditListBox* elst = new SrsMp4EditListBox();
        edts->set_elst(elst);
        elst->version = 0;

TRANS_BY_GPT3

@winlinvip winlinvip added the Bug It might be a bug. label Feb 5, 2020
@jyy1082
Copy link

jyy1082 commented May 6, 2020

SRS 3 encountered the same issue

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Dec 1, 2020

Great, let me see how to merge it.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

Fixed by ab5ddd2

@winlinvip winlinvip self-assigned this Sep 5, 2021
@winlinvip winlinvip changed the title dvr 生成的 mp4 文件使用windows 10 原生的播放器播放报错。 The mp4 file generated by the DVR gives an error when played with the native Windows 10 player. Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

3 participants