Author |
Message |
knappster
|
Posted: Sun Mar 15, 2009 11:57 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
I've been trying to track this down for a while now and I have not found a solution yet. I have R5.5 combined FE/BE with a PVR-500 and HDHomerun. I have noticed that sometimes the audio gets choppy and will lag behind the video and catch back up. It seems that it will only happen during certain shows, and that the problem goes away during commercial breaks.
My wife sometimes watches Desperate Housewives and it has been consistent that episodes of Desperate Housewives in HD have this problem. I have Debian Lenny on my desktop with mythfrontend 0.21.20080304-1 installed on it. I experience the same issue on my desktop. My desktop uses XvMC, my KM box does not. When I run it from the command prompt on my desktop it floods the prompt with messages:
Quote: 2009-03-15 22:55:17.875 audio stream changed 2009-03-15 22:55:17.891 audio stream changed 2009-03-15 22:55:17.909 audio stream changed 2009-03-15 22:55:17.942 audio stream changed 2009-03-15 22:55:17.942 audio stream changed 2009-03-15 22:55:18.008 audio stream changed 2009-03-15 22:55:18.027 audio stream changed 2009-03-15 22:55:18.044 audio stream changed 2009-03-15 22:55:18.075 audio stream changed 2009-03-15 22:55:18.111 audio stream changed 2009-03-15 22:55:18.142 audio stream changed 2009-03-15 22:55:18.178 audio stream changed 2009-03-15 22:55:18.178 audio stream changed 2009-03-15 22:55:18.244 audio stream changed 2009-03-15 22:55:18.313 audio stream changed 2009-03-15 22:55:18.364 audio stream changed
I then opened it with mplayer on the desktop and it stays in sync, which is great, but the command prompt reads: Quote: MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ (Family: 15, Model: 75, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control.
Playing 65191_20090315200337.mpg. TS file format detected. VIDEO MPEG2(pid=2112) AUDIO A52(pid=2113) NO SUBS (yet)! PROGRAM N. 1 VIDEO: MPEG2 1280x720 (aspect 3) 59.940 fps 14450.0 kbps (1806.2 kbyte/s) ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 1280 x 720 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try appending the scale filter to your filter list, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) ========================================================================== ========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform Using MMX optimized resampler AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [a52] afm: liba52 (AC3-liba52) ========================================================================== AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) Starting playback... VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO: [xv] 1280x720 => 1280x720 Planar YV12 A:11423.5 V:11423.7 A-V: -0.196 ct: -0.002 4/ 2 ??% ??% ??,?% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11423.8 V:11424.0 A-V: -0.201 ct: -0.026 17/ 14 ??% ??% ??,?% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] % ??,?% 0 0 A:11429.3 V:11429.3 A-V: -0.025 ct: -0.261 331/180 17% 3% 3.2% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11429.3 V:11429.3 A-V: -0.018 ct: -0.264 333/182 17% 3% 3.2% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] % 3.2% 0 0 A:11429.9 V:11429.9 A-V: -0.029 ct: -0.282 365/206 17% 3% 3.0% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11430.0 V:11430.0 A-V: 0.001 ct: -0.287 370/211 17% 3% 3.0% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] % 3.0% 0 0 A:11430.2 V:11430.2 A-V: -0.041 ct: -0.299 379/219 18% 3% 3.0% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11430.5 V:11430.5 A-V: 0.007 ct: -0.313 393/233 18% 4% 2.9% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] % 2.9% 0 0 A:11437.8 V:11437.9 A-V: -0.012 ct: -0.360 832/452 16% 3% 3.0% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11437.9 V:11437.9 A-V: -0.011 ct: -0.361 833/453 16% 3% 3.0% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] % 3.0% 0 0 A:11438.8 V:11438.8 A-V: 0.003 ct: -0.387 888/489 16% 3% 3.1% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11438.9 V:11438.9 A-V: 0.010 ct: -0.385 891/492 16% 3% 3.1% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] % 3.1% 0 0 A:11439.1 V:11439.1 A-V: -0.027 ct: -0.396 903/501 17% 3% 3.0% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11439.5 V:11439.5 A-V: 0.002 ct: -0.377 925/523 17% 3% 3.0% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] % 3.0% 0 0 A:11439.8 V:11439.8 A-V: 0.009 ct: -0.364 942/540 16% 3% 3.0% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11440.1 V:11440.1 A-V: 0.012 ct: -0.352 956/552 16% 3% 3.0% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] % 3.0% 0 0 A:11440.5 V:11440.5 A-V: -0.035 ct: -0.374 979/568 16% 3% 3.1% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11440.7 V:11440.7 A-V: 0.017 ct: -0.377 990/579 16% 3% 3.0% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] % 3.1% 0 0 A:11441.0 V:11440.9 A-V: 0.030 ct: -0.354 1004/592 17% 4% 3.0% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11441.2 V:11441.2 A-V: -0.006 ct: -0.357 1017/603 17% 4% 3.1% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] 4% 3.1% 0 0 A:11441.4 V:11441.4 A-V: -0.014 ct: -0.363 1028/612 17% 4% 3.1% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11441.4 V:11441.4 A-V: -0.014 ct: -0.364 1029/613 17% 4% 3.1% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] 4% 3.1% 0 0 A:11441.7 V:11441.8 A-V: -0.032 ct: -0.385 1046/626 17% 4% 3.2% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11442.0 V:11441.9 A-V: 0.025 ct: -0.385 1057/637 17% 4% 3.1% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] 4% 3.1% 0 0 A:11443.5 V:11443.5 A-V: -0.000 ct: -0.351 1148/698 17% 3% 3.2% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11443.6 V:11443.6 A-V: 0.007 ct: -0.335 1159/709 17% 4% 3.2% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] 4% 3.2% 0 0 A:11445.1 V:11445.1 A-V: 0.024 ct: -0.297 1245/794 17% 4% 3.1% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11445.1 V:11445.1 A-V: 0.023 ct: -0.296 1248/795 17% 4% 3.1% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] 4% 3.1% 0 0 A:11445.8 V:11445.8 A-V: -0.026 ct: -0.313 1288/819 17% 4% 3.1% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11446.0 V:11446.0 A-V: 0.026 ct: -0.307 1299/830 17% 4% 3.1% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] 4% 3.1% 0 0 A:11448.2 V:11448.1 A-V: 0.016 ct: -0.274 1429/958 17% 3% 3.1% 0 0 demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate. A:11448.2 V:11448.2 A-V: 0.015 ct: -0.272 1431/959 17% 3% 3.1% 0 0 demux_mpg: 30000/1001fps NTSC content detected, switching framerate. Warning! FPS changed 47.952 -> 59.940 (-11.988010) [7] 3% 3.1% 0 0 A:11451.8 V:11451.7 A-V: 0.024 ct: -0.275 1644/1054 16% 3% 3.4% 0 0
I can't imagine signal strength could be a problem as it's usually 95-100%. Is it possible that something is configured improperly? I have been considering upgrading to R6 preview but this is basically the only problem that I am having with R5.5 at the moment so I am a litlte bit leery to do so.
|
|
Top |
|
|
iscraigh
|
Posted: Mon Mar 16, 2009 11:41 am |
|
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location:
Nanaimo BC
|
I have a similar problem with hd shows on occasion my solution has been to run mythtranscode high quality (lossless) takes no time at all and seems to fix the sync issue.
Craig
|
|
Top |
|
|
knappster
|
Posted: Mon Mar 16, 2009 12:31 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
Are you using an HDHomerun too? I'm wondering if I should try updating the firmware on mine or if it's more likely to be something else. The mythtranscode would be a viable, but she watches it live.
|
|
Top |
|
|
iscraigh
|
Posted: Mon Mar 16, 2009 1:14 pm |
|
Joined: Mon Mar 21, 2005 1:43 pm
Posts: 388
Location:
Nanaimo BC
|
No I am using firewire capture.
|
|
Top |
|
|
ceenvee703
|
Posted: Mon Mar 16, 2009 1:41 pm |
|
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location:
Virginia, USA
|
Knappster: I'd suspect some playback settings. ABC broadcasts in 720p as does Fox. If you don't see the problem with audio in 1080i recordings (CBS, NBC) you might have some playback profile settings wrong--like trying to deinterlace 720p stuff that's not interlaced.
Also, what do you have for your audio settings? I forget the specifics but they're on the first page of the Playback settings and talk about "extra audio buffering," etc.
|
|
Top |
|
|
knappster
|
Posted: Mon Mar 16, 2009 2:31 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
the one that states "aggressive" is unchecked.
the one that states "extra audio buffers" is checked.
sync to video is unchecked, but instead of the audio skipping forward, it will speed up to catch up (think chipmunks).
I think it has only happened on ABC and FOX, but I am pretty sure my playback settings are the same for everything.
Actually, if memory serves me, I am using linear blend for everything on my KM box and Bob 2x on everything on my desktop.
Is it normal for mplayer to be spitting out all the FPS changes that I saw? That should be independent of the deinterlacers used by mythtv.
|
|
Top |
|
|
ceenvee703
|
Posted: Mon Mar 16, 2009 3:40 pm |
|
Joined: Fri Apr 02, 2004 10:08 am
Posts: 1637
Location:
Virginia, USA
|
I'm not sure it's normal for Mplayer to do that, but I think what it's reporting is OK... it's saying (I think) that it's recognizing that the material is 24p material (film) in a 60p file (the 720p60 recording from ABC). (24p is really 23.976 in NTSC, which doubles to 47.952, and 60p is really 59.94 in NTSC).
|
|
Top |
|
|
knappster
|
Posted: Mon Mar 16, 2009 4:29 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
I'll record something else on ABC that does not exhibit this and compare it to the mplayer output from this other file. I initially thought it was a myth playback problem, but I'm starting to feel like it's more a recording problem. Either way I am not getting much useful information from my errors / logs.
|
|
Top |
|
|
jzigmyth
|
Posted: Mon Mar 16, 2009 5:10 pm |
|
Joined: Thu Mar 02, 2006 5:42 pm
Posts: 410
Location:
middleton wi usa atsc
|
Several of ABCs more popular shows (at least Grey's Anatomy, Desperate Housewives and Samantha Who, for sure) have been time squeezed by leaving out frames. These shows are originally shot in film mode at 24 frames per second. Then 3:2 Pulldown is applied to make it compatible with USA ATSC or NTSC broadcasting.
After that process, ABC drops occasional frames to shorten the show enough to fit in one more high paying commercial on a popular show. This reeks havoc with modern TVs that do Reverse 3:2pulldown to get the original 24 fps back (aka Cinemotion on a Sony). Every time a missed frame is encountered the Reverse Pulldown algorithm hiccups and you get a stutter in the motion. I have to turn Cinemotion off on my TV for most of ABCs shows (the greedy bastards) It is a real pain because that setting is buried deep in the menu structure
Just a guess, but perhaps that dropped frame is whats causing the error of "switching frame rate"?
My audio stays in sync on R5.5, but guessing again, maybe cpu horsepower has something to do with how well it can keep up with weirdness?
I have "enable realtime priority threads" checked as well as "extra audio buffering". "Use video as timebase" is not checked and neither is "enable OpenGL vetical sync for timing".
|
|
Top |
|
|
knappster
|
Posted: Mon Mar 16, 2009 8:38 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
Both computers have amd dual core processors. The desktop has 2 GB RAM, the KM box has 1 GB. I do not have another ABC program recorded yet, but I do have a fox program which is 720p and it does not exhibit the same symptoms with mplayer:
Quote: MPlayer 1.0rc2-4.3.2-DFSG-free (C) 2000-2007 MPlayer Team CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ (Family: 15, Model: 75, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control.
Playing 65431_20090313190000.mpg. TS file format detected. VIDEO MPEG2(pid=2048) AUDIO A52(pid=2049) NO SUBS (yet)! PROGRAM N. 1 VIDEO: MPEG2 1280x720 (aspect 3) 59.940 fps 19000.0 kbps (2375.0 kbyte/s) ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 1280 x 720 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try appending the scale filter to your filter list, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) ========================================================================== ========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform Using MMX optimized resampler AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [a52] afm: liba52 (AC3-liba52) ========================================================================== AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) Starting playback... VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO: [xv] 1280x720 => 1280x720 Planar YV12 A:69258.5 V:69258.5 A-V: 0.004 ct: 0.065 1262/1262 21% 1% 9.8% 6 0 Exiting... (Quit)
Any tools that might help me diagnose this? I'm getting more and more convinced that it's on the recording end of things than the playback. Maybe it's the way it's broadcast. Upon watching it again it seems like the video is what is trying to speed up and slow down rather than the audio. On one setup the audio is stereo, the other is spdif out.
Interestingly enough she watches Grey's Anatomy more often, and has not complained about it once.
|
|
Top |
|
|
Grant_Edwards
|
Posted: Tue Mar 17, 2009 10:49 am |
|
Joined: Fri Feb 08, 2008 9:19 pm
Posts: 70
|
knappster wrote: I'm getting more and more convinced that it's on the recording end of things than the playback. I don't see how that's possible. The HDHR is just sending the bitstream that the TV station is broadcasting. Myth is just writing that bitstream to disk. The only things that can really go wrong just result in missing blocks of bits (signal S/N dropping, network glitches). There's not really anything happening in the "recroding end of things" other than copying blocks of bits. Quote: Maybe it's the way it's broadcast.
That seems much more likely to me. I would guess that either
the network or the local broacaster is mucking with the program
stream in order to do something "clever" (like squeeze in one
more commercial) which is resulting in broken timecodes.
_________________ Grant
|
|
Top |
|
|
knappster
|
Posted: Tue Mar 17, 2009 1:37 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
|
Top |
|
|