Implement CrystalHD in Live TV
#1
I was wondering if there are plans to implement the CrystalHD driver/codecs in xbmc-pvr's live tv function? The cHD works great for playing back recorded hd content, flash and mkv's but as many of you know when watching live hd tv content ffmpeg codecs are used and this causes 100% pc usage (on 1st gen Apple TV's). I have heard that cHD utilization is right around the corner for live tv but I would like to get a response from the pvr devs. I appreciate any responses on this topic.
Reply
#2
Over 100 views and no one that is familiar with CrystalHD development can comment?
Reply
#3
maybe this is the reason no one replied?

http://forum.xbmc.org/showthread.php?tid=105448
Reply
#4
As I could see from one of you previous logs XBMC tried to open chd for live tv but bailed out due to an error. Would you have a debug log using a new version of pvr as dushmaniac has requested?
Reply
#5
I just built a git opdenkamp xbmc update about 3 days ago and the cHD has been working great on all recorded HD. Here is my log for "crystalhd" and "ffmpeg" when tuning to a Live TV PVR h264 transport stream through xbmc-addon-xvdr.

crystalhd:
Code:
grep -i crystal ~/.xbmc/temp/xbmc.log
11:51:15 T:10185840   DEBUG: SECTION:LoadDLL(libcrystalhd.so.3)
11:51:15 T:10185840   DEBUG: Loading: libcrystalhd.so.3
11:51:19 T:10185840   DEBUG: CrystalHD(new API): device opened
11:51:19 T:10185840   DEBUG: CrystalHD: device closed
11:52:31 T:2935999344   DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:yes OpenMax:no VDPAU:no VAAPI:no
11:52:46 T:2935999344   DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:yes OpenMax:no VDPAU:no VAAPI:no
11:52:46 T:2935999344    INFO: Trying Broadcom Crystal HD Decoder...

ffmpeg:
Code:
11:52:46 T:2935999344  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
11:52:46 T:2935999344   DEBUG: FactoryCodec - Audio: FFmpeg - Opening
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:2935999344   DEBUG: FactoryCodec - Audio: FFmpeg - Opened
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] non-existing PPS 0 referenced
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] decode_slice_header error
11:52:46 T:68410224   ERROR: ffmpeg[413DB70]: [h264] no frame!
Reply
#6
Please post full debug log.
Reply
#7
Here is the full debug log:

Code:
13:30:04 T:2863655792   DEBUG: PVRFile - Open - playback has started on filename pvr://channels/tv/All TV channels/1577.pvr
13:30:04 T:2863655792  NOTICE: Creating Demuxer
13:30:04 T:2863655792   DEBUG: CDVDPlayer::SetCaching - caching state 2
13:30:04 T:2863655792 WARNING: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
13:30:04 T:2863655792 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
13:30:04 T:6434128   DEBUG: CGUIAudioManager::DeInitialize
13:30:04 T:2968517488   DEBUG: AddOnLog: VDR XVDR Client: SendPing
13:30:05 T:2863655792   DEBUG: AddOnLog: VDR XVDR Client: DemuxReset
13:30:05 T:2863655792   DEBUG: CDVDDemuxPVRClient::RequestStreams(): added stream 0:0 with codec_id 28
13:30:05 T:2863655792   DEBUG: CDVDDemuxPVRClient::RequestStreams(): added stream 1:1 with codec_id 86019
13:30:05 T:2863655792   DEBUG: CDVDDemuxPVRClient::UpdateStreams(): update stream 0:0 with codec_id 28
13:30:05 T:2863655792   DEBUG: CDVDDemuxPVRClient::UpdateStreams(): update stream 1:1 with codec_id 86019
13:30:05 T:2863655792  NOTICE: Opening video stream: 0 source: 256
13:30:05 T:2863655792  NOTICE: Creating video codec with codec id: 28
13:30:05 T:2863655792   DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:yes OpenMax:no VDPAU:no VAAPI:no
13:30:05 T:2863655792    INFO: Trying Broadcom Crystal HD Decoder...
13:30:05 T:2863655792   DEBUG: FactoryCodec - Video:  - Opening
13:30:05 T:2863655792  NOTICE: Open - avcC atom too data small or missing
13:30:05 T:2863655792   DEBUG: FactoryCodec - Video:  - Failed
13:30:05 T:2863655792   DEBUG: FactoryCodec - Video:  - Opening
13:30:05 T:2863655792   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avutil-50-i486-linux.so)
13:30:05 T:2863655792   DEBUG: Loading: /usr/local/lib/xbmc/system/players/dvdplayer/avutil-50-i486-linux.so
13:30:05 T:2863655792   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcore-0-i486-linux.so)
13:30:05 T:2863655792   DEBUG: Loading: /usr/local/lib/xbmc/system/players/dvdplayer/avcore-0-i486-linux.so
13:30:05 T:2863655792   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcodec-52-i486-linux.so)
13:30:05 T:2863655792   DEBUG: Loading: /usr/local/lib/xbmc/system/players/dvdplayer/avcodec-52-i486-linux.so
13:30:05 T:2863655792   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/swscale-0-i486-linux.so)
13:30:05 T:2863655792   DEBUG: Loading: /usr/local/lib/xbmc/system/players/dvdplayer/swscale-0-i486-linux.so
13:30:05 T:2863655792   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avfilter-1-i486-linux.so)
13:30:05 T:2863655792   DEBUG: Loading: /usr/local/lib/xbmc/system/players/dvdplayer/avfilter-1-i486-linux.so
13:30:05 T:2863655792  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
13:30:05 T:2863655792   DEBUG: FactoryCodec - Video: ff-h264 - Opened
13:30:05 T:2863655792  NOTICE: Creating video thread
13:30:05 T:2863655792  NOTICE: Opening audio stream: 1 source: 256
13:30:05 T:2863655792  NOTICE: Finding audio codec for: 86019
13:30:05 T:2863655792   DEBUG: FactoryCodec - Audio: FFmpeg - Opening
13:30:05 T:3012373360   DEBUG: Thread CDVDPlayerVideo start, auto delete: 0
13:30:05 T:2863655792   DEBUG: FactoryCodec - Audio: FFmpeg - Opened
13:30:05 T:2863655792  NOTICE: Creating audio thread
13:30:05 T:2958027632   DEBUG: Thread CDVDPlayerAudio start, auto delete: 0
13:30:05 T:2958027632  NOTICE: running thread: CDVDPlayerAudio::Process()
13:30:05 T:3012373360   DEBUG: LinuxRendererGL: Cleaning up GL resources
13:30:05 T:3012373360  NOTICE: running thread: video_thread
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(78587329200.000000, 1)
13:30:05 T:3012373360    INFO: CDVDPlayerVideo - Stillframe left, switching to normal playback
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:2863655792   DEBUG: set caching from pvr to done. audio (1) = 6. video (1) = 9
13:30:05 T:2958027632   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(78586657678.000000, 0)
13:30:05 T:2958027632  NOTICE: Creating audio device with codec id: 86019, channels: 6, sample rate: 48000, no pass-through
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] decode_slice_header error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] no frame!
13:30:05 T:3012373360   ERROR: Decode - avcodec_decode_video returned failure
13:30:05 T:3012373360   DEBUG: CDVDPlayerVideo - video decoder returned error
13:30:05 T:3012373360   ERROR: ffmpeg[B38D2B70]: [h264] non-existing PPS 0 referenced
Reply
#8
Looks like this seems to be the main error:

Code:
13:30:05 T:2863655792    INFO: Trying Broadcom Crystal HD Decoder...
13:30:05 T:2863655792   DEBUG: FactoryCodec - Video:  - Opening
13:30:05 T:2863655792  NOTICE: Open - avcC atom too data small or missing
13:30:05 T:2863655792   DEBUG: FactoryCodec - Video:  - Failed
Reply
#9
After doing a bit of digging I found this from davilla:

davilla Wrote:"avcC atom too data small or missing"

The crystalhd need to be feed a specific flavor of h.264, ie byte-stream format. The xbmc crystalhd codec detects the flavor and converts it when needed. The above message says that it found an h264 flavor with a avcC atom in ffmpeg's demuxer extradata but the data is wrong as avcC atom have a minimal data size and yours are not valid. It's possible that ffmpeg demuxer setup extradata wrong and the h264 stream is actually quite valid. Without a sample for the video content, I can't check it.
Reply
#10
The point is that in case of pvr not ffmpeg demuxer is used but pvr demuxer which does not set the extra data needed by chd. Will look into this in more detail.
Reply
#11
FernetMenta Wrote:The point is that in case of pvr not ffmpeg demuxer is used but pvr demuxer which does not set the extra data needed by chd. Will look into this in more detail.

I really appreciate you looking into this further FernetMenta. If cHD is implemented in recording playback of h264 pvr then the pvr demuxer for live h264 tv shouldn't be too much different, but what do I know Wink
Reply
#12
This is not a fix just a test! Could you try this and report back?
https://github.com/FernetMenta/xbmc/commits/pvr/

In the meantime I try to get a hold of davilla.
Reply
#13
FernetMenta Wrote:This is not a fix just a test! Could you try this and report back?
https://github.com/FernetMenta/xbmc/commits/pvr/

In the meantime I try to get a hold of davilla.

Awesome! I am going to start building right now...I will report my results later today. Thank you FernetMenta!
Reply
#14
YOU ARE THE MAN FernetMenta!!!! I just finished testing your pvr build with the cHD hack and so far things are working great. I am going to do some more Live TV testing right now and report more detailed results after a period of watching. Here are the debug logs for Live H264 HDTV with xbmc addon xvdr.

Thank You, Thank You, Thank You!

Code:
17:35:36 T:2967468912   DEBUG: CrystalHD: Format Change Detected. Flags: 0x00030000
17:35:36 T:2967468912   DEBUG: ----------------------------------
17:35:36 T:2967468912   DEBUG:     TimeStamp: 0
17:35:36 T:2967468912   DEBUG:     Picture Number: 0
17:35:36 T:2967468912   DEBUG:     Width: 1280
17:35:36 T:2967468912   DEBUG:     Height: 720
17:35:36 T:2967468912   DEBUG:     Chroma: 0x001
17:35:36 T:2967468912   DEBUG:     Pulldown: 9
17:35:36 T:2967468912   DEBUG:     Flags: 0x00000800
17:35:36 T:2967468912   DEBUG:     Frame Rate/Res: 0
17:35:36 T:2967468912   DEBUG:     Aspect Ratio: 1
17:35:36 T:2967468912   DEBUG:     Color Primaries: 16843008
17:35:36 T:2967468912   DEBUG:     MetaData: 0
17:35:36 T:2967468912   DEBUG:     Session Number: 0
17:35:36 T:2967468912   DEBUG:     TimeStamp: 0
17:35:36 T:2967468912   DEBUG:     Custom Aspect: 0
17:35:36 T:2967468912   DEBUG:     Frames to Drop: 0
17:35:36 T:2967468912   DEBUG:     H264 Valid Fields: 0x00000000
17:35:36 T:2967468912   DEBUG: CrystalHD: dec_par x = 1, dec_par y = 1
17:35:36 T:2967468912   DEBUG: CrystalHD: resolution = 0  interlace = 0
17:35:36 T:2946489200 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
17:35:36 T:8792736   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 0
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 1
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 2
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 3
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 4
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 5
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 6
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 7
17:35:36 T:2967468912   DEBUG: Previous line repeats 1 times.
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 8
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 9
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 10
17:35:36 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 11
17:35:36 T:2956979056   DEBUG: AddOnLog: VDR XVDR Client: SendPing
17:35:36 T:3053443952   DEBUG: CDVDPlayer::HandleMessages - player started 2
17:35:37 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 12
17:35:37 T:2759822192   DEBUG: CDVDPlayerAudio:: Discontinuity - was:84475566838.267975, should be:84475432437.632416, error:-134400.635559
17:35:37 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 13
17:35:38 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 14
17:35:38 T:2759822192   DEBUG: CDVDPlayerAudio:: Discontinuity - was:84476472180.254410, should be:84476455412.958954, error:-16767.295459
17:35:38 T:2759822192   DEBUG: CDVDPlayerAudio:: Discontinuity - was:84476610462.074951, should be:84476726886.912735, error:116424.837784
17:35:38 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 15
17:35:38 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 16
17:35:39 T:2967468912   DEBUG: CrystalHD: Added a new Buffer, ReadyListCount: 17
17:35:39 T:2759822192   DEBUG: CDVDPlayerAudio:: Discontinuity - was:84477783373.561737, should be:84477838960.381912, error:55586.820177
17:35:40 T:2759822192   DEBUG: CDVDPlayerAudio:: Discontinuity - was:84478875564.544907, should be:84478822274.254776, error:-53290.290125
17:35:41 T:2759822192   DEBUG: CDVDPlayerAudio:: Discontinuity - was:84479901986.263779, should be:84479875295.793900, error:-26690.469880
17:35:42 T:2956979056   DEBUG: AddOnLog: VDR XVDR Client: SendPing
17:35:44 T:8792736   DEBUG: LIRC: Update - NEW at 370543:000000037ff07bd9 00 Guide mceusb (Guide)
17:35:44 T:8792736   DEBUG: OnKey: 229 (e5) pressed, action is CodecInfo
17:35:48 T:2956979056   DEBUG: AddOnLog: VDR XVDR Client: SendPing
17:35:50 T:8792736   DEBUG: LIRC: Update - NEW at 376443:000000037ff07bd9 00 Guide mceusb (Guide)
17:35:50 T:8792736   DEBUG: OnKey: 229 (e5) pressed, action is CodecInfo
17:35:54 T:2956979056   DEBUG: AddOnLog: VDR XVDR Client: SendPing
17:35:57 T:8792736   DEBUG: LIRC: Update - NEW at 383910:000000037ff07be6 00 Stop mceusb (Stop)
17:35:57 T:8792736   DEBUG: OnKey: 224 (e0) pressed, action is Stop
Reply
#15
Well I spoke too soon. Now Live TV isn't playing period. The logs report buffers but the screen stays blank with the buffering window open. Recordings are working still. Live TV worked at first so not sure what the problem is. I'll reinstall xbmc addon xvdr and see what happens.
Reply

Logout Mark Read Team Forum Stats Members Help
Implement CrystalHD in Live TV0