from h264 to fmp4 #1806
-
I have a picamera which encodes the video stream to h264 and then to mp4 using PyAV (PyavOutput) now i tried to use the Pyav libary to change the output to fragmented mp4 (fmp4) with the options = {
"re": 1,
"g": 1,
"movflags": "frag_keyframe+empty_moov"
}
av.open("/some/path/file.mp4", "w", format="mp4", options=options) But I dont get an output to the file. How can i fix this? Feel free to ask for more information, if I forgot something |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Here's how you enable fragmented mp4 in PyAV: options = {
"movflags": "+default_base_moof+faststart+frag_keyframe+separate_moof",
"frag_duration": "0.2"
}
av.open("file.mp4", "w", options=options) |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot |
Beta Was this translation helpful? Give feedback.
-
Hey, sorry, but the options broke for me again. |
Beta Was this translation helpful? Give feedback.
Here's how you enable fragmented mp4 in PyAV: