<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to convert matroska MKV to AVI on Linux ?</title>
	<atom:link href="http://www.larsen-b.com/Article/261.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.larsen-b.com/Article/261.html</link>
	<description>Titanium Exposé</description>
	<lastBuildDate>Mon, 02 Jul 2018 13:54:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
	<item>
		<title>By: j2quinn</title>
		<link>http://www.larsen-b.com/Article/261.html/comment-page-1#comment-7971</link>
		<dc:creator>j2quinn</dc:creator>
		<pubDate>Fri, 25 Feb 2011 09:27:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-7971</guid>
		<description><![CDATA[for those who have a syntax error; it is due to the python version. you need to explicitly state python2 in the case of archlinux. script needs modification for python3.

jesse]]></description>
		<content:encoded><![CDATA[<p>for those who have a syntax error; it is due to the python version. you need to explicitly state python2 in the case of archlinux. script needs modification for python3.</p>
<p>jesse</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jagarsoft</title>
		<link>http://www.larsen-b.com/Article/261.html/comment-page-1#comment-7962</link>
		<dc:creator>jagarsoft</dc:creator>
		<pubDate>Wed, 26 Jan 2011 07:54:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-7962</guid>
		<description><![CDATA[At last, I&#039;ve found a set of options which don&#039;t cause error:

os.system(&quot;ffmpeg -i temp_audio.ogg -i temp_video.avi -f avi -vcodec mpeg4 -b 950k -g 300 -bf 2 -acodec mp2 -ab 64k -vtag divx &#039;%s&#039;.avi&quot; % (basename) )

PS: However, it&#039;s not a optimal set of options :-( This was just a try!]]></description>
		<content:encoded><![CDATA[<p>At last, I&#8217;ve found a set of options which don&#8217;t cause error:</p>
<p>os.system(&#8220;ffmpeg -i temp_audio.ogg -i temp_video.avi -f avi -vcodec mpeg4 -b 950k -g 300 -bf 2 -acodec mp2 -ab 64k -vtag divx &#8216;%s&#8217;.avi&#8221; % (basename) )</p>
<p>PS: However, it&#8217;s not a optimal set of options :-( This was just a try!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jagarsoft</title>
		<link>http://www.larsen-b.com/Article/261.html/comment-page-1#comment-7961</link>
		<dc:creator>jagarsoft</dc:creator>
		<pubDate>Tue, 25 Jan 2011 11:07:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-7961</guid>
		<description><![CDATA[Hi. Thanks a lot for your script!!

It dumps an error:

[snip]
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.1-1ubuntu1 --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  4 2010 12:35:30, gcc: 4.4.3
Input #0, aac, from &#039;temp_audio.ogg&#039;:
  Duration: 00:40:25.85, bitrate: 217 kb/s
    Stream #0.0: Audio: aac, 48000 Hz, stereo, s16, 217 kb/s

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -&gt; 23.98 (48000/2002)
Input #1, h264, from &#039;temp_video.avi&#039;:
  Duration: N/A, bitrate: N/A
    Stream #1.0: Video: h264, yuv420p, 1280x720, 23.98 tbr, 1200k tbn, 47.95 tbc
Output #0, avi, to &#039;myvideo.avi&#039;:
    Stream #0.0: Video: libx264, yuv420p, 1280x720, q=2-31, 90k tbn, 23.98 tbc
    Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #1.0 -&gt; #0.0
  Stream #0.0 -&gt; #0.1
Press [q] to stop encoding
[NULL @ 0x8c63110]error, non monotone timestamps 62562 &gt;= 62562=3236.6kbits/s    
av_interleaved_write_frame(): Error while opening file

Cleaning files

I&#039;ve proved this http://ubuntuforums.org/showthread.php?t=786095&amp;page=34
but didn&#039;t work ;-(

PS: I keep looking in Google ;-)]]></description>
		<content:encoded><![CDATA[<p>Hi. Thanks a lot for your script!!</p>
<p>It dumps an error:</p>
<p>[snip]<br />
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al.<br />
  configuration: &#8211;extra-version=4:0.5.1-1ubuntu1 &#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 &#8211;enable-libdc1394 &#8211;enable-shared &#8211;disable-static<br />
  libavutil     49.15. 0 / 49.15. 0<br />
  libavcodec    52.20. 1 / 52.20. 1<br />
  libavformat   52.31. 0 / 52.31. 0<br />
  libavdevice   52. 1. 0 / 52. 1. 0<br />
  libavfilter    0. 4. 0 /  0. 4. 0<br />
  libswscale     0. 7. 1 /  0. 7. 1<br />
  libpostproc   51. 2. 0 / 51. 2. 0<br />
  built on Mar  4 2010 12:35:30, gcc: 4.4.3<br />
Input #0, aac, from &#8216;temp_audio.ogg&#8217;:<br />
  Duration: 00:40:25.85, bitrate: 217 kb/s<br />
    Stream #0.0: Audio: aac, 48000 Hz, stereo, s16, 217 kb/s</p>
<p>Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -&gt; 23.98 (48000/2002)<br />
Input #1, h264, from &#8216;temp_video.avi&#8217;:<br />
  Duration: N/A, bitrate: N/A<br />
    Stream #1.0: Video: h264, yuv420p, 1280&#215;720, 23.98 tbr, 1200k tbn, 47.95 tbc<br />
Output #0, avi, to &#8216;myvideo.avi&#8217;:<br />
    Stream #0.0: Video: libx264, yuv420p, 1280&#215;720, q=2-31, 90k tbn, 23.98 tbc<br />
    Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 64 kb/s<br />
Stream mapping:<br />
  Stream #1.0 -&gt; #0.0<br />
  Stream #0.0 -&gt; #0.1<br />
Press [q] to stop encoding<br />
[NULL @ 0x8c63110]error, non monotone timestamps 62562 &gt;= 62562=3236.6kbits/s<br />
av_interleaved_write_frame(): Error while opening file</p>
<p>Cleaning files</p>
<p>I&#8217;ve proved this <a href="http://ubuntuforums.org/showthread.php?t=786095&#038;page=34" rel="nofollow">http://ubuntuforums.org/showthread.php?t=786095&#038;page=34</a><br />
but didn&#8217;t work ;-(</p>
<p>PS: I keep looking in Google ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Espen Klem</title>
		<link>http://www.larsen-b.com/Article/261.html/comment-page-1#comment-7959</link>
		<dc:creator>Espen Klem</dc:creator>
		<pubDate>Sun, 23 Jan 2011 17:58:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-7959</guid>
		<description><![CDATA[Dave, I had the same problem using &quot;-oac copy&quot;. Changed it to &quot;-oac mp3lame&quot; making the whole line look like this:

mencoder [filename].mkv -ovc xvid -xvidencopts fixed_quant=4 -vf harddup -oac mp3lame -o [filename].avi

I guess the recoding does the trick.]]></description>
		<content:encoded><![CDATA[<p>Dave, I had the same problem using &#8220;-oac copy&#8221;. Changed it to &#8220;-oac mp3lame&#8221; making the whole line look like this:</p>
<p>mencoder [filename].mkv -ovc xvid -xvidencopts fixed_quant=4 -vf harddup -oac mp3lame -o [filename].avi</p>
<p>I guess the recoding does the trick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: starglider</title>
		<link>http://www.larsen-b.com/Article/261.html/comment-page-1#comment-7948</link>
		<dc:creator>starglider</dc:creator>
		<pubDate>Fri, 31 Dec 2010 10:59:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-7948</guid>
		<description><![CDATA[Python rulez!
Thank you for this script.]]></description>
		<content:encoded><![CDATA[<p>Python rulez!<br />
Thank you for this script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ms</title>
		<link>http://www.larsen-b.com/Article/261.html/comment-page-1#comment-7937</link>
		<dc:creator>ms</dc:creator>
		<pubDate>Thu, 02 Dec 2010 22:28:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-7937</guid>
		<description><![CDATA[replace all instances of %s with &#039;%s&#039; to fix the &quot;weird filename&quot; problem
for example, this line

os.system(&quot;mkvextract tracks %s 1:temp_video.avi 2:temp_audio.ogg 3:%s.srt&quot; % (filename,basename) )

should be

os.system(&quot;mkvextract tracks &#039;%s&#039; 1:temp_video.avi 2:temp_audio.ogg 3:&#039;%s&#039;.srt&quot; % (filename,basename) )]]></description>
		<content:encoded><![CDATA[<p>replace all instances of %s with &#8216;%s&#8217; to fix the &#8220;weird filename&#8221; problem<br />
for example, this line</p>
<p>os.system(&#8220;mkvextract tracks %s 1:temp_video.avi 2:temp_audio.ogg 3:%s.srt&#8221; % (filename,basename) )</p>
<p>should be</p>
<p>os.system(&#8220;mkvextract tracks &#8216;%s&#8217; 1:temp_video.avi 2:temp_audio.ogg 3:&#8217;%s&#8217;.srt&#8221; % (filename,basename) )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.larsen-b.com/Article/261.html/comment-page-1#comment-7910</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 23 Oct 2010 20:23:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-7910</guid>
		<description><![CDATA[Thanks!

A real lifesaver. ffmpeg failed me on this.]]></description>
		<content:encoded><![CDATA[<p>Thanks!</p>
<p>A real lifesaver. ffmpeg failed me on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: previso</title>
		<link>http://www.larsen-b.com/Article/261.html/comment-page-1#comment-7898</link>
		<dc:creator>previso</dc:creator>
		<pubDate>Tue, 28 Sep 2010 03:05:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-7898</guid>
		<description><![CDATA[http://kde-apps.org/content/show.php/Mkv+2+Avi+%28Matroska+to+Avi%29?content=74842


A Kommander script with GUI.
**REM**   kmdr-executor mkv2avi-2.kmdr  from console]]></description>
		<content:encoded><![CDATA[<p><a href="http://kde-apps.org/content/show.php/Mkv+2+Avi+%28Matroska+to+Avi%29?content=74842" rel="nofollow">http://kde-apps.org/content/show.php/Mkv+2+Avi+%28Matroska+to+Avi%29?content=74842</a></p>
<p>A Kommander script with GUI.<br />
**REM**   kmdr-executor mkv2avi-2.kmdr  from console</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flojo</title>
		<link>http://www.larsen-b.com/Article/261.html/comment-page-1#comment-7808</link>
		<dc:creator>Flojo</dc:creator>
		<pubDate>Thu, 15 Jul 2010 13:48:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-7808</guid>
		<description><![CDATA[For the \xc3 issue you need to remove 

&#039;-s 1280×720&#039;

For the original script I was getting the following error 

mp2 @ 0x8cf19f0]encoding 6 channel(s) is not allowed in mp2
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

Anyone know how to fix that?]]></description>
		<content:encoded><![CDATA[<p>For the \xc3 issue you need to remove </p>
<p>&#8216;-s 1280×720&#8242;</p>
<p>For the original script I was getting the following error </p>
<p>mp2 @ 0x8cf19f0]encoding 6 channel(s) is not allowed in mp2<br />
Error while opening codec for output stream #0.1 &#8211; maybe incorrect parameters such as bit_rate, rate, width or height</p>
<p>Anyone know how to fix that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zo</title>
		<link>http://www.larsen-b.com/Article/261.html/comment-page-1#comment-7788</link>
		<dc:creator>Zo</dc:creator>
		<pubDate>Fri, 07 May 2010 16:43:36 +0000</pubDate>
		<guid isPermaLink="false">#comment-7788</guid>
		<description><![CDATA[None of these work for me, they all fail in one way or another. 

@brahmix
this returns an error &quot;SyntaxError: Non-ASCII character &#039;\xc3&#039; in file ./mkv2avi on line 31, but no encoding declared&quot;

this command doesn&#039;t work either 

ffmpeg -i infilename.m4v ntsc-target vcd outmoviefilename.avi

I get 

&quot;Unable to find a suitable output format for &#039;ntsc-target&#039;&quot; as the final error, but it required me to add ntsc prefix for -target. 

anyone have any ideas?]]></description>
		<content:encoded><![CDATA[<p>None of these work for me, they all fail in one way or another. </p>
<p>@brahmix<br />
this returns an error &#8220;SyntaxError: Non-ASCII character &#8216;\xc3&#8242; in file ./mkv2avi on line 31, but no encoding declared&#8221;</p>
<p>this command doesn&#8217;t work either </p>
<p>ffmpeg -i infilename.m4v ntsc-target vcd outmoviefilename.avi</p>
<p>I get </p>
<p>&#8220;Unable to find a suitable output format for &#8216;ntsc-target&#8217;&#8221; as the final error, but it required me to add ntsc prefix for -target. </p>
<p>anyone have any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
