from h264 to fmp4 #1806
Answered
by
WyattBlue
Playit3110
asked this question in
1. Help
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 |
Answered by
WyattBlue
Mar 3, 2025
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) |
0 replies
Answer selected by
WyattBlue
|
Thanks a lot |
0 replies
|
Hey, sorry, but the options broke for me again. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's how you enable fragmented mp4 in PyAV: