First encoded video from my #RaspberryPi camera module / @Raspberry_Pi

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

 

4 comments for “First encoded video from my #RaspberryPi camera module / @Raspberry_Pi

  1. 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.. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.