-
Notifications
You must be signed in to change notification settings - Fork 34
Frequently asked questions
Confession: This is largely a place where I can dump info I've learned about MMAL and various niggles throughout my time with MMALSharp.
The videos produced by the MMAL Video Encoder component are in a raw format i.e. they are not within a H.264/MJPEG container. There is a fair bit of info surrounding this on the web, but in order to successfully open a video file produced by MMALSharp, you can do the following:
vlc --demux=mjpeg /path/to/your/video.mjpeg
vlc --demux=h264 /path/to/your/video.h264
As the Raspberry Pi camera produces a H.264 elementary stream and is stored in a containerless format, some media players have issues playing the video correctly. I've noticed VLC to be one of those players. In order to work around this, try converting the video to a container format such as MKV:
sudo apt-get install mkvtoolnix
mkvmerge test.h264 -o test.mkv
Where test.h264
is the name of your video file. I've seen good results with this.
You will experience issues when using the Video renderer if you have the OpenGL driver enabled. Firstly, it won't display anything to the HDMI output, and second you will likely cause your Pi to freeze. If you intend on using the Video renderer, please use the legacy (non-GL) desktop environment.