anxdpanic / plugin.video.youtube

Watch your favorite YouTube content on Kodi
https://ytaddon.panicked.xyz/forum
675 stars 111 forks source link

"Error probing input format" when sending URL to Kodi #210

Closed norrinr closed 5 months ago

norrinr commented 2 years ago

I am using the script from here https://github.com/allejok96/send-to-kodi which seems to be working for sending the URL to Kodi, but then the video doesn't play.

This is on the host I'm sending from:

% ./send-to-kodi.sh -x -u user:pass -r kodihost:8080 https://www.youtube.com/watch\?v=tcsoo_H6dc8 Requesting to play: https://www.youtube.com/watch?v=tcsoo_H6dc8 Response: OK

This is what I see in the kodi.log:

2021-10-03 13:39:43.562 T:20966 NOTICE: VideoPlayer::OpenFile: https://www.youtube.com/watch?v=tcsoo_H6dc8 2021-10-03 13:39:44.176 T:21065 NOTICE: Creating InputStream 2021-10-03 13:39:45.157 T:21065 NOTICE: Creating Demuxer 2021-10-03 13:39:46.041 T:21065 ERROR: Open - error probing input format, https://m.youtube.com/watch?v=tcsoo_H6dc8 2021-10-03 13:39:46.042 T:21065 ERROR: OpenDemuxStream - Error creating demuxer 2021-10-03 13:39:46.042 T:21065 NOTICE: CVideoPlayer::OnExit() 2021-10-03 13:39:46.102 T:20966 NOTICE: CVideoPlayer::CloseFile() 2021-10-03 13:39:46.131 T:20966 NOTICE: VideoPlayer: waiting for threads to exit 2021-10-03 13:39:46.132 T:20966 NOTICE: VideoPlayer: finished waiting

norrinr commented 2 years ago

I'm not sure if this is an issue with the sending script. When I have youtube-dl installed and leave off the '-x', it changes the link to what looks like the direct Google Video file.. This one played fine.

% ./send-to-kodi.sh -u user:pass -r kodihost:8080 https://www.youtube.com/watch\?v=tcsoo_H6dc8 Looking for best video... Looking for compatible video... Download for better quality? [y/N] Requesting to play: https://r5---sn-a5mlrnes.googlevideo.com/videoplayback?expire=1633318534&ei=JiJaYfC8HYrakgazyrqQCw&ip=24.255.13.97&id=o-AKVf_7BndRBpRGyf_HaFPybeZW48418eng4_5a_FEQRk&itag=22&source=youtube&requiressl=yes&mh=rl&mm=31%2C26&mn=sn-a5mlrnes%2Csn-o097znlk&ms=au%2Conr&mv=m&mvi=5&pl=18&initcwndbps=1778750&vprv=1&mime=video%2Fmp4&ns=EJYUy7UDkmyevKcR_sapWTYG&cnr=14&ratebypass=yes&dur=69.125&lmt=1633229744209437&mt=1633296534&fvip=5&fexp=24001373%2C24007246&c=WEB&txp=5432432&n=z6WCE-21jlhrN94e&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAOof6o_tXtc1NtdQgsfXrch9eI_D5C-vVR7zqs8_2tyHAiBz5Elg7pNda8U1JMcYpPMjYp3YUlAY8nIkRzqqFjsr5w%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgcpDxRcitVnaRB39fJYy6WzH6QKMURKU-NgFwNgxrbVMCIFmQ7V1gI4WKZcFsE36Ig2G94A2ra05EXJlRhDAu5_g6 Response: OK

norrinr commented 2 years ago

This is the log of it working..

2021-10-03 14:34:31.946 T:1578 NOTICE: VideoPlayer::OpenFile: https://r5---sn-a5mlrnes.googlevideo.com/videoplayback?expire=1633318534&ei=JiJaYfC8HYrakgazyrqQCw&ip=24.255.13.97&id=o-AKVf_7BndRBpRGyf_HaFPybeZW48418eng4_5a_FEQRk&itag=22&source=youtube&requiressl=yes&mh=rl&mm=31%2C26&mn=sn-a5mlrnes%2Csn-o097znlk&ms=au%2Conr&mv=m&mvi=5&pl=18&initcwndbps=1778750&vprv=1&mime=video%2Fmp4&ns=EJYUy7UDkmyevKcR_sapWTYG&cnr=14&ratebypass=yes&dur=69.125&lmt=1633229744209437&mt=1633296534&fvip=5&fexp=24001373%2C24007246&c=WEB&txp=5432432&n=z6WCE-21jlhrN94e&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAOof6o_tXtc1NtdQgsfXrch9eI_D5C-vVR7zqs8_2tyHAiBz5Elg7pNda8U1JMcYpPMjYp3YUlAY8nIkRzqqFjsr5w%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgcpDxRcitVnaRB39fJYy6WzH6QKMURKU-NgFwNgxrbVMCIFmQ7V1gI4WKZcFsE36Ig2G94A2ra05EXJlRhDAu5_g6 2021-10-03 14:34:32.228 T:1635 NOTICE: Creating InputStream 2021-10-03 14:34:32.548 T:1635 NOTICE: Creating Demuxer 2021-10-03 14:34:32.719 T:1635 NOTICE: Opening stream: 0 source: 256 2021-10-03 14:34:32.720 T:1635 NOTICE: Creating video codec with codec id: 27 2021-10-03 14:34:32.720 T:1635 ERROR: CDVDVideoCodecAndroidMediaCodec::Open - InstanceGuard locked 2021-10-03 14:34:32.737 T:1635 NOTICE: Opening stream: 1 source: 256 2021-10-03 14:34:32.738 T:1635 NOTICE: Finding audio codec for: 86018 2021-10-03 14:34:32.741 T:1635 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac 2021-10-03 14:34:32.929 T:1644 NOTICE: Creating video codec with codec id: 27 2021-10-03 14:34:32.934 T:1644 NOTICE: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.mp4.decode 2021-10-03 14:34:32.938 T:1644 NOTICE: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.h263.decode 2021-10-03 14:34:32.939 T:1644 NOTICE: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.h264.decode 2021-10-03 14:35:00.333 T:1578 NOTICE: Samba is idle. Closing the remaining connections 2021-10-03 14:35:41.434 T:1635 NOTICE: CVideoPlayer::OnExit() 2021-10-03 14:35:41.434 T:1635 NOTICE: VideoPlayer: eof, waiting for queues to empty 2021-10-03 14:35:41.435 T:1635 NOTICE: Closing stream player 1 2021-10-03 14:35:41.435 T:1635 NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty 2021-10-03 14:35:41.436 T:1635 NOTICE: Waiting for audio thread to exit 2021-10-03 14:35:41.436 T:1649 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true 2021-10-03 14:35:41.437 T:1649 NOTICE: thread end: CVideoPlayerAudio::OnExit() 2021-10-03 14:35:41.438 T:1635 NOTICE: Closing audio device 2021-10-03 14:35:41.629 T:1635 NOTICE: Deleting audio codec 2021-10-03 14:35:41.630 T:1635 NOTICE: Closing stream player 2 2021-10-03 14:35:41.630 T:1635 NOTICE: waiting for video thread to exit 2021-10-03 14:35:41.639 T:1644 NOTICE: thread end: video_thread 2021-10-03 14:35:41.640 T:1635 NOTICE: deleting video codec 2021-10-03 14:35:41.832 T:1578 NOTICE: CVideoPlayer::CloseFile() 2021-10-03 14:35:41.832 T:1578 NOTICE: VideoPlayer: waiting for threads to exit 2021-10-03 14:35:41.832 T:1578 NOTICE: VideoPlayer: finished waiting 2021-10-03 14:35:41.833 T:1578 NOTICE: CVideoPlayer::CloseFile() 2021-10-03 14:35:41.833 T:1578 NOTICE: VideoPlayer: waiting for threads to exit 2021-10-03 14:35:41.833 T:1578 NOTICE: VideoPlayer: finished waiting

norrinr commented 2 years ago

Sorry, looks like I missed the script's '-y' option to "Use Kodi's youtube addon instead of youtube-dl". This also played fine.

% ./send-to-kodi.sh -y -u user:pass -r kodihost:8080 https://www.youtube.com/watch\?v=tcsoo_H6dc8 Requesting to play: plugin://plugin.video.youtube/?action=play_video&videoid=tcsoo_H6dc8 Response: OK

2021-10-03 14:38:18.143 T:1690 WARNING: [plugin.video.youtube] DEPRECATED "plugin://plugin.video.youtube/?action=play_video&videoid=tcsoo_H6dc8" 2021-10-03 14:38:18.144 T:1690 WARNING: [plugin.video.youtube] USE INSTEAD "plugin://plugin.video.youtube/play/?video_id=tcsoo_H6dc8" 2021-10-03 14:38:19.663 T:1690 ERROR: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning, 2021-10-03 14:38:21.371 T:1578 NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.youtube/?action=play_video&videoid=tcsoo_H6dc8 2021-10-03 14:38:21.493 T:1701 NOTICE: Creating InputStream 2021-10-03 14:38:21.926 T:1701 NOTICE: Creating Demuxer 2021-10-03 14:38:22.112 T:1701 NOTICE: Opening stream: 0 source: 256 2021-10-03 14:38:22.113 T:1701 NOTICE: Creating video codec with codec id: 27 2021-10-03 14:38:22.115 T:1701 NOTICE: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.mp4.decode 2021-10-03 14:38:22.116 T:1701 NOTICE: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.h263.decode 2021-10-03 14:38:22.117 T:1701 NOTICE: CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.h264.decode 2021-10-03 14:38:22.278 T:1701 NOTICE: Creating video thread 2021-10-03 14:38:22.284 T:1711 NOTICE: running thread: video_thread 2021-10-03 14:38:22.347 T:1701 NOTICE: Opening stream: 1 source: 256 2021-10-03 14:38:22.348 T:1701 NOTICE: Finding audio codec for: 86018 2021-10-03 14:38:22.351 T:1701 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac 2021-10-03 14:38:22.351 T:1701 NOTICE: Creating audio thread 2021-10-03 14:38:22.352 T:1716 NOTICE: running thread: CVideoPlayerAudio::Process() 2021-10-03 14:38:22.372 T:1716 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through) 2021-10-03 14:38:22.378 T:1587 NOTICE: Trying to open: samplerate: 44100, channelMask: 12, encoding: 4 2021-10-03 14:38:22.414 T:1587 NOTICE: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 44100 format: AE_FMT_FLOAT (AE) method: PCM stream-type: PCM-STREAM min_buffer_size: 49248 m_frames: 3078 m_frameSize: 8 channels: 2 2021-10-03 14:38:22.596 T:1578 NOTICE: Instancing CRendererMediaCodecSurface 2021-10-03 14:38:22.596 T:1578 NOTICE: CRendererMediaCodecSurface::Configure 2021-10-03 14:39:31.280 T:1701 NOTICE: CVideoPlayer::OnExit() 2021-10-03 14:39:31.281 T:1701 NOTICE: VideoPlayer: eof, waiting for queues to empty 2021-10-03 14:39:31.282 T:1701 NOTICE: Closing stream player 1 2021-10-03 14:39:31.282 T:1701 NOTICE: CDVDMessageQueue(audio)::WaitUntilEmpty 2021-10-03 14:39:31.283 T:1701 NOTICE: Waiting for audio thread to exit 2021-10-03 14:39:31.283 T:1716 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true 2021-10-03 14:39:31.283 T:1716 NOTICE: thread end: CVideoPlayerAudio::OnExit() 2021-10-03 14:39:31.284 T:1701 NOTICE: Closing audio device 2021-10-03 14:39:31.388 T:1701 NOTICE: Deleting audio codec 2021-10-03 14:39:31.389 T:1701 NOTICE: Closing stream player 2 2021-10-03 14:39:31.390 T:1701 NOTICE: CDVDMessageQueue(video)::WaitUntilEmpty 2021-10-03 14:39:31.685 T:1701 NOTICE: waiting for video thread to exit 2021-10-03 14:39:31.685 T:1711 ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true 2021-10-03 14:39:31.686 T:1711 NOTICE: thread end: video_thread 2021-10-03 14:39:31.686 T:1701 NOTICE: deleting video codec 2021-10-03 14:39:31.914 T:1578 NOTICE: CVideoPlayer::CloseFile() 2021-10-03 14:39:31.915 T:1578 NOTICE: VideoPlayer: waiting for threads to exit 2021-10-03 14:39:31.915 T:1578 NOTICE: VideoPlayer: finished waiting 2021-10-03 14:39:31.915 T:1578 NOTICE: CVideoPlayer::CloseFile() 2021-10-03 14:39:31.915 T:1578 NOTICE: VideoPlayer: waiting for threads to exit 2021-10-03 14:39:31.916 T:1578 NOTICE: VideoPlayer: finished waiting

anxdpanic commented 2 years ago

Disable Settings - Support alternative player - Use YouTube website urls and Settings - Support alternative player

norrinr commented 2 years ago

I checked those before posting this. They are disabled. I tried enabling them, saving settings, then disabling them again. I even uninstalled and reinstalled the add-on just to make sure.

mwoco commented 2 years ago

Same problem for me: Some videos are working. Some are not. Error message is "Open - error probing input format". Settings mentioned by anxdpanic are disabled. I'm using Yatse to send URLs to Kodi.