Open bespegit opened 9 months ago
Hi! I'm sorry, I never really learned how H.264 works and I've barely touched this code in the last year, so I can't really help you with your problem. I do know that generally, fragmented MP4 media segments will consist of many NAL units over several seconds of video and your code appears to be creating one media segment per NAL unit. Would you mind explaining why you want to use the mp4-stream/bmff crates?
Hi, i try to convert mp4 to fragmented mp4 using crate mp4-stream and bmff. Sample video from: https://storage.googleapis.com/gtv-videos-bucket/sample/ForBiggerMeltdowns.mp4 Convert mp4 to raw h264 bitstream using ffmpeg:
ffmpeg -i ForBiggerMeltdowns.mp4 -vcodec copy -an -bsf:v h264_mp4toannexb -f h264 ForBiggerMeltdowns.h264
Code for converting into a fmp4 using mp4-stream and bmff:Test video using ffmpeg:
ffmpeg -v error -i test.mp4 -f null
Error log:Output video cant play in firefox, chrome.