[mythtv-users] audio stuttering with mythvideo using standard mpeg2 decoder

Mario Minati mario at minati.de
Sat May 19 17:04:10 UTC 2007


Any help? I don't know where to look anymore.

Mario Minati schrieb:
> Hello @all,
>
> I really need some help on this topic after trying for two weeks now I'm 
> out of wisdom.
>
> What happens:
> - I ripped a DVD (IceAge2, Hellboy) in perfect quality (to get the vob 
> files with all audio streams)
> - I start the playback
> - The first minute everything is fine
> - Then the stuttering starts (no matter what audio stream I choose)
> - Audio is running faster than video (two minutes later the divergence 
> is at least 4 seconds)
>
> When does it happen:
> - I'm 98% sure that the stuttering always happens about 1 second after 
> the video playback produced some jpeg artefacts (I hope you know what I 
> mean, these kinda blocks)
> - So when I jump over the first appearence of the arefacts (1 minute 
> after the video starts) I can watch it further to the next appearence.
>
> The facts:
> - FE/BE system running Ubuntu 7.04 with Ubuntu MythTV packages
> - Network / NFS is working nicely, no transport problems
> - when using libmpeg2 audio works, most likely due to no artefacts, but 
> I occasionally get frame drops
> - I am using the nvidia binary drivers on 6200 graphics card
>
> What I tried:
> - enabling / disabling XvMC support and usage
> - many tricks described on XvMC page of the wiki (even though most of 
> them were video related)
> - running mythfrontend suid and as root
>
>
> So I hope there is someone who can help me.
>
> Greets,
> Mario
>
> PS: Some logs:
>
> a)
> When I see the artefacts this is in the log
>
> 2007-05-17 12:13:41.083 AFD: HandleStreamChange(): streams_changed 
> 0xb0dc040 -- stream count 9
> 2007-05-17 12:13:41.083 AFD: SeekReset(0, 0, do flush, do discard)
> 2007-05-17 12:13:41.083 AFD: SeekReset() flushing
> 2007-05-17 12:13:41.083 VideoOutputXv: DiscardFrames(1)
> 2007-05-17 12:13:41.083 VideoOutputXv: DiscardFrames() 1: LDAUUDUU
> 2007-05-17 12:13:41.084 VideoOutputXv Error: Child       C      was already 
> marked as available.
> 2007-05-17 12:13:41.084 VideoOutputXv Error: Child       C      was already 
> marked as available.
> 2007-05-17 12:13:41.085 VideoOutputXv Error: Child       C      was already 
> marked as available.
> 2007-05-17 12:13:41.089 AO: Broadcasting free space avail
> 2007-05-17 12:13:41.089 WriteAudio: Preparing 6144 bytes (1536 frames)
> 2007-05-17 12:13:41.089 AO: audio waiting for buffer to fill: have 108 want 
> 6144
> 2007-05-17 12:13:41.089 AO: Broadcasting free space avail
> 2007-05-17 12:13:41.092 VideoOutputXv: DiscardFrames() 2: DDAAAAAD
> 2007-05-17 12:13:41.093 VideoOutputXv Error: Child       C      was already 
> marked as available.
> 2007-05-17 12:13:41.093 VideoOutputXv Error: Child       C      was already 
> marked as available.
> 2007-05-17 12:13:41.093 VideoOutputXv: DiscardFrames() 3: AAAAAAAD -- done()
> 2007-05-17 12:13:41.093 AFD: Stream #0, has id 0x480 codec id MPEG2VIDEO, type 
> Video, bitrate 4200000 at 0x0xb08c170
> 2007-05-17 12:13:41.094 VideoOutputXv: XvMC version: 1.1
> 2007-05-17 12:13:41.094 XvMCSurfaceTypes::find(w 720, h 576, chroma 1, vld 0, 
> idct 1, mpeg2, sub-width 0, sub-height 0, disp, p<= 275, 2750 <=p, port, 
> surfNum)
> 2007-05-17 12:13:41.094 Trying XvMC port 275
> 2007-05-17 12:13:41.095 Found a suitable XvMC surface 0
> 2007-05-17 12:13:41.095 AFD: Warning, video codec 0xb0dcb00 
> id(MPEG2VIDEO_XVMC) type (Video) already open.
> 2007-05-17 12:13:41.095 AFD: Looking for decoder for MPEG2VIDEO_XVMC
> 2007-05-17 12:13:41.095 AFD: Stream #1, has id 0x138 codec id DTS, type Audio, 
> bitrate 768000 at 0x0x838feb0
> 2007-05-17 12:13:41.095 AFD: Warning, audio codec 0x9fd7980 id(DTS) type 
> (Audio) already open, leaving it alone.
> 2007-05-17 12:13:41.095 AFD: Looking for decoder for DTS
> 2007-05-17 12:13:41.095 AFD: Audio Track #1 is A/V stream #1 and has 2 
> channels in the Unknown language(0).
> 2007-05-17 12:13:41.095 AFD: Stream #2, has id 0x132 codec id AC3, type Audio, 
> bitrate 192000 at 0x0xb090390
> 2007-05-17 12:13:41.095 AFD: Warning, audio codec 0xa12bb70 id(AC3) type 
> (Audio) already open, leaving it alone.
> 2007-05-17 12:13:41.096 AFD: Looking for decoder for AC3
> 2007-05-17 12:13:41.096 AFD: Audio Track #2 is A/V stream #2 and has 2 
> channels in the Unknown language(0).
> 2007-05-17 12:13:41.096 AFD: Stream #3, has id 0x131 codec id AC3, type Audio, 
> bitrate 192000 at 0x0x9fd84a0
> 2007-05-17 12:13:41.096 AFD: Warning, audio codec 0x9fd5550 id(AC3) type 
> (Audio) already open, leaving it alone.
> 2007-05-17 12:13:41.096 AFD: Looking for decoder for AC3
> 2007-05-17 12:13:41.096 AFD: Audio Track #3 is A/V stream #3 and has 2 
> channels in the Unknown language(0).
> 2007-05-17 12:13:41.096 AFD: Stream #4, has id 0x129 codec id AC3, type Audio, 
> bitrate 384000 at 0x0xb0dce40
> 2007-05-17 12:13:41.096 AFD: Warning, audio codec 0x9fd58a0 id(AC3) type 
> (Audio) already open, leaving it alone.
> 2007-05-17 12:13:41.096 AFD: Looking for decoder for AC3
> 2007-05-17 12:13:41.097 AFD: Audio Track #4 is A/V stream #4 and has 6 
> channels in the Unknown language(0).
> 2007-05-17 12:13:41.097 AFD: Stream #5, has id 0x128 codec id AC3, type Audio, 
> bitrate 448000 at 0x0xa4bdb10
> 2007-05-17 12:13:41.097 AFD: Warning, audio codec 0x9fd5be0 id(AC3) type 
> (Audio) already open, leaving it alone.
> 2007-05-17 12:13:41.097 AFD: Looking for decoder for AC3
> 2007-05-17 12:13:41.097 AFD: Audio Track #5 is A/V stream #5 and has 6 
> channels in the Unknown language(0).
> 2007-05-17 12:13:41.097 AFD: Stream #6, has id 0x37 codec id DVD_SUBTITLE, 
> type Subtitle, bitrate 0 at 0x0xb8f7840
> 2007-05-17 12:13:41.097 AFD: subtitle codec (Subtitle)
> 2007-05-17 12:13:41.097 AFD: Looking for decoder for DVD_SUBTITLE
> 2007-05-17 12:13:41.097 AFD: Subtitle track #1 is A/V stream #6 and is in the 
> Unknown language(0).
> 2007-05-17 12:13:41.097 AFD: Stream #7, has id 0x36 codec id DVD_SUBTITLE, 
> type Subtitle, bitrate 0 at 0x0xb9115b0
> 2007-05-17 12:13:41.097 AFD: subtitle codec (Subtitle)
> 2007-05-17 12:13:41.098 AFD: Looking for decoder for DVD_SUBTITLE
> 2007-05-17 12:13:41.098 AFD: Subtitle track #2 is A/V stream #7 and is in the 
> Unknown language(0).
> 2007-05-17 12:13:41.098 AFD: Stream #8, has id 0x34 codec id DVD_SUBTITLE, 
> type Subtitle, bitrate 0 at 0x0xb8de770
> 2007-05-17 12:13:41.098 AFD: subtitle codec (Subtitle)
> 2007-05-17 12:13:41.098 AFD: Looking for decoder for DVD_SUBTITLE
> 2007-05-17 12:13:41.098 AFD: Opened codec 0xb8fb020, id(DVD_SUBTITLE) 
> type(Subtitle)
> 2007-05-17 12:13:41.098 AFD: Subtitle track #3 is A/V stream #8 and is in the 
> Unknown language(0).
> 2007-05-17 12:13:41.098 RingBuf(/srv/mythtv/videos/ICE_AGE_2.vob): 
> CalcReadAheadThresh(6184 KB)
>                          -> threshhold(226 KB) min read(32 KB) blk size(128 
> KB)
> 2007-05-17 12:13:41.098 AFD: Trying to reselect audio track
> 2007-05-17 12:13:41.098 AFD: Selected track 2: Unknown AC3 2ch (A/V Stream #2)
> 2007-05-17 12:13:41.099 Dec: Trying to reselect track
> 2007-05-17 12:13:41.099 Dec: Selected track #1 in the Unknown language(0)
> 2007-05-17 12:13:41.099 Dec: Trying to reselect track
> 2007-05-17 12:13:41.099 Dec: Selected track #1 in the Unknown language(0)
> 2007-05-17 12:13:41.100 AO: audio waiting for buffer to fill: have 108 want 
> 6144
> 2007-05-17 12:13:41.100 AO: Broadcasting free space avail
> [mpegvideo_xvmc @ 0xb71d52e8]warning: first frame is no keyframe
> 2007-05-17 12:13:41.107 AFD: video timecode -9223372036854775808 10800 120 
> 59477
> 2007-05-17 12:13:41.112 AFD: video timecode 14400 14400 160 59520
> 2007-05-17 12:13:41.112 AFD: audio timecode 5360399 5360399 59559 59591
> 2007-05-17 12:13:41.113 AO: _AddSamples bytes=6140, used=109, free=767891, 
> timecode=59559
> 2007-05-17 12:13:41.113 AFD: audio timecode 5363279 5363279 59591 59623
> 2007-05-17 12:13:41.113 AO: _AddSamples bytes=6140, used=6249, free=761751, 
> timecode=59591
> 2007-05-17 12:13:41.117 AO: Broadcasting free space avail
> 2007-05-17 12:13:41.117 WriteAudio: Preparing 6144 bytes (1536 frames)
> 2007-05-17 12:13:41.117 AO: Broadcasting free space avail
> 2007-05-17 12:13:41.117 WriteAudio: Preparing 6144 bytes (1536 frames)
> 2007-05-17 12:13:41.117 AO: audio waiting for buffer to fill: have 100 want 
> 6144
> 2007-05-17 12:13:41.117 AO: Broadcasting free space avail
> 2007-05-17 12:13:41.118 AFD: video timecode 18000 18000 199 59562
> 2007-05-17 12:13:41.123 AFD: video timecode -9223372036854775808 21600 240 
> 59605
> 2007-05-17 12:13:41.123 AFD: audio timecode 5366159 5366159 59623 59655
> 2007-05-17 12:13:41.124 AO: _AddSamples bytes=6140, used=101, free=767899, 
> timecode=59623
> 2007-05-17 12:13:41.124 AFD: audio timecode 5369039 5369039 59655 59687
> 2007-05-17 12:13:41.124 AO: _AddSamples bytes=6140, used=6241, free=761759, 
> timecode=59655
> 2007-05-17 12:13:41.125 AFD: audio timecode 5371919 5371919 59687 59719
> 2007-05-17 12:13:41.125 AO: _AddSamples bytes=6140, used=12381, free=755619, 
> timecode=59687
> 2007-05-17 12:13:41.126 VideoOutputXv: ProcessFrameXvMC:
>                         Warning, A is still marked as the OSD frame of G.
>
>
> b)
> While stuttering it looks like this
>
> 2007-05-17 17:25:38.528 NVP: Video is 30 frames ahead of audio,
>                         doubling video frame interval to slow down.
> 2007-05-17 17:25:38.528 NVP: A/V Divergence: 1451.4, Rate: -1.04033, 
> Warpfactor: 1.02309, warpfactor_avg: 0.999833
> 2007-05-17 17:25:38.532 AFD: video timecode 5681520 5681520 63128 63207
> 2007-05-17 17:25:38.533 AFD: audio timecode 5688719 5688719 63207 63239
> 2007-05-17 17:25:38.533 AO: _AddSamples bytes=6144, used=1, free=767999, 
> timecode=63207
> 2007-05-17 17:25:38.535 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.536 WriteAudio: Preparing 6144 bytes (1536 frames)
> 2007-05-17 17:25:38.536 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.543 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.551 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.559 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.567 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.575 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.583 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.591 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.599 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.607 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.609 NVP: Video is 30 frames ahead of audio,
>                         doubling video frame interval to slow down.
> 2007-05-17 17:25:38.609 NVP: A/V Divergence: 1450.64, Rate: -0.755225, 
> Warpfactor: 1.0236, warpfactor_avg: 0.999834
> 2007-05-17 17:25:38.613 AFD: video timecode 5685120 5685120 63168 63146
> 2007-05-17 17:25:38.614 AFD: audio timecode 5691599 5691599 63239 63271
> 2007-05-17 17:25:38.614 AO: _AddSamples bytes=6144, used=1, free=767999, 
> timecode=63239
> 2007-05-17 17:25:38.615 AO: Broadcasting free space avail
> 2007-05-17 17:25:38.615 WriteAudio: Preparing 6144 bytes (1536 frames)
> 2007-05-17 17:25:38.615 WriteAudio: buffer underrun
> 2007-05-17 17:25:38.616 AO: Broadcasting free space avail
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>   



More information about the mythtv-users mailing list