Unknown format from Picamera recording
<p>I have been using my RaspberryPi 3 model B with the Picamera to record videos.
I saw in the RaspberryPi website that the default video format that you get from capturing video is h264, however when I use the camera, the file created appears as fyle type unknown.</p>

<p>To capture I tried both the basic command line  </p>

<pre><code>raspivid -o video -t 10 #for a 10s video
</code></pre>

<p>or a small programm using the PiCamera.start_recording (wich i believe lets you choose the format of the output file) but I still get these not known format files.</p>

<p>If it helps (doubtful) I try to read the recorded files with omxplayer and the footage is displayed at roughly twice the speed it should. </p>

<p>You're not specifiying the h264 extension - without that omxplayer doesn't know what type of video format it is - unless you can suggest what to try via command line</p>

<p>Try:</p>

<pre><code>raspivid -o video.h264 -t 10 #for a 10s video
</code></pre>

<p>There's plenty of online help and examples for raspivid</p>

<p>Also - you may have to wrap your h264 file in mp4 "box" to play it</p>

<p>Here's one suggestion on how to do this wrapping using MP4Box </p>

<pre><code>sudo apt-get update
sudo apt-get install -y gpac
</code></pre>

<p>Once installed use the following command to wrap your H264 video in an MP4 container file. This allows most media players to play the video.</p>

<pre><code>MP4Box -fps 30 -add video.h264 video.mp4
</code></pre>

<p>This will give you a nice video at 30 frames per second that should play in most modern media players.</p>

python python-3.x camera raspberry-pi raspberry-pi3