billw2 / pikrellcam

Raspberry Pi motion vector detection program with OSD web interface.
GNU General Public License v3.0
262 stars 70 forks source link

Enable streaming video; remove double -r 6 #31

Closed hvdwolf closed 6 years ago

hvdwolf commented 6 years ago

The created mp4 files are not streaming video files but "standard" mp4 files with the metadata (moov atom) at the end. To make it possible to simply stream them, add the "-movflags faststart" option to the avconv/ffmpeg command. This will add a second pass, but minimal as it is only a metadata copy (copies entire file), but no encoding. Also remove the double "-r 6"