xbmc / inputstream.adaptive

kodi inputstream addon for several manifest types
Other
452 stars 241 forks source link

inputstream.adaptive: UpdateStream: Unhandled video codec #1327

Closed swinder0161 closed 1 year ago

swinder0161 commented 1 year ago

Bug report

Describe the bug

I am using nightly build of arm64 macos version kodi-20230715-80c3f859-master-939-arm64.dmg

I am getting error when trying to play video from plugin.video.jiotv

error <general>: AddOnLog: inputstream.adaptive: UpdateStream: Unhandled video codec

Expected Behavior

The video should play

Actual Behavior

Video doesnot play and in kodi.log, i see the error error <general>: AddOnLog: inputstream.adaptive: UpdateStream: Unhandled video codec

Possible Fix

NA

To Reproduce

Steps to reproduce the behavior:

  1. Install JioTV plugin as per https://tobalan.github.io/
  2. Try to play SonyMax HD
  3. The video doesnot play

Debuglog

The debuglog can be found here:

2023-07-16 11:29:05.028 T:285674 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2023-07-16 11:29:05.029 T:285674 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2023-07-16 11:29:05.063 T:285300    info <general>: VideoPlayer::OpenFile: pvr://channels/tv/All%20channels@-1/91@pvr.iptvsimple_1478009750.pvr
2023-07-16 11:29:05.063 T:299841    info <general>: Creating InputStream
2023-07-16 11:29:05.064 T:299841 warning <general>: AddOnLog: inputstream.adaptive: Warning "inputstream.adaptive.manifest_type" property is deprecated and will be removed next Kodi version, the manifest type is now automatically detected.
                                                   If you are using a proxy remember to add the appropriate "content-type" header to the HTTP manifest response
                                                   See Wiki page "How to provide custom manifest/license" to learn more about it.
2023-07-16 11:29:05.066 T:299841    info <general>: AddOnLog: inputstream.adaptive: [Repr. chooser] Resolution set: 3360x2100, max allowed: 2560x1600, Adjust refresh rate: 0
2023-07-16 11:29:05.127 T:299841    info <general>: AddOnLog: inputstream.adaptive: Manifest successfully parsed (Periods: 1, Streams in first period: 2, Type: live)
2023-07-16 11:29:05.127 T:299841   error <general>: AddOnLog: inputstream.adaptive: UpdateStream: Unhandled video codec
2023-07-16 11:29:05.234 T:299841    info <general>: Creating Demuxer
2023-07-16 11:29:05.234 T:299841    info <general>: Opening stream: 1002 source: 256
2023-07-16 11:29:05.234 T:299841    info <general>: Finding audio codec for: 86018
2023-07-16 11:29:05.235 T:299841    info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2023-07-16 11:29:05.235 T:299841    info <general>: OpenStream: Allowing max Out-Of-Sync Value of 10 ms
2023-07-16 11:29:05.235 T:299841    info <general>: Creating audio thread
2023-07-16 11:29:05.235 T:299850    info <general>: running thread: CVideoPlayerAudio::Process()
2023-07-16 11:29:05.235 T:299841    info <general>: Process - eof reading from demuxer
2023-07-16 11:29:05.235 T:299841    info <general>: CVideoPlayer::OnExit()
2023-07-16 11:29:05.235 T:299841    info <general>: VideoPlayer: eof, waiting for queues to empty
2023-07-16 11:29:05.235 T:299841    info <general>: Closing stream player 1
2023-07-16 11:29:05.235 T:299841    info <general>: Waiting for audio thread to exit
2023-07-16 11:29:05.247 T:299850    info <general>: thread end: CVideoPlayerAudio::OnExit()
2023-07-16 11:29:05.247 T:299841    info <general>: Closing audio device
2023-07-16 11:29:05.247 T:299841    info <general>: Deleting audio codec
2023-07-16 11:29:05.248 T:299841    info <general>: ADDON: Dll Destroyed - InputStream Adaptive
2023-07-16 11:29:05.268 T:285300    info <general>: CVideoPlayer::CloseFile()
2023-07-16 11:29:05.268 T:285300    info <general>: VideoPlayer: waiting for threads to exit
2023-07-16 11:29:05.268 T:285300    info <general>: VideoPlayer: finished waiting
2023-07-16 11:29:05.268 T:285300    info <general>: CVideoPlayer::CloseFile()
2023-07-16 11:29:05.268 T:285300    info <general>: VideoPlayer: waiting for threads to exit
2023-07-16 11:29:05.268 T:285300    info <general>: VideoPlayer: finished waiting

MPD/M3U8s/ISM

An example or copy of a manifest (or manifests for HLS - master and variants) can be found here:

Screenshots

Here are some links or screenshots to help explain the problem:

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

It is working fine with x86-64 version of release kodi-20.2-Nexus-x86_64.dmg Logs from working case:

2023-07-16 11:14:11.494 T:264396 warning <general>: ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2023-07-16 11:14:11.495 T:264396 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2023-07-16 11:14:11.509 T:263931    info <general>: VideoPlayer::OpenFile: pvr://channels/tv/All%20channels/91@pvr.iptvsimple_1478009750.pvr
2023-07-16 11:14:11.523 T:264512 warning <general>: OutputPicture - timeout waiting for buffer
2023-07-16 11:14:11.549 T:264485    info <general>: ADDON: Dll Destroyed - InputStream Adaptive
2023-07-16 11:14:11.549 T:264485    info <general>: Creating InputStream
2023-07-16 11:14:11.568 T:263931    info <general>: GL: Using CVBREF render method
2023-07-16 11:14:11.569 T:263931    info <general>: GL: Selecting YUV 2 RGB shader
2023-07-16 11:14:11.571 T:263931    info <general>: Using GL_TEXTURE_RECTANGLE
2023-07-16 11:14:11.586 T:264485    info <general>: AddOnLog: inputstream.adaptive: [Repr. chooser] Resolution set: 1680x1050, max allowed: 2560x1600, Adjust refresh rate: 0
2023-07-16 11:14:11.628 T:264485    info <general>: AddOnLog: inputstream.adaptive: Successfully parsed manifest file (Periods: 1, Streams in first period: 2, Type: live)
2023-07-16 11:14:11.736 T:264485    info <general>: Creating Demuxer
2023-07-16 11:14:11.736 T:264485    info <general>: Opening stream: 1001 source: 256
2023-07-16 11:14:11.936 T:264485    info <general>: Creating video codec with codec id: 27
2023-07-16 11:14:11.936 T:264485    info <general>: CVideoPlayerVideo::OpenStream - could not open video codec
2023-07-16 11:14:11.942 T:264512    info <general>: Creating video codec with codec id: 27
2023-07-16 11:14:11.942 T:264512    info <general>: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
2023-07-16 11:14:12.042 T:264485    info <general>: Opening stream: 1002 source: 256
2023-07-16 11:14:12.042 T:264485    info <general>: Finding audio codec for: 86018
2023-07-16 11:14:12.042 T:264485    info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2023-07-16 11:14:12.591 T:264512    info <general>: Skipped 1 duplicate messages..
2023-07-16 11:14:12.591 T:264512 warning <general>: OutputPicture - timeout waiting for buffer
2023-07-16 11:14:12.996 T:264512    info <general>: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 40000

Your Environment

Used Operating system: OSX arm64 Ventura

note: Once the issue is made we require you to update it with new information should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

CastagnaIT commented 1 year ago

the normal procedure for an issue is provide the full debug log that you can attach by using kodi pastebin or directly on message

attach a shrinked part of a log without debug is like having provided nothing...

also installing proposed addon its not clear where is the "SonyMax HD" video, and if its required an account and if could be region locked

the best thing is that you provide us also the manifest file https://github.com/xbmc/inputstream.adaptive/wiki/Dev.-FAQ#how-to-get-downloaded-manifests-files

swinder0161 commented 1 year ago

Hi, Please find debug logs and manifest here. kodi.log manifest_1689511019_master.txt

CastagnaIT commented 1 year ago

thanks you will find some test builds soon on this link: https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Finputstream.adaptive/detail/PR-1328/1/artifacts let me know

swinder0161 commented 1 year ago

Thanks, it worked for me.