[mythtv-users] playback of h.264 videos

Matt skd5aner at gmail.com
Tue Aug 28 18:51:28 UTC 2007


On 8/28/07, Matt <skd5aner at gmail.com> wrote:
> Hello,
>
> Running current SVN (r14299) I can't seem to get myth to playback and
> h.264 encoded videos.  I've tried videos that I've transcoded using
> nuvexport as well as sample videos from here:
> http://www.leadcodecs.com/Download/H264-Videos.htm
>
> However, anytime I try to play it, the screen goes black for about 3
> seconds and comes back to the menu.
>
> Using the sample video "WhatBox_720x48_q23.avi" from the site above, I
> turned on -v playback and this is what I got - you can definitely see
> some errors.
>
> 2007-08-28 13:58:21.789 TV: Attempting to change from None to
> WatchingPreRecorded
> 2007-08-28 13:58:21.789
> RingBuf(/mythtv/media/videos/WhatBox_720x480_q23.avi):
> OpenFile(/mythtv/media/videos/WhatBox_720x480_q23.avi, 12)
> 2007-08-28 13:58:21.790
> RingBuf(/mythtv/media/videos/WhatBox_720x480_q23.avi):
> CalcReadAheadThresh(3085888024 KB)
>                         -> threshhold(64 KB) min read(0 KB) blk size(32 KB)
> [avi @ 0xb74aacb0]Parser not found for Codec Id: 0 !
> [avi @ 0xb74aacb0]Parser not found for Codec Id: 65536 !
> 2007-08-28 13:58:21.900 DPMS Deactivated
> 2007-08-28 13:58:22.001 AFD: Stream #0, has id 0x0 codec id NONE, type
> Video, bitrate 0 at 0x0x8b342c0
> 2007-08-28 13:58:22.002 AFD: Stream #0 has an unknown video codec id, skipping.
> 2007-08-28 13:58:22.002 AFD: Stream #1, has id 0x1 codec id PCM_S16LE,
> type Audio, bitrate 1536000 at 0x0x8b356b0
> 2007-08-28 13:58:22.002 AFD: Looking for decoder for PCM_S16LE
> 2007-08-28 13:58:22.002 AFD: Opened codec 0x8b34430, id(PCM_S16LE) type(Audio)
> 2007-08-28 13:58:22.002
> RingBuf(/mythtv/media/videos/WhatBox_720x480_q23.avi):
> CalcReadAheadThresh(3060475792 KB)
>                         -> threshhold(64 KB) min read(0 KB) blk size(32 KB)
> 2007-08-28 13:58:22.004 Opening ALSA audio device 'default'.
> 2007-08-28 13:58:22.624 Dec: Trying to select track (w/lang)
> 2007-08-28 13:58:22.625 Dec: Selecting first track
> 2007-08-28 13:58:22.625 Dec: Selected track #1 in the Unknown language(0)
> 2007-08-28 13:58:22.625 Resyncing position map. posmapStarted = 0
> livetv(0) watchingRec(0)
> 2007-08-28 13:58:22.626 SyncPositionMap prerecorded, from DB: 0 entries
> 2007-08-28 13:58:22.626 AFD: Recording has no position -- using
> libavformat seeking.
> 2007-08-28 13:58:22.626 AFD: Successfully opened decoder for file:
> "/mythtv/media/videos/WhatBox_720x480_q23.avi". novideo(0)
> 2007-08-28 13:58:22.636 VideoOutputXv: ctor
> 2007-08-28 13:58:22.638 Over/underscan. V: 0, H: 0, XOff: 0, YOff: 0
> 2007-08-28 13:58:22.638 Display Rect  left: 0, top: 90, width: 1280,
> height: 540, aspect: 1.33333
> 2007-08-28 13:58:22.638 Video Rect    left: 0, top: 0, width: 0,
> height: 0, aspect: 1.77778
> 2007-08-28 13:58:22.638 VideoOutputXv: Pixel dimensions: Screen
> 1280x720, window 1280x720
> 2007-08-28 13:58:22.638 VideoOutputXv: Estimated display dimensions:
> 325x183 mm  Aspect: 1.77596
> 2007-08-28 13:58:22.638 VideoOutputXv: Estimated window dimensions:
> 325x183 mm  Aspect: 1.77596
> 2007-08-28 13:58:22.639 VideoOutputXv: @ j=3 Looking for flag[s]:
> XvInputMask XvImageMask
> 2007-08-28 13:58:22.639 VideoOutputXv: Adaptor#0: NV17 Video Texture
> has flag[s]: XvInputMask XvImageMask
> 2007-08-28 13:58:22.640 VideoOutputXv: Grabbed xv port 355
> 2007-08-28 13:58:22.640 VideoOutputXv: XVideo surface found on port 355
> 2007-08-28 13:58:22.640 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'
> 2007-08-28 13:58:22.640 VideoOutputXv: XVideo Format #0 is 'YUY2'
> 2007-08-28 13:58:22.640 VideoOutputXv: XVideo Format #1 is 'YV12'
> 2007-08-28 13:58:22.640 VideoOutputXv: XVideo Format #2 is 'UYVY'
> 2007-08-28 13:58:22.640 VideoOutputXv: XVideo Format #3 is 'I420'
> 2007-08-28 13:58:22.640 VideoOutputXv: Using XVideo Format 'I420'
> 2007-08-28 13:58:22.640 VideoOutputXv: CreateShmImages(32): video_dim: 0x0
> X Error: BadMatch (invalid parameter attributes) 8
>  Major opcode:  140
>  Minor opcode:  14
>  Resource id:  0x1e2
> 2007-08-28 13:58:22.641 VideoOutputXv: Chromakeying not possible with
> this XVideo port.
> 2007-08-28 13:58:22.642 Display Rect  left: 0, top: 0, width: 1280,
> height: 720, aspect: 1.77778
> 2007-08-28 13:58:22.642 Video Rect    left: 0, top: 0, width: 0,
> height: 0, aspect: 1.77778
> cannot load glyph:20
> cannot load glyph:21
> cannot load glyph:22
> cannot load glyph:23
> cannot load glyph:24
> cannot load glyph:25
> ..... these go on for a long time.
>
> I thought people have been able to sucessfully decode and playback
> x264/h.264 videos, especially since the latest ffmpeg resync.
>
> Any ideas?
>
> Thanks!
> Matt
>

Also, here is a log from an mpeg2 recording that was transcoded to
h264 via nuvexport:

2007-08-28 14:45:41.163 TV: Attempting to change from None to
WatchingPreRecorded
2007-08-28 14:45:41.163 RingBuf(/mythtv/media/videos/TV Shows/Saturday
Night Live.test2.mp4): OpenFile(/mythtv/media/videos/TV Shows/Saturday
Night Live.tes
t2.mp4, 12)
2007-08-28 14:45:47.668 RingBuf(/mythtv/media/videos/TV Shows/Saturday
Night Live.test2.mp4): Invalid file (fd -1) when opening
'/mythtv/media/videos/TV Sho
ws/Saturday Night Live.test2.mp4'.
2007-08-28 14:45:47.668 RingBuf(/mythtv/media/videos/TV Shows/Saturday
Night Live.test2.mp4): CalcReadAheadThresh(3086613016 KB)
                         -> threshhold(64 KB) min read(0 KB) blk size(32 KB)
2007-08-28 14:45:50.435 ImageCache miss for:
2007-08-28 14:45:52.466 ImageCache miss for:
2007-08-28 14:45:52.867 ImageCache miss for:
2007-08-28 14:45:53.571 ImageCache miss for:
2007-08-28 14:45:54.174 ImageCache miss for:
2007-08-28 14:45:54.707 ImageCache miss for:
QDate::fromString: Parameter out of range
2007-08-28 14:45:55.640 TV: Attempting to change from None to
WatchingPreRecorded
2007-08-28 14:45:55.640 RingBuf(/mythtv/media/videos/Saturday Night
Live.mp4): OpenFile(/mythtv/media/videos/Saturday Night Live.mp4, 12)
2007-08-28 14:45:55.640 RingBuf(/mythtv/media/videos/Saturday Night
Live.mp4): CalcReadAheadThresh(142507408 KB)
                         -> threshhold(64 KB) min read(0 KB) blk size(32 KB)
2007-08-28 14:45:55.740 DPMS Deactivated
2007-08-28 14:45:55.915 AFD: Stream #0, has id 0x2 codec id AAC, type
Audio, bitrate 0 at 0x0x8832bb0
2007-08-28 14:45:55.915 AFD: Looking for decoder for AAC
2007-08-28 14:45:55.915 AFD Error: Could not find decoder for codec
(AAC), ignoring.
2007-08-28 14:45:55.915 NVP: Disabling Audio, params(-1,-1,-1)
2007-08-28 14:45:55.915 NVP: Disabling Audio, params(0,-1,-1)
2007-08-28 14:45:55.915 Dec: Trying to select track (w/lang)
2007-08-28 14:45:55.916 Dec: Selecting first track
2007-08-28 14:45:55.916 Dec: Selected track #1 in the Unknown language(0)
2007-08-28 14:45:55.916 Resyncing position map. posmapStarted = 0
livetv(0) watchingRec(0)
2007-08-28 14:45:55.917 SyncPositionMap prerecorded, from DB: 0 entries
2007-08-28 14:45:55.917 AFD: Recording has no position -- using
libavformat seeking.
2007-08-28 14:45:55.917 AFD: Successfully opened decoder for file:
"/mythtv/media/videos/Saturday Night Live.mp4". novideo(0)
2007-08-28 14:45:55.928 VideoOutputXv: ctor
2007-08-28 14:45:55.929 Over/underscan. V: 0, H: 0, XOff: 0, YOff: 0
2007-08-28 14:45:55.929 Display Rect  left: 0, top: 90, width: 1280,
height: 540, aspect: 1.33333
2007-08-28 14:45:55.929 Video Rect    left: 0, top: 0, width: 0,
height: 0, aspect: 1.77778
2007-08-28 14:45:55.929 VideoOutputXv: Pixel dimensions: Screen
1280x720, window 1280x720
2007-08-28 14:45:55.929 VideoOutputXv: Estimated display dimensions:
325x183 mm  Aspect: 1.77596
2007-08-28 14:45:55.930 VideoOutputXv: Estimated window dimensions:
325x183 mm  Aspect: 1.77596
2007-08-28 14:45:55.931 VideoOutputXv: @ j=3 Looking for flag[s]:
XvInputMask XvImageMask
2007-08-28 14:45:55.931 VideoOutputXv: Adaptor#0: NV17 Video Texture
has flag[s]: XvInputMask XvImageMask
2007-08-28 14:45:55.931 VideoOutputXv: Grabbed xv port 355
2007-08-28 14:45:55.931 VideoOutputXv: XVideo surface found on port 355
2007-08-28 14:45:55.931 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'
2007-08-28 14:45:55.931 VideoOutputXv: XVideo Format #0 is 'YUY2'
2007-08-28 14:45:55.931 VideoOutputXv: XVideo Format #1 is 'YV12'
2007-08-28 14:45:55.931 VideoOutputXv: XVideo Format #2 is 'UYVY'
2007-08-28 14:45:55.931 VideoOutputXv: XVideo Format #3 is 'I420'
2007-08-28 14:45:55.932 VideoOutputXv: Using XVideo Format 'I420'
2007-08-28 14:45:55.932 VideoOutputXv: CreateShmImages(32): video_dim: 0x0
X Error: BadMatch (invalid parameter attributes) 8
  Major opcode:  140
  Minor opcode:  14
  Resource id:  0x1e2
2007-08-28 14:45:55.933 VideoOutputXv: Chromakeying not possible with
this XVideo port.
2007-08-28 14:45:55.933 Display Rect  left: 0, top: 0, width: 1280,
height: 720, aspect: 1.77778
2007-08-28 14:45:55.933 Video Rect    left: 0, top: 0, width: 0,
height: 0, aspect: 1.77778
cannot load glyph:20
cannot load glyph:21
cannot load glyph:22
cannot load glyph:23
cannot load glyph:24
......

Thanks!
Matt


More information about the mythtv-users mailing list