-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
DVR: The mp4 file from DVR for camera can't play on window, MacOS, iOS #4065
Comments
Workaround: Utilize the recording feature of Oryx.
|
video_full_range_flag is belong to a sps parameter. But srs only support part of sps demux. Maybe I can add more sps demux/remux features to srs later. To this question, the pixel format is determined by this way: First, read sps vui parameters, to get So, the |
Thank @suzp1984 and @winlinvip, |
I attach file : video-libmp4v2-3M.mp4Camera streamed rtmp and saved by DVR mode with name original, that can't play on default video player of WIN/IOS/MAC original.mp4I didn't find diffirence thing beetwen 2 files |
goto And I don't think So |
Describe the bug
I are using SRS to record RTMP stream from camera, but the file can't play with IOS/MAC OS, Window.
I found that, the issue can fix by change format video header from yuvj420p(pc, bt709) to yuv420p(tv, bt709) by this comamnd
ffmpeg -i original.mp4 -c copy -bsf:v h264_metadata=video_full_range_flag=0 change_to_tv.mp4
Version
Docker ossrs/srs:3 , ossrs/srs:5 , ossrs/srs:6
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Can you provide an option on SRS to change header of mp4 file to yuv420
Additional context
I send 4 shot video
original.mp4
change_to_tv.mp4
convert_pc.mp4
convert_tv.mp4
camera --> rtmp-srs --> original.mp4
original.mp4 --> change header to tv color -> change_to_tv.mp4 //ffmpeg -i original.mp4 -c copy -bsf:v h264_metadata=video_full_range_flag=0 change_to_tv.mp4
original.mp4 --> rtmp-srs --> conver_pc.mp4
change_to_tv.mp4 --> rtmp-srs --> conver_tv.mp4
The change_to_tv.mp4 and convert_tv.mp4 can play on window/ios
the original.mp4 vs convert_pc.mp4 can't not play on window/ios
The text was updated successfully, but these errors were encountered: