2012-09-14, 05:57
I'm doing some simple tests with the PVR.Demo Addon trying to get it to play an HDHomerun stream for a channel. I figured I would start with this addon since it already had the stream element in the PVRDemoAddonSettings.xml file for each channel.
Unfortunately it's not playing the stream. Here is how it is setup with some log comparisons.
Any ideas about why the hdhomerun stream behaves differently when played from the PVR environment than it does from the XBMC file browser are welcome.
The following log shows the strm file playing just fine when loaded from the XBMC file browser.
The following log shows what happens when playing the stream from the PVR interface. Playing a stream from here always results in "buffer size too small, will most likely fail" even with the buffer size in the advanced settings xml turned up high.
Unfortunately it's not playing the stream. Here is how it is setup with some log comparisons.
Any ideas about why the hdhomerun stream behaves differently when played from the PVR environment than it does from the XBMC file browser are welcome.
PHP Code:
<channel>
<name>Demo TV Channel 1</name>
<radio>0</radio>
<number>1</number>
<encryption>0</encryption>
<icon></icon>
<stream>hdhomerun://1314D5C5-0/tuner0?channel=auto:16&program=660</stream>
</channel>
The following log shows the strm file playing just fine when loaded from the XBMC file browser.
Code:
23:54:07 T:5348 NOTICE: DVDPlayer: Opening: hdhomerun://1314D5C5-0/tuner0?channel=auto:50&program=727
23:54:07 T:5348 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:54:07 T:5348 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
23:54:07 T:5348 DEBUG: DXVA - cheking samples array size using 842094158 render target
23:54:07 T:5348 DEBUG: DXVA - updated maximum samples count to 1
23:54:07 T:5348 DEBUG: DXVA - cheking samples array size using 842094169 render target
23:54:07 T:2708 NOTICE: Thread CDVDPlayer start, auto delete: false
23:54:07 T:2708 NOTICE: Creating InputStream
23:54:07 T:2708 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/hdhomerun.dll)
23:54:07 T:2708 NOTICE: Creating Demuxer
23:54:07 T:2708 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avutil-51.dll)
23:54:07 T:2708 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcodec-53.dll)
23:54:07 T:5348 DEBUG: ------ Window Init (DialogBusy.xml) ------
23:54:07 T:2708 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avformat-53.dll)
23:54:07 T:2708 DEBUG: CDVDDemuxFFmpeg::Open - probing detected format [mpegts]
23:54:07 T:2708 INFO: ffmpeg[A94]: [mpegts] Unable to seek back to the start
23:54:07 T:2708 DEBUG: CDVDDemuxFFmpeg::Open - avformat_find_stream_info starting
23:54:12 T:5348 DEBUG: ------ Window Deinit (Pointer.xml) ------
23:54:12 T:2708 DEBUG: ffmpeg[A94]: [mpegts] decoding for stream 3 failed
23:54:12 T:2708 DEBUG: ffmpeg[A94]: [mpegts] Could not find codec parameters (Unknown: none ([5][0][0][0] / 0x0005))
23:54:12 T:2708 DEBUG: ffmpeg[A94]: [mpegts] Estimating duration from bitrate, this may be inaccurate
23:54:12 T:2708 DEBUG: CDVDDemuxFFmpeg::Open - av_find_stream_info finished
23:54:12 T:2708 INFO: ffmpeg[A94]: Input #0, mpegts, from 'hdhomerun://1314D5C5-0/tuner0?channel=auto:50&program=727':
23:54:12 T:2708 INFO: ffmpeg[A94]: Duration: N/A, start: 64021.755267, bitrate: 10192 kb/s
23:54:12 T:2708 INFO: ffmpeg[A94]: Program 727
23:54:12 T:2708 INFO: ffmpeg[A94]: Stream #0:0[0x1c67]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 9808 kb/s, 59.96 fps, 59.96 tbr, 90k tbn, 119.88 tbc
23:54:12 T:2708 INFO: ffmpeg[A94]: Stream #0:1[0x1c68](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 192 kb/s
23:54:12 T:2708 INFO: ffmpeg[A94]: Stream #0:2[0x1c69](spa): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 192 kb/s
23:54:12 T:2708 INFO: ffmpeg[A94]: Stream #0:3[0x1c6a]: Unknown: none ([5][0][0][0] / 0x0005)
23:54:12 T:2708 NOTICE: Opening video stream: 0 source: 256
23:54:12 T:2708 NOTICE: Creating video codec with codec id: 2
23:54:12 T:2708 DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:yes DXVA:yes
23:54:12 T:2708 DEBUG: FactoryCodec - Video: - Opening
23:54:12 T:2708 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/swscale-2.dll)
23:54:12 T:2708 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/swresample-0.dll)
23:54:12 T:2708 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avfilter-2.dll)
23:54:12 T:2708 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-2 video
23:54:12 T:2708 DEBUG: FactoryCodec - Video: ff-mpeg2video - Opened
23:54:12 T:2708 NOTICE: Creating video thread
23:54:12 T:2708 NOTICE: Opening audio stream: 1 source: 256
The following log shows what happens when playing the stream from the PVR interface. Playing a stream from here always results in "buffer size too small, will most likely fail" even with the buffer size in the advanced settings xml turned up high.
Code:
23:01:45 T:3528 NOTICE: DVDPlayer: Opening: pvr://channels/tv/All TV channels/0.pvr
23:01:45 T:3528 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:01:45 T:3528 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
23:01:45 T:3528 DEBUG: DXVA - cheking samples array size using 842094158 render target
23:01:45 T:3528 DEBUG: DXVA - updated maximum samples count to 1
23:01:45 T:3528 DEBUG: DXVA - cheking samples array size using 842094169 render target
23:01:45 T:10344 NOTICE: Thread CDVDPlayer start, auto delete: false
23:01:45 T:10344 NOTICE: Creating InputStream
23:01:45 T:10344 DEBUG: PVRManager - PVR::CPVRManager::OpenLiveStream - opening live stream on channel 'Demo TV Channel 1'
23:01:45 T:10344 DEBUG: opening live stream on url 'hdhomerun://1314D5C5-0/tuner0?channel=auto:16program=660'
23:01:45 T:10344 DEBUG: PVRFile - XFILE::CPVRFile::Open - playback has started on filename pvr://channels/tv/All TV channels/0.pvr
23:01:45 T:10344 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/hdhomerun.dll)
23:01:45 T:10344 DEBUG: CDVDInputStreamPVRManager::Open - stream opened: hdhomerun://1314D5C5-0/tuner0?channel=auto:16program=660
23:01:45 T:10344 NOTICE: Creating Demuxer
23:01:45 T:10344 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avutil-51.dll)
23:01:45 T:10344 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcodec-53.dll)
23:01:45 T:3528 DEBUG: ------ Window Init (DialogBusy.xml) ------
23:01:45 T:10344 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avformat-53.dll)
23:01:45 T:10344 DEBUG: CDVDDemuxFFmpeg::Open - probing detected format [mpegts]
23:01:45 T:10344 WARNING: CHomeRunFile::Read - buffer size too small, will most likely fail
23:01:50 T:3528 DEBUG: ------ Window Deinit (Pointer.xml) ------
23:01:50 T:10344 WARNING: CHomeRunFile::Read - buffer size too small, will most likely fail
23:01:53 T:3528 DEBUG: ------ Window Init (Pointer.xml) ------
23:01:56 T:10344 DEBUG: CDVDDemuxFFmpeg::Open - avformat_find_stream_info starting
23:01:56 T:10344 DEBUG: ffmpeg[2868]: [mpegts] Estimating duration from bitrate, this may be inaccurate
23:01:56 T:10344 DEBUG: CDVDDemuxFFmpeg::Open - av_find_stream_info finished
23:01:56 T:10344 INFO: ffmpeg[2868]: Input #0, mpegts, from 'pvr://channels/tv/All TV channels/0.pvr':
23:01:56 T:10344 INFO: ffmpeg[2868]: Duration: N/A, bitrate: N/A