[mythtv-users] Problem with 1080i h264 video - video appears to be twice as long as it should.

belcampo belcampo at zonnet.nl
Tue Jun 2 07:06:28 UTC 2009


Manuel McLure wrote:
> My TV provider (which uses IPTV) recently switched from MPEG2 to h264
> streams, and since then I'm seeing a problem with new recordings. When
> they're playing, Mythtv shows the length as being twice what it really
> is - i.e. a recording from 5:00 to 6:00 shows as 1:59 in length. Also,
> fast forwarding and rewinding as well as commercial skip don't work
> correctly - sometimes a "skip forward" command will actually skip back
> in the show.
That's because it's interlaced material and ffmpeg libs until recently 
wasn't able to distinguish between field and frames. So that's why it 
doubles and seeking is a problem.
> 
> OS is Gentoo 64 bit.
> 
> I was originally using SVN version 19961 of the release-0-21-fixes
> branch (the Gentoo ebuild) with JYA's VDPAU backport, but since then
> I've tested with SVN revision 20622 of release-0-21-fixes with the
> VDPAU backport, and finally with the 20622 revision without any
> patches (just to ensure that this wasn't a VDPAU issue.) All showed
> the same behavior. Here's the portion of mythfrontend.log that I think
> is pertinent:
> 
> 2009-06-01 18:35:42.422 [h264 @ 0x7f3e7e6d2cd0]mmco: unref short failure
> 2009-06-01 18:35:42.546 AFD: Stream #0, has id 0x305 codec id H264,
> type Video,bitrate 0 at 0x0xac00b0
> 2009-06-01 18:35:42.548 VDP: Accepting: cmp(<= 720 576,> 0 0)
> dec(ffmpeg) cpus(1) rend(xv-blit) osd(softblend) osdfade(enabled)
> deint(bobdeint,linearblend) filt()
> 2009-06-01 18:35:42.548 VDP: Rejecting: cmp(<= 1280 720,> 720 576)
> dec(xvmc) cpus(1) rend(xvmc-blit) osd(opengl) osdfade(enabled)
> deint(bobdeint,onefield) filt()
>                         OSD Renderer opengl is not supported
> w/renderer xvmc-blit (supported: chromakey,chromakey,ia44blend)
> 2009-06-01 18:35:42.548 VDP: Accepting: cmp(<= 1280 720,> 720 576)
> dec(libmpeg2) cpus(1) rend(xv-blit) osd(softblend) osdfade(enabled)
> deint(bobdeint,onefield)filt()
> 2009-06-01 18:35:42.548 VDP: Accepting: cmp(> 0 0) dec(xvmc) cpus(1)
> rend(xvmc-blit) osd(ia44blend) osdfade(disabled)
> deint(bobdeint,onefield) filt()
> 2009-06-01 18:35:42.548 VDP: Accepting: cmp(> 0 0) dec(libmpeg2)
> cpus(1) rend(xv-blit) osd(chromakey) osdfade(disabled)
> deint(bobdeint,onefield) filt()
> 2009-06-01 18:35:42.548 VDP: LoadBestPreferences(2048x2048, 0)
> 2009-06-01 18:35:42.548 VDP: LoadBestPreferences(2048x2048, 60)
> 2009-06-01 18:35:42.548 VDP: LoadBestPreferences(1920x1080, 60)
> 2009-06-01 18:35:42.548 Using 1 CPUs for decoding
> 2009-06-01 18:35:42.548 AFD: InitVideoCodec() 0xaa2d60 id(H264) type (Video).
> 2009-06-01 18:35:42.548 detectInterlace(Detect Scan, Interlaced Scan,
> 29.97, 1080) ->Interlaced Scan
> 2009-06-01 18:35:42.548 AFD: Using ffmpeg for video decoding
> 2009-06-01 18:35:42.548 AFD: Looking for decoder for H264
> 2009-06-01 18:35:42.549 AFD: Opened codec 0xaa2d60, id(H264) type(Video)
> 2009-06-01 18:35:42.549 AFD: Stream #1, has id 0x308 codec id AC3,
> type Audio, bitrate 384000 at 0x0xa44d80
> 2009-06-01 18:35:42.549 AFD: codec AC3 has 6 channels
> 2009-06-01 18:35:42.549 AFD: Looking for decoder for AC3
> 2009-06-01 18:35:42.549 AFD: Opened codec 0xab8460, id(AC3) type(Audio)
> 2009-06-01 18:35:42.549
> RingBuf(/var/mythtv/recordings/1664_20090601170000.mpg):
> CalcReadAheadThresh(1092581104 KB)
>                          -> threshhold(64 KB) min read(0 KB) blk size(32 KB)
> 2009-06-01 18:35:42.549 Dec: Trying to select track (w/lang)
> 2009-06-01 18:35:42.550 Dec: Selecting first track
> 2009-06-01 18:35:42.550 Dec: Selected track #1 in the Unknown language(0)
> 2009-06-01 18:35:42.550 AFD: Recording has no position -- using
> libavformat seeking.
> 2009-06-01 18:35:42.550 AFD: Successfully opened decoder for file:
> "/var/mythtv/recordings/1664_20090601170000.mpg". novideo(0)
> 2009-06-01 18:35:42.551 VDP: Accepting: cmp(<= 720 576,> 0 0)
> dec(ffmpeg) cpus(1) rend(xv-blit) osd(softblend) osdfade(enabled)
> deint(bobdeint,linearblend) filt()
> 2009-06-01 18:35:42.551 VDP: Rejecting: cmp(<= 1280 720,> 720 576)
> dec(xvmc) cpus(1) rend(xvmc-blit) osd(opengl) osdfade(enabled)
> deint(bobdeint,onefield) filt()
>                         OSD Renderer opengl is not supported
> w/renderer xvmc-blit (supported: chromakey,chromakey,ia44blend)
> 2009-06-01 18:35:42.551 VDP: Accepting: cmp(<= 1280 720,> 720 576)
> dec(libmpeg2) cpus(1) rend(xv-blit) osd(softblend) osdfade(enabled)
> deint(bobdeint,onefield)filt()
> 2009-06-01 18:35:42.551 VDP: Accepting: cmp(> 0 0) dec(xvmc) cpus(1)
> rend(xvmc-blit) osd(ia44blend) osdfade(disabled)
> deint(bobdeint,onefield) filt()
> 2009-06-01 18:35:42.551 VDP: Accepting: cmp(> 0 0) dec(libmpeg2)
> cpus(1) rend(xv-blit) osd(chromakey) osdfade(disabled)
> deint(bobdeint,onefield) filt()
> 2009-06-01 18:35:42.551 VDP: LoadBestPreferences(2048x2048, 0)
> 2009-06-01 18:35:42.552 VDP: LoadBestPreferences(2048x2048, 60)
> 2009-06-01 18:35:42.559 VideoOutputNull()
> 2009-06-01 18:35:42.559 VDP: LoadBestPreferences(1920x1088, 60)
> 2009-06-01 18:35:42.559 Display Rect  left: 0, top: 0, width: 0,
> height: 0, aspect: 1.33333
> 2009-06-01 18:35:42.559 Video Rect    left: 0, top: 0, width: 1920,
> height: 1080, aspect: 1.77778
> 
> I can provide files that show the problem if needed. After looking
> through the trunk revision history, I tested applying revision 18104
> to the release-0-21-fixes branch but this had no effect.
> 
> Anyone have any ideas?



More information about the mythtv-users mailing list