<?xml version="1.0" encoding="windows-1252"?>
<node id="984515" title="Re: Get size and bitrate of video with perl and ffmpeg" created="2012-07-30 16:35:43" updated="2012-07-30 16:35:43">
<type id="11">
note</type>
<author id="145647">
zengargoyle</author>
<data>
<field name="doctext">
Check out using &lt;code&gt;ffprobe&lt;/code&gt; instead of &lt;code&gt;ffmpeg&lt;/code&gt;.  It doesn't try to &lt;b&gt;play&lt;/b&gt; the video and you can pick an output format that suits you.
&lt;code&gt;
$ ffprobe -i http://bennugd-vlc.googlecode.com/files/sintel_trailer-480p.mp4 -show_streams -print_format csv 2&gt;/dev/null
stream,0,h264,H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10,video,1/48,avc1,0x31637661,854,480,2,N/A,N/A,yuv420p,30,N/A,1,4,N/A,24/1,24/1,1/24,0.000000,52.208333,537875,1253,N/A,N/A,1970-01-01 00:00:00,und,VideoHandler
stream,1,aac,Advanced Audio Coding,audio,1/48000,mp4a,0x6134706d,s16,48000,2,0,N/A,0/0,0/0,1/48000,0.000000,51.946667,126694,2435,N/A,N/A,1970-01-01 00:00:00,und,SoundHandler
&lt;/code&gt;</field>
<field name="root_node">
984494</field>
<field name="parent_node">
984494</field>
</data>
</node>
