{"id":5220,"date":"2014-03-30T19:51:00","date_gmt":"2014-03-30T19:51:00","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/ffmpeg-could-not-open-file-mpg-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:51:00","modified_gmt":"2014-03-30T19:51:00","slug":"ffmpeg-could-not-open-file-mpg-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/ffmpeg-could-not-open-file-mpg-collection-of-common-programming-errors\/","title":{"rendered":"ffmpeg could not open file.mpg-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/dd7e03fbbfcabd4675844173ec5390d2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMichael Mrozek<\/p>\n<p>When I want to convert a video with the following command:<\/p>\n<pre><code>ffmpeg -i file.wmv -sameq file.mpg\n<\/code><\/pre>\n<p>it ends with this error message:<\/p>\n<pre><code>FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.   configuration:\n--extra-version=4:0.5.1-1ubuntu1.1 --prefix=\/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static   libavutil     49.15. 0 \/ 49.15. 0   libavcodec    52.20. 1 \/ 52.20. 1   libavformat   52.31. 0 \/ 52.31. 0  libavdevice   52. 1. 0 \/ 52. 1. 0   libavfilter    0. 4. 0 \/  0. 4. 0  libswscale     0. 7. 1 \/  0. 7. 1   libpostproc   51. 2. 0 \/ 51. 2. 0  built on Mar 31 2011 18:53:20, gcc: 4.4.3 [wmv3 @ 0x82dbc50]Extra data: 8 bits left, value: 0\n\nSeems stream 1 codec frame rate differs from container frame rate:\n1000.00 (1000\/1) -&gt; 30.00 (30\/1) Input #0, asf, from 'file.wmv':   Duration: 00:16:53.68, start: 3.065000, bitrate: 3827 kb\/s\n    Stream #0.0: Audio: 0x0162, 44100 Hz, stereo, s16, 48 kb\/s\n    Stream #0.1: Video: wmv3, yuv420p, 1920x1080, 3750 kb\/s, 30 tbr, 1k tbn, 1k tbc Could not open 'file.mpg'\n<\/code><\/pre>\n<p>What is wrong? How can I fix it?<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e2b3e97c778f41b191357b88e7a602ab?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPhilomath<\/p>\n<p>The problem lies here<\/p>\n<blockquote>\n<p><code>Audio: 0x0162<\/code><\/p>\n<\/blockquote>\n<p>It&#8217;s the audio format identifier called TwoCC, looking up there we find<\/p>\n<blockquote>\n<p>0x0162 Windows Media Audio Professional V9<\/p>\n<\/blockquote>\n<p>This codec is just not supported by your version of ffmpeg, according to the ffmpeg home page the WMA pro decoder was added in ffmpeg version 0.6, check it out.<\/p>\n<p>HTH<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Michael Mrozek When I want to convert a video with the following command: ffmpeg -i file.wmv -sameq file.mpg it ends with this error message: FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: &#8211;extra-version=4:0.5.1-1ubuntu1.1 &#8211;prefix=\/usr &#8211;enable-avfilter &#8211;enable-avfilter-lavf &#8211;enable-vdpau &#8211;enable-bzlib &#8211;enable-libgsm &#8211;enable-libschroedinger &#8211;enable-libspeex &#8211;enable-libtheora &#8211;enable-libvorbis &#8211;enable-pthreads &#8211;enable-zlib &#8211;disable-stripping &#8211;disable-vhook &#8211;enable-runtime-cpudetect &#8211;enable-gpl &#8211;enable-postproc &#8211;enable-swscale &#8211;enable-x11grab [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5220","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5220"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5220\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}