palinek / pvr.sledovanitv.cz

Kodi's sledovanitv.cz client addon
GNU General Public License v2.0
30 stars 14 forks source link

TV playback does not start at the first try. Second try is OK. #63

Closed Harvie closed 3 years ago

Harvie commented 4 years ago

When i select channel and click on it, it fails to start playback with these log messages:

2020-06-05 23:03:32.172 T:2973322336  NOTICE: VideoPlayer::OpenFile: pvr://channels/tv/All channels/pvr.sledovanitv.cz_12.pvr
2020-06-05 23:03:32.174 T:2148352208  NOTICE: Creating InputStream
2020-06-05 23:03:52.457 T:2148352208   ERROR: CCurlFile::FillBuffer - Failed: Server returned nothing (no headers, no data)(52)
2020-06-05 23:03:52.463 T:2148352208  NOTICE: Creating Demuxer
2020-06-05 23:03:52.464 T:2148352208  NOTICE: CVideoPlayer::OnExit()
2020-06-05 23:03:52.464 T:2148352208  NOTICE: VideoPlayer: eof, waiting for queues to empty
2020-06-05 23:03:52.511 T:2973322336  NOTICE: CVideoPlayer::CloseFile()
2020-06-05 23:03:52.512 T:2973322336  NOTICE: VideoPlayer: waiting for threads to exit
2020-06-05 23:03:52.512 T:2973322336  NOTICE: VideoPlayer: finished waiting
2020-06-05 23:03:52.512 T:2973322336  NOTICE: CVideoPlayer::CloseFile()
2020-06-05 23:03:52.512 T:2973322336  NOTICE: VideoPlayer: waiting for threads to exit
2020-06-05 23:03:52.512 T:2973322336  NOTICE: VideoPlayer: finished waiting

When i try for the second time, it works no problem:

2020-06-05 23:04:03.954 T:2973322336  NOTICE: VideoPlayer::OpenFile: pvr://channels/tv/All channels/pvr.sledovanitv.cz_12.pvr
2020-06-05 23:04:03.956 T:2139959504  NOTICE: Creating InputStream
2020-06-05 23:04:04.473 T:2139959504  NOTICE: Creating Demuxer
2020-06-05 23:04:04.475 T:2139959504  NOTICE: Opening stream: 1001 source: 256
2020-06-05 23:04:06.417 T:2139959504  NOTICE: Whitelist search for: width: 1920, height: 1088, fps: 50.000, 3D: false
2020-06-05 23:04:06.418 T:2139959504  NOTICE: Display resolution ADJUST : 1920x1080 @ 50.000000 Hz (20) (weight: 0.000)
2020-06-05 23:04:06.444 T:2973322336  NOTICE: VideoPlayer: OnLostDisplay received
2020-06-05 23:04:06.444 T:2973322336 WARNING: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2020-06-05 23:04:06.444 T:2973322336 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
2020-06-05 23:04:06.474 T:2973322336  NOTICE: VideoPlayer: OnResetDisplay received
2020-06-05 23:04:06.474 T:2973322336 WARNING: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2020-06-05 23:04:06.474 T:2973322336 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
2020-06-05 23:04:06.475 T:2139959504  NOTICE: Creating video codec with codec id: 173
2020-06-05 23:04:06.479 T:2139959504   ERROR: CMMALVideo::Open : Video codec unknown: ad
2020-06-05 23:04:06.479 T:2139959504  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: hevc
2020-06-05 23:04:06.491 T:2139959504  NOTICE: Creating video thread
2020-06-05 23:04:06.492 T:2743959760  NOTICE: running thread: video_thread
2020-06-05 23:04:06.532 T:2139959504  NOTICE: Opening stream: 1002 source: 256
2020-06-05 23:04:06.533 T:2139959504  NOTICE: Finding audio codec for: 86018
2020-06-05 23:04:06.541 T:2139959504  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2020-06-05 23:04:06.541 T:2139959504  NOTICE: Creating audio thread
2020-06-05 23:04:06.542 T:2096681168  NOTICE: running thread: CVideoPlayerAudio::Process()
2020-06-05 23:04:06.557 T:2743959760  NOTICE: CDecoder::Open - fmt:187
2020-06-05 23:04:06.588 T:2096681168  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2020-06-05 23:04:06.589 T:2096681168  NOTICE: Previous line repeats 1 times.
2020-06-05 23:04:06.589 T:2096681168  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
2020-06-05 23:04:06.823 T:2973322336  NOTICE: Whitelist search for: width: 1920, height: 1080, fps: 50.000, 3D: false
2020-06-05 23:04:06.824 T:2973322336  NOTICE: Display resolution ADJUST : 1920x1080 @ 50.000000 Hz (20) (weight: -0.434)
2020-06-05 23:04:07.357 T:2743959760 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
2020-06-05 23:04:07.645 T:2743959760  NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 20000

This happens often. Any idea what might cause this?

palinek commented 3 years ago

Addon just gives stream URL to Kodi... it doesn't handle opening/playing the stream anyhow.

Try to enable debugs to be able to see more for you. If you find something that indicates the problem is in addon, please, reopen.