<p><br>
On Nov 3, 2012 9:44 PM, "Mark Greenwood" <<a href="mailto:fatgerman@gmail.com">fatgerman@gmail.com</a>> wrote:<br>
><br>
> I'm experiencing some glitching on a few videos and I'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>
><br>
> I'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't quite right.<br>
><br>
> Here's some log output from mythfrontend -v playback on an mkv file (x264/AC3 audio). I'm downmixing 6 channel audio to stereo.<br>
><br>
> 2012-11-04 01:14:26.634266 I AFD: Stream #0, has id 0x0 codec id H264, type Video, bitrate 0 at 0xcf31740<br>
> 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>
> 2012-11-04 01:14:26.644215 I Player(0): SetFrameInterval ps:1 scan:3<br>
> 2012-11-04 01:14:26.644285 I Player(0): detectInterlace(Detect Scan, Interlaced Scan, 23.976, 720) ->Progressive Scan<br>
><br>
> 2012-11-04 01:14:26.644339 I AFD: Using vdpau for video decoding<br>
> 2012-11-04 01:14:26.644360 I AFD: Looking for decoder for H264<br>
> 2012-11-04 01:14:26.644970 I AFD: Opened codec 0xcf31920, id(H264) type(Video)<br>
> 2012-11-04 01:14:26.645064 I AFD: Stream #1, has id 0x0 codec id AC3, type Audio, bitrate 448000 at 0xcc807c0<br>
> 2012-11-04 01:14:26.645090 I AFD: codec AC3 has 6 channels<br>
> 2012-11-04 01:14:26.645110 I AFD: Looking for decoder for AC3<br>
> 2012-11-04 01:14:26.646601 I AFD: Opened codec 0xcf31d00, id(AC3) type(Audio)<br>
> 2012-11-04 01:14:26.646810 I AO: Opening audio device 'hdmi:CARD=NVidia,DEV=0' ch 2(6) sr 48000 sf signed 32 bit reenc 0<br>
><br>
> 2012-11-04 01:14:26.839834 I VDP: SetVideoRenderer(vdpau)<br>
> 2012-11-04 01:14:26.839861 I VDP: SetVideoRender(vdpau) == GetVideoRenderer()<br>
> 2012-11-04 01:14:26.841953 I Trying to match best refresh rate 23.976Hz<br>
> 2012-11-04 01:14:26.842011 I Trying 1920x1080 23.976 Hz<br>
> 2012-11-04 01:14:26.844032 I Dynamic TwinView rate found, set 23.9758Hz as XRandR 57<br>
><br>
> This is my first observation: I've got a ModeLine for 1920x1080 at 23.976. So why is it saying it's using a Dynamic Twinview rate at 23.9758?<br>
><br>
> 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>
> 2012-11-04 01:14:27.261041 I VDPAU: HQ Scaling not supported.<br>
> 2012-11-04 01:14:27.261063 I VDPAU: MPEG4 hardware acceleration not supported.<br>
><br>
> My second observation: Why is it saying MPEG4 hardware acceleration not supported? I'm pretty sure that the chipset in this box does MPEG4 acceleration.<br>
><br>
> 2012-11-04 01:14:27.901087 I VDP: GetFilteredDeint() : vdpau -> 'vdpauadvanceddoublerate'<br>
> 2012-11-04 01:14:27.929986 I VidOutVDPAU: Enabled deinterlacing.<br>
> 2012-11-04 01:14:27.930154 I VSYNC: DRMVideoSync: Could not open device /dev/dri/card0, No such file or directory<br>
> 2012-11-04 01:14:27.930260 E Player(0): Video sync method can't support double framerate (refresh rate too low for 2x deint)<br>
> 2012-11-04 01:14:27.953072 I VDP: GetFilteredDeint(vdpauadvanced) : vdpau -> 'vdpauadvanced'<br>
> 2012-11-04 01:14:27.985325 I VidOutVDPAU: Enabled deinterlacing.<br>
> 2012-11-04 01:14:27.991046 I Player(0): Video timing method: RTC<br>
> 2012-11-04 01:14:27.991114 I Player(0): Display Refresh Rate: 23.976 Video Frame Rate: 23.976<br>
><br>
> All sorts of things here that confuse me. Why is it enabling deinterlacing for a progressive scan video?<br>
> 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't have an info button to tell me what refresh rate is being used)<br>
><br>
> However I think the following shows probably what the real problem is:<br>
><br>
> 2012-11-04 01:14:28.251288 I Player(0): progressive frame seen after 2 interlaced frames<br>
> 2012-11-04 01:14:28.251365 I Player(0): A/V predict drop frame, dropping frame to catch up.<br>
> 2012-11-04 01:14:28.251643 I Player(0): Waiting for video buffers...<br>
> 2012-11-04 01:14:28.285566 I VDPAU: Added 2 output surfaces (total 4, max 4)<br>
> 2012-11-04 01:14:28.392047 I Player(0): Disabled deinterlacing<br>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 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>
> 2012-11-04 01:14:28.396846 I Player(0): Waiting for video buffers...<br>
> 2012-11-04 01:14:29.654923 I AFD: gopset not set, syncing positionMap<br>
> 2012-11-04 01:14:29.654974 I Dec: Resyncing position map. posmapStarted = 0 livetv(0) watchingRec(0)<br>
> 2012-11-04 01:14:29.654998 I AFD: Initial key frame distance: 15.<br>
> 2012-11-04 01:14:31.824987 I AFD: Key frame distance changed from 54 to 52.<br>
> 2012-11-04 01:14:31.992106 I Player(0): FPS: 25.41 Mean: 39351 Std.Dev: 17122 CPUs: 100% 100%<br>
> 2012-11-04 01:14:35.411139 I AFD: Key frame distance changed from 52 to 86.<br>
> 2012-11-04 01:14:35.953958 I Player(0): FPS: 23.99 Mean: 41679 Std.Dev: 485 CPUs: 5% 5%<br>
> 2012-11-04 01:14:36.578591 I AFD: Key frame distance changed from 86 to 28.<br>
> 2012-11-04 01:14:38.706655 I AFD: Key frame distance changed from 28 to 51.<br>
> 2012-11-04 01:14:39.916859 I Player(0): FPS: 23.99 Mean: 41690 Std.Dev: 691 CPUs: 12% 4%<br>
> 2012-11-04 01:14:41.750761 I AFD: Key frame distance changed from 51 to 73.<br>
> 2012-11-04 01:14:43.044159 I AFD: Key frame distance changed from 73 to 31.<br>
> 2012-11-04 01:14:43.878762 I Player(0): FPS: 23.99 Mean: 41680 Std.Dev: 533 CPUs: 6% 3%<br>
> 2012-11-04 01:14:44.627999 I Player(0): 400 progressive frames seen.<br>
> 2012-11-04 01:14:45.587615 I AFD: Key frame distance changed from 31 to 61.<br>
> 2012-11-04 01:14:47.840684 I Player(0): FPS: 23.99 Mean: 41680 Std.Dev: 487 CPUs: 6% 4%<br>
> 2012-11-04 01:14:49.550139 I AFD: Key frame distance changed from 61 to 95.<br>
><br>
> The video plays very jerkily for the first 5 or 10 seconds then settles down. I've noticed the CPU usage is 100% according to this log during that time. What could be causing that?<br>
><br>
> Any observations or advice anyone can give will be greatly appreciated.<br>
><br>
> Thanks,<br>
><br>
> Mark<br>
> _______________________________________________<br>
> mythtv-users mailing list<br>
> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
> <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a></p>
<p>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>