After much messing around with both ffmpeg and avconv, I’ve finally found a combination that works to convert a raw H264 recording from the camera module to something usable. I converted it to an Ogg-format video. That means that it should display below. I haven’t figured out how to convert to MP4 yet, but if you’re using Chrome you shouldn’t have any problems.
You may be wondering why I chose such a dull thing to point the camera at – well, you don’t get trees blowing in the breeze anywhere, ya know!
The call to avconv I used was as follows:
avconv -i sample-video.h264 -b 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 -s 800×600 out.ogv
[…] recantha After much messing around with both ffmpeg and avconv, I’ve finally found a combination that […]
Keep up the great work, I look forward to more! Video plays OK on Firefox 19.0.2 for me, and I was also able to right-click to download the .ogv file and view it using VLC. Looks like you didn’t work the interframe compressor *too* hard with this material.. 🙂
My next video will probably be the camera module recording itself in a mirror – I promised Alex over at Raspi.tv some footage 🙂
Great stuff Mike. Looking forward to that footage if you can get it. 🙂