Skip to content

The mp4 file generated by the DVR gives an error when played with the native Windows 10 player. #1548

@slhchinatelecom

Description

@slhchinatelecom

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

Metadata

Metadata

Assignees

Labels

BugIt might be a bug.TransByAITranslated by AI/GPT.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions