silvanmelchior / RPi_Cam_Web_Interface

A web interface for the RPi Cam
MIT License
1.54k stars 493 forks source link

Live video does not display on web page unless MP4Box is set to false #199

Open pybokeh opened 9 years ago

pybokeh commented 9 years ago

The wiki does not mention having to set MP4Box to false if the live video does not display on the web page. Since I don't know what MP4Box does, can someone update the wiki and provide background on that? Thanks.

roberttidey commented 9 years ago

When video is recorded then the camera captures a raw h264 encoded video stream to a file. Although this contains all the video data is a compressed format it is not in a container format that is understood by most video players including the web browser.

After each video recording is finished then the MP4Box process is used to wrap the h264 data up in a mp4 video container which is a common format understood by most video players.

The mp4box off /background control is there for some users who want the raw video h264 and prefer to process these files separately (off). If it is set to background then each video is converted in a background process which allows a new video to be started whilst the previous one is converted.

The mp4box control should have no effect on the live video preview and I checked that.