<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 5, 2012 at 2:13 AM, Mark Greenwood <span dir="ltr">&lt;<a href="mailto:fatgerman@gmail.com" target="_blank">fatgerman@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-family:&#39;Verdana&#39;;font-size:8pt;font-weight:400;font-style:normal"><div><div class="h5">
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">On Sunday 04 Nov 2012 07:59:03 Marco Quezada wrote:<br></p>
<p style="margin-top:12px;margin-bottom:12px;margin-left:40px;margin-right:40px;text-indent:0px"><br>On Nov 3, 2012 9:44 PM, &quot;Mark Greenwood&quot; &lt;<a href="mailto:fatgerman@gmail.com" target="_blank"><span style="text-decoration:underline;color:#0057ae">fatgerman@gmail.com</span></a>&gt; wrote:<br>
&gt;<br>&gt; I&#39;m experiencing some glitching on a few videos and I&#39;m having trouble sorting it out. Running 0.26 on an atom/ION box on kernel 3.2 (mythbuntu 12.04), using the VDPAU High Quality playback setting.<br>
&gt;<br>&gt; I&#39;ve gone through the wiki entry on glitch-free playback and inserted all the ModeLines into my xorg.conf as described, but things still aren&#39;t quite right.<br>&gt;<br>&gt; Here&#39;s some log output from mythfrontend -v playback on an mkv file (x264/AC3 audio). I&#39;m downmixing 6 channel audio to stereo.<br>
&gt;<br>&gt; 2012-11-04 01:14:26.634266 I  AFD: Stream #0, has id 0x0 codec id H264, type Video, bitrate 0 at 0xcf31740<br>&gt; 2012-11-04 01:14:26.644142 I  AFD: Selected FPS is 23.976 (avg 23.976 codec 23.976 container 1000 estimated 23.976)<br>
&gt; 2012-11-04 01:14:26.644215 I  Player(0): SetFrameInterval ps:1 scan:3<br>&gt; 2012-11-04 01:14:26.644285 I  Player(0): detectInterlace(Detect Scan, Interlaced Scan, 23.976, 720) -&gt;Progressive Scan<br>&gt;<br>&gt; 2012-11-04 01:14:26.644339 I  AFD: Using vdpau for video decoding<br>
&gt; 2012-11-04 01:14:26.644360 I  AFD: Looking for decoder for H264<br>&gt; 2012-11-04 01:14:26.644970 I  AFD: Opened codec 0xcf31920, id(H264) type(Video)<br>&gt; 2012-11-04 01:14:26.645064 I  AFD: Stream #1, has id 0x0 codec id AC3, type Audio, bitrate 448000 at 0xcc807c0<br>
&gt; 2012-11-04 01:14:26.645090 I  AFD: codec AC3 has 6 channels<br>&gt; 2012-11-04 01:14:26.645110 I  AFD: Looking for decoder for AC3<br>&gt; 2012-11-04 01:14:26.646601 I  AFD: Opened codec 0xcf31d00, id(AC3) type(Audio)<br>
&gt; 2012-11-04 01:14:26.646810 I  AO: Opening audio device &#39;hdmi:CARD=NVidia,DEV=0&#39; ch 2(6) sr 48000 sf signed 32 bit reenc 0<br>&gt;<br>&gt; 2012-11-04 01:14:26.839834 I  VDP: SetVideoRenderer(vdpau)<br>&gt; 2012-11-04 01:14:26.839861 I  VDP: SetVideoRender(vdpau) == GetVideoRenderer()<br>
&gt; 2012-11-04 01:14:26.841953 I  Trying to match best refresh rate 23.976Hz<br>&gt; 2012-11-04 01:14:26.842011 I  Trying 1920x1080 23.976 Hz<br>&gt; 2012-11-04 01:14:26.844032 I  Dynamic TwinView rate found, set 23.9758Hz as XRandR 57<br>
&gt;<br>&gt; This is my first observation: I&#39;ve got a ModeLine for 1920x1080 at 23.976. So why is it saying it&#39;s using a Dynamic Twinview rate at 23.9758?<br>&gt;<br>&gt; 2012-11-04 01:14:27.261016 I  VDPAU: Information NVIDIA VDPAU Driver Shared Library  295.40  Thu Apr  5 21:54:31 PDT 2012<br>
&gt; 2012-11-04 01:14:27.261041 I  VDPAU: HQ Scaling not supported.<br>&gt; 2012-11-04 01:14:27.261063 I  VDPAU: MPEG4 hardware acceleration not supported.<br>&gt;<br>&gt; My second observation: Why is it saying MPEG4 hardware acceleration not supported? I&#39;m pretty sure that the chipset in this box does MPEG4 acceleration.<br>
&gt;<br>&gt; 2012-11-04 01:14:27.901087 I  VDP: GetFilteredDeint() : vdpau -&gt; &#39;vdpauadvanceddoublerate&#39;<br>&gt; 2012-11-04 01:14:27.929986 I  VidOutVDPAU: Enabled deinterlacing.<br>&gt; 2012-11-04 01:14:27.930154 I  VSYNC: DRMVideoSync: Could not open device /dev/dri/card0, No such file or directory<br>
&gt; 2012-11-04 01:14:27.930260 E  Player(0): Video sync method can&#39;t support double framerate (refresh rate too low for 2x deint)<br>&gt; 2012-11-04 01:14:27.953072 I  VDP: GetFilteredDeint(vdpauadvanced) : vdpau -&gt; &#39;vdpauadvanced&#39;<br>
&gt; 2012-11-04 01:14:27.985325 I  VidOutVDPAU: Enabled deinterlacing.<br>&gt; 2012-11-04 01:14:27.991046 I  Player(0): Video timing method: RTC<br>&gt; 2012-11-04 01:14:27.991114 I  Player(0): Display Refresh Rate: 23.976 Video Frame Rate: 23.976<br>
&gt;<br>&gt; All sorts of things here that confuse me. Why is it enabling deinterlacing for a progressive scan video?<br>&gt; It now says the display refresh rate is 23.976 - but what about that XRandR mode it mentioned earlier? Is it not using that? (My TV doesn&#39;t have an info button to tell me what refresh rate is being used)<br>
&gt;<br>&gt; However I think the following shows probably what the real problem is:<br>&gt;<br>&gt; 2012-11-04 01:14:28.251288 I  Player(0): progressive frame seen after 2 interlaced frames<br>&gt; 2012-11-04 01:14:28.251365 I  Player(0): A/V predict drop frame, dropping frame to catch up.<br>
&gt; 2012-11-04 01:14:28.251643 I  Player(0): Waiting for video buffers...<br>&gt; 2012-11-04 01:14:28.285566 I  VDPAU: Added 2 output surfaces (total 4, max 4)<br>&gt; 2012-11-04 01:14:28.392047 I  Player(0): Disabled deinterlacing<br>
&gt; 2012-11-04 01:14:28.395075 I  Player(0): Video is 4.08495 frames behind audio (too slow), dropping frame to catch up.<br>&gt; 2012-11-04 01:14:28.395279 I  Player(0): Video is 5.29949 frames behind audio (too slow), dropping frame to catch up.<br>
&gt; 2012-11-04 01:14:28.395409 I  Player(0): Video is 5.95265 frames behind audio (too slow), dropping frame to catch up.<br>&gt; 2012-11-04 01:14:28.395635 I  Player(0): Video is 6.19675 frames behind audio (too slow), dropping frame to catch up.<br>
&gt; 2012-11-04 01:14:28.395946 I  Player(0): Video is 6.13408 frames behind audio (too slow), dropping frame to catch up.<br>&gt; 2012-11-04 01:14:28.396179 I  Player(0): Video is 5.83533 frames behind audio (too slow), dropping frame to catch up.<br>
&gt; 2012-11-04 01:14:28.396314 I  Player(0): Video is 5.35952 frames behind audio (too slow), dropping frame to catch up.<br>&gt; 2012-11-04 01:14:28.396484 I  Player(0): Video is 4.7629 frames behind audio (too slow), dropping frame to catch up.<br>
&gt; 2012-11-04 01:14:28.396629 I  Player(0): Video is 4.06368 frames behind audio (too slow), dropping frame to catch up.<br>&gt; 2012-11-04 01:14:28.396753 I  Player(0): Video is 3.28153 frames behind audio (too slow), dropping frame to catch up.<br>
&gt; 2012-11-04 01:14:28.396846 I  Player(0): Waiting for video buffers...<br>&gt; 2012-11-04 01:14:29.654923 I  AFD: gopset not set, syncing positionMap<br>&gt; 2012-11-04 01:14:29.654974 I  Dec: Resyncing position map. posmapStarted = 0 livetv(0) watchingRec(0)<br>
&gt; 2012-11-04 01:14:29.654998 I  AFD: Initial key frame distance: 15.<br>&gt; 2012-11-04 01:14:31.824987 I  AFD: Key frame distance changed from 54 to 52.<br>&gt; 2012-11-04 01:14:31.992106 I  Player(0): FPS:   25.41 Mean: 39351 Std.Dev: 17122 CPUs: 100% 100%<br>
&gt; 2012-11-04 01:14:35.411139 I  AFD: Key frame distance changed from 52 to 86.<br>&gt; 2012-11-04 01:14:35.953958 I  Player(0): FPS:   23.99 Mean: 41679 Std.Dev:   485 CPUs: 5% 5%<br>&gt; 2012-11-04 01:14:36.578591 I  AFD: Key frame distance changed from 86 to 28.<br>
&gt; 2012-11-04 01:14:38.706655 I  AFD: Key frame distance changed from 28 to 51.<br>&gt; 2012-11-04 01:14:39.916859 I  Player(0): FPS:   23.99 Mean: 41690 Std.Dev:   691 CPUs: 12% 4%<br>&gt; 2012-11-04 01:14:41.750761 I  AFD: Key frame distance changed from 51 to 73.<br>
&gt; 2012-11-04 01:14:43.044159 I  AFD: Key frame distance changed from 73 to 31.<br>&gt; 2012-11-04 01:14:43.878762 I  Player(0): FPS:   23.99 Mean: 41680 Std.Dev:   533 CPUs: 6% 3%<br>&gt; 2012-11-04 01:14:44.627999 I  Player(0): 400 progressive frames seen.<br>
&gt; 2012-11-04 01:14:45.587615 I  AFD: Key frame distance changed from 31 to 61.<br>&gt; 2012-11-04 01:14:47.840684 I  Player(0): FPS:   23.99 Mean: 41680 Std.Dev:   487 CPUs: 6% 4%<br>&gt; 2012-11-04 01:14:49.550139 I  AFD: Key frame distance changed from 61 to 95.<br>
&gt;<br>&gt; The video plays very jerkily for the first 5 or 10 seconds then settles down. I&#39;ve noticed the CPU usage is 100% according to this log during that time. What could be causing that?<br>&gt;<br>&gt; Any observations or advice anyone can give will be greatly appreciated.<br>
&gt;<br>&gt; Thanks,<br>&gt;<br>&gt; Mark<br>&gt; _______________________________________________<br>&gt; mythtv-users mailing list<br>&gt; <a href="mailto:mythtv-users@mythtv.org" target="_blank"><span style="text-decoration:underline;color:#0057ae">mythtv-users@mythtv.org</span></a><br>
&gt; <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank"><span style="text-decoration:underline;color:#0057ae">http://www.mythtv.org/mailman/listinfo/mythtv-users</span></a></p>
<p style="margin-top:12px;margin-bottom:12px;margin-left:40px;margin-right:40px;text-indent:0px">I had pretty much the same issue when i upgraded from .24 to .25. I have practically the same setup as yours, mine is an atom/ion2. I updated the nVidia drivers to the latest version (350.x) and switched to VDPAU Normal profile as mentioned. Now i still have a short delay of the audio playback at tge beginning of playback, but otherwise the video looks great, no jitters or dropped frames.<br>
</p>
</div></div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Thanks. I read on the wiki that for glitch-free playback you should only use the 295 series drivers, as something changed in the 3xx series which meant that glitch free would not work. That&#39;s why I&#39;m on the 295 driver still. I&#39;ve also tried the VDPAU Normal profile but it has made no difference to this problem.</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">So from the replies I&#39;ve had there doesn&#39;t seem to be anything specifically wrong with my mythtv setup, which is a releif :). This problem is specific to certain mkv files, and those same files also play jerkily in mplayer (which also uses ffmpeg) so I don&#39;t think it&#39;s actually a mythtv issue.</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Does anybody know of any tools which could look for problems in the files I&#39;m having trouble with? I&#39;ve tried loading them into avidemux but that loads them fine. I&#39;m just intrigued as to why some files are maxing out the CPU and some apparently identical ones are not.</p>

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Thanks,</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"> </p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">Mark</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><br><br></p></div></blockquote><div><br><br>mediainfo will give quite a lot of information<br></div></div></div>