<?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>Jay's Technical Talk &#187; playback</title>
	<atom:link href="http://www.summet.com/blog/tag/playback/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.summet.com/blog</link>
	<description>My external memory</description>
	<lastBuildDate>Mon, 23 Jan 2012 01:54:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MythTV / MythDVD movie ripping / playback problem (Solved!)</title>
		<link>http://www.summet.com/blog/2008/04/28/mythtv-mythdvd-movie-ripping-problem/</link>
		<comments>http://www.summet.com/blog/2008/04/28/mythtv-mythdvd-movie-ripping-problem/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 01:19:50 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[playback]]></category>

		<guid isPermaLink="false">http://www.summet.com/blog/?p=208</guid>
		<description><![CDATA[I have used Myth to rip a large number of my DVD&#39;s to AVI files (using either the Excellent or Good setting).&#160; Now that I am starting to play back the movies, I have found something that is very troubling. On many of the movies, the first 95% of the movie (e.g. 1:13 min of [...]
Related posts:<ol>
<li><a href='http://www.summet.com/blog/2007/03/23/converting-a-movie-avi-to-play-on-a-cell-phone-3gp/' rel='bookmark' title='Converting a movie (.avi) to play on a cell phone (.3gp) on Mandriva Linux'>Converting a movie (.avi) to play on a cell phone (.3gp) on Mandriva Linux</a></li>
<li><a href='http://www.summet.com/blog/2007/11/08/mythtv-to-phone-3gp-transcoder-script/' rel='bookmark' title='MythTV to phone (.3gp) transcoder script and Bluetooth transfer'>MythTV to phone (.3gp) transcoder script and Bluetooth transfer</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have used Myth to rip a large number of my DVD&#39;s to AVI files (using either the Excellent or Good setting).&nbsp; Now that I am starting to play back the movies, I have found something that is very troubling.</p>
<p> On many of the movies, the first 95% of the movie (e.g. 1:13 min of a 1:26 movie) plays flawlessly. However, near the end of the movie, the audio and video starts to speed up and get jerky. (Audio/video sync is also thrown off.)<span id="more-208"></span></p>
<p> I have copied the files to a different box and played them with totem and mplayer and was happy to find that the files appear to be just fine. (or maybe mplayer/totem deal with them better?)<br /> &nbsp;<br /> It seems that the problem is with the mythv internal video player.</p>
<p> After a random sample of movies, I&#39;d say that at least 50-70% (but not all!) of the movies have this problem. The problem survives reboots of the mythtv box. </p>
<p>I am using Xvmc for HDTV playback (with no problems), (OSD is B&amp;W) but not for the internal video player. (OSD is in full color)</p>
<p> Even if I ESC from the movie and then go back into it (the internal player resumes at the same spot) the problems continue as before. If I rewind the movie, it works correctly before the &quot;problem starting spot&quot; but when it hits that spot, the problems resume.</p>
<p> I suspect it may be a problem that is caused by the MythTV ripping system, as I have re-encoded movies using mencoder that then play back correctly in the internal video player.</p>
<p>I was able to solve this problem (which appears to be a problem in the index of the avi files generated by MythDVD) by using mencoder to re-create the index for all of my video files.</p>
<p><em>&nbsp; mencoder -idx MOVIE_TO_FIX.avi -ovc copy -oac copy -o FIXED_OUTPUT.avi</em></p>
<p>I created the following script to go through my video files and re-create the index (it takes about a minute per movie). The script will only process a movie one time (keeping track by creating a marker file in the hidden .fixed_list directory) so it&#39;s safe to run every time you rip new DVD&#39;s without repeating work needlessly:</p>
<address> </address>
<address>&nbsp;#!/bin/bash</p>
<p> for movie in *<br /> do<br /> &nbsp;if [ -f &quot;.fixed_list/$movie.fixed&quot; ]<br /> &nbsp;then<br /> &nbsp;&nbsp; echo &quot;$movie already fixed&quot;<br /> &nbsp;else<br /> &nbsp;&nbsp; echo &quot;Processing $movie&quot;<br /> &nbsp;&nbsp; mencoder -idx &quot;$movie&quot; -ovc copy -oac copy -o temp_file.avi<br /> &nbsp;&nbsp; mv temp_file.avi &quot;$movie&quot;<br /> &nbsp;&nbsp; touch &quot;.fixed_list/$movie.fixed&quot;<br /> &nbsp;fi<br /> done</p></address>
<p>Movies with a problem generated the following message when re-creating the index:</p>
<p>&nbsp;ODML: Starting new RIFF chunk at 1023MB.m:</p>
<p>I&#39;m not sure what a new RIFF chunk is, but apparently the built in MythDVD encoder is not producing them correctly.&nbsp;</p>
<p> &nbsp; &nbsp;</p>
<p><map name='google_ad_map_208_faa54e7073bca4ae'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/208?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_208_faa54e7073bca4ae' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=208&amp;url= http%3A%2F%2Fwww.summet.com%2Fblog%2F2008%2F04%2F28%2Fmythtv-mythdvd-movie-ripping-problem%2F' /></p><p>Related posts:<ol>
<li><a href='http://www.summet.com/blog/2007/03/23/converting-a-movie-avi-to-play-on-a-cell-phone-3gp/' rel='bookmark' title='Converting a movie (.avi) to play on a cell phone (.3gp) on Mandriva Linux'>Converting a movie (.avi) to play on a cell phone (.3gp) on Mandriva Linux</a></li>
<li><a href='http://www.summet.com/blog/2007/11/08/mythtv-to-phone-3gp-transcoder-script/' rel='bookmark' title='MythTV to phone (.3gp) transcoder script and Bluetooth transfer'>MythTV to phone (.3gp) transcoder script and Bluetooth transfer</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.summet.com/blog/2008/04/28/mythtv-mythdvd-movie-ripping-problem/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

