Redsandro
Posts: 27
Joined: Mon Nov 25, 2013 7:19 pm
Location: The Netherlands
Contact: Website

Mux a live h264 stream into mp4 realtime with pure python?

Tue Nov 17, 2015 12:54 pm

The camera streams raw h264 using picamera. Can we mux this directly to mp4 without much overhead from within python?
I have googled around but everyone seems to resort to external programs like gpac/mp4box or ffmpeg.

Is that really necessary? Is adding container metadata to the raw stream such a complex and overhead'y endeavor?

Return to “Camera board”