RE: YouTube Plug-in Thread - anxdpanic - 2017-08-30
@petou: jsonrpc method Player.Open should work. Params/routes are currently not documented. There is some information to be found by searching this thread, google and of course the source.
@DarrenHill, Karellen: Thank you.
@bonapartyparty: I don't see anything that looks abnormal add-on wise, the startup library scan looks like it wasn't quite finished when you started into the add-on. If you don't see the library scan dialogs, you can enable them by disabling Media settings -> Library -> Hide progress of library updates, and see if that correlates to the delays you're seeing. Unsure otherwise.
RE: YouTube Plug-in Thread - petou - 2017-08-31
Well I always search a lot before posting on forums! I even wrote on the yatse forum, and all the answer i could got from them was a confirmation that the application is using JSON to get that done. (Unfortunatly the log don't show the json details when i do it with the apps)
The only JSON that seems to work is:
Code: http://login:[email protected]:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"https://www.youtube.com/watch?v=wQP9XZc2Y_c"}},"id":"1"}
which return
Code: {"id":"1","jsonrpc":"2.0","result":"OK"}
but kodi seems to be busy a second or 2 and then nothing happen.
here's the log i got:
Code: 19:15:24.395 T:140027787208448 DEBUG: CWebServer[8080]: request received for /jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22Player.Open%22,%22params%22:{%22item%22:{%22file%22:%22https://www.youtube.com/watch?v=wQP9XZc2Y_c%22}},%22id%22:%221%22}
19:15:24.400 T:140027770423040 DEBUG: Previous line repeats 1 times.
19:15:24.400 T:140027770423040 INFO: easy_aquire - Created session to https://www.youtube.com
19:15:25.006 T:140028155594496 DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
19:15:25.006 T:140028155594496 DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
19:15:25.006 T:140027762030336 DEBUG: Thread GUIDialogCache start, auto delete: true
19:15:25.432 T:140028654635392 DEBUG: CCurlFile::GetMimeType - https://www.youtube.com/watch?v=wQP9XZc2Y_c -> x-directory/normal
19:15:25.439 T:140028654635392 DEBUG: Loading settings for https://www.youtube.com/watch?v=wQP9XZc2Y_c
19:15:25.440 T:140027762030336 DEBUG: Thread GUIDialogCache 140027762030336 terminating (autodelete)
19:15:25.440 T:140028654635392 DEBUG: CPlayerCoreFactory::GetPlayers(https://www.youtube.com/watch?v=wQP9XZc2Y_c)
19:15:25.440 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
19:15:25.440 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
19:15:25.440 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
19:15:25.441 T:140028654635392 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
19:15:25.441 T:140028654635392 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
19:15:25.441 T:140028654635392 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
19:15:25.441 T:140028654635392 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
19:15:25.441 T:140028654635392 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
19:15:25.441 T:140028654635392 DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
19:15:25.445 T:140028654635392 DEBUG: Radio UECP (RDS) Processor - new CDVDRadioRDSData
19:15:25.445 T:140028654635392 NOTICE: VideoPlayer: Opening: https://www.youtube.com/watch?v=wQP9XZc2Y_c
19:15:25.445 T:140028654635392 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:15:25.913 T:140028654635392 DEBUG: CCurlFile::GetMimeType - https://www.youtube.com/watch?v=wQP9XZc2Y_c -> x-directory/normal
19:15:25.913 T:140028654635392 DEBUG: LinuxRendererGL: Cleaning up GL resources
19:15:25.914 T:140028654635392 DEBUG: CLinuxRendererGL::PreInit - precision of luminance 16 is 16
19:15:25.914 T:140027762030336 DEBUG: Thread VideoPlayer start, auto delete: false
19:15:25.914 T:140027762030336 NOTICE: Creating InputStream
19:15:25.914 T:140027762030336 DEBUG: CurlFile::Open(0x7f5ac103a670) https://www.youtube.com/watch?v=wQP9XZc2Y_c
19:15:26.293 T:140027762030336 DEBUG: CFileCache::Open - opening <watch> using cache
19:15:26.293 T:140027762030336 DEBUG: CurlFile::Open(0x7f5a8c24ec50) https://www.youtube.com/watch?v=wQP9XZc2Y_c
19:15:26.414 T:140028654635392 DEBUG: ------ Window Init (DialogBusy.xml) ------
19:15:26.568 T:140027762030336 NOTICE: Creating Demuxer
19:15:26.568 T:140027806910208 DEBUG: Thread FileCache start, auto delete: false
19:15:26.892 T:140027806910208 INFO: CFileCache::Process - Source read didn't return any data! Hit eof(?)
19:15:26.981 T:140027762030336 ERROR: Open - error probing input format, https://www.youtube.com/watch?v=wQP9XZc2Y_c
19:15:26.981 T:140027762030336 ERROR: OpenDemuxStream - Error creating demuxer
19:15:26.981 T:140027762030336 NOTICE: CVideoPlayer::OnExit()
19:15:26.981 T:140027806910208 DEBUG: Thread FileCache 140027806910208 terminating
19:15:26.981 T:140027762030336 DEBUG: OnPlayBackStopped: play state was 1, starting 1
19:15:26.981 T:140027762030336 DEBUG: Thread VideoPlayer 140027762030336 terminating
19:15:26.989 T:140028654635392 DEBUG: OnPlayBackStopped: play state was 3, starting 0
19:15:26.989 T:140028155594496 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
19:15:26.989 T:140028155594496 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
19:15:27.005 T:140028654635392 NOTICE: CVideoPlayer::CloseFile()
19:15:27.005 T:140028654635392 NOTICE: VideoPlayer: waiting for threads to exit
19:15:27.005 T:140028654635392 NOTICE: VideoPlayer: finished waiting
19:15:27.005 T:140028654635392 DEBUG: DeleteRenderer - deleting renderer
19:15:27.005 T:140028654635392 DEBUG: LinuxRendererGL: Cleaning up GL resources
19:15:27.006 T:140028654635392 NOTICE: CVideoPlayer::CloseFile()
19:15:27.006 T:140028654635392 NOTICE: VideoPlayer: waiting for threads to exit
19:15:27.006 T:140028654635392 NOTICE: VideoPlayer: finished waiting
19:15:27.009 T:140028654635392 DEBUG: Radio UECP (RDS) Processor - delete ~CDVDRadioRDSData
19:15:27.066 T:140027770423040 DEBUG: CWebServer[8080]: request received for /favicon.ico
19:15:27.439 T:140027762030336 DEBUG: Thread JobWorker start, auto delete: true
19:15:27.538 T:140028654635392 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
seems to be some format error of some sort...
RE: YouTube Plug-in Thread - anxdpanic - 2017-08-31
You'll still want to use, plugin://plugin.video.youtube/play/?video_id=wQP9XZc2Y_c and not https://www.youtube.com/watch?v=wQP9XZc2Y_c
To debug jsonrpc requests from apps, you can enable component specific logging for jsonrpc. Settings - System Settings - Logging - Enable component-specific logging, and - Specify component-specific logging
RE: YouTube Plug-in Thread - petou - 2017-08-31
THANK YOU VERY MUCH!
i passed so much time trying to figure that out.
For other heres the complete json
Code: http://login:[email protected]:8080/jsonrpc?request={"jsonrpc":"2.0","method":"Player.Open","params":{"item":{"file":"plugin://plugin.video.youtube/play/?video_id=wQP9XZc2Y_c"}},"id":"1"}
yeah the video is for my 3yrs old daugther
RE: YouTube Plug-in Thread - anxdpanic - 2017-09-01
5.4.3~alpha4 is posted.
5.4.3 alpha4 zips
[fix/upd] refactor subtitles ** subtitles setting will be reset
As usual if you have an issue, please provide a debug_log (wiki)
How to play video from spcific position? - tomer.st - 2017-09-02
Hi,
I'm using your great youtube plugin for kodi with python...
I wrote some script and i can't find how to play a video from a spcific postion.
For exaple, i want to play video from position 00:01:13.
Thanks,
Tomer
RE: YouTube Plug-in Thread - blueribb - 2017-09-02
(2017-09-02, 22:03)tomer.st Wrote: Hi,
I'm using your great youtube plugin for kodi with python...
I wrote some script and i can't find how to play a video from a spcific postion.
For exaple, i want to play video from position 00:01:13.
Thanks,
Tomer
Start video and press 1 1 3, then "enter" on your keyboard
RE: YouTube Plug-in Thread - tomer.st - 2017-09-03
(2017-09-02, 22:14)blueribb Wrote: (2017-09-02, 22:03)tomer.st Wrote: Hi,
I'm using your great youtube plugin for kodi with python...
I wrote some script and i can't find how to play a video from a spcific postion.
For exaple, i want to play video from position 00:01:13.
Thanks,
Tomer
Start video and press 1 1 3, then "enter" on your keyboard
What do mean "press"?
There is no way to add something like #0h1m13s to the url i want to play?
For example:
plugin://plugin.video.youtube/?path=/root/video&action=play_video&videoid=videoid#0h1m13s
RE: YouTube Plug-in Thread - nickr - 2017-09-03
He means on your remote/keyboard, but you are trying to do it programmatically.
I think you'd have to use the kodi Player.Seek after the Play command
http://kodi.wiki/view/JSON-RPC_API/v8#Player.Seek
RE: YouTube Plug-in Thread - tomer.st - 2017-09-03
(2017-09-03, 07:49)nickr Wrote: He means on your remote/keyboard, but you are trying to do it programmatically.
I think you'd have to use the kodi Player.Seek after the Play command
http://kodi.wiki/view/JSON-RPC_API/v8#Player.Seek
Thanks
RE: YouTube Plug-in Thread - ptica - 2017-09-03
Good day ,whether there is a new version of the addon for XBMC 13.2
There is no possibility to change the version of kodi on the satellite receiver VU+
thank you
RE: YouTube Plug-in Thread - vicmanpergar - 2017-09-03
(2017-09-02, 22:14)blueribb Wrote: (2017-09-02, 22:03)tomer.st Wrote: Hi,
I'm using your great youtube plugin for kodi with python...
I wrote some script and i can't find how to play a video from a spcific postion.
For exaple, i want to play video from position 00:01:13.
Thanks,
Tomer
Start video and press 1 1 3, then "enter" on your keyboard
Well, ur advice was good for me, since I had no idea u could do that, lol
So thanks
Multichannel output - PatroSK - 2017-09-03
Hello!
Is there any way to get multichannel audio output from YouTube addon?
Every video from YT is indicated as 2 channel (stereo) in my AV receiver. Videos stored on my NAS are outputted with Kodi correctly (5.1, 7.1 ...). So it is not by bad configuration in Kodi or LibreElec.
I've found informations that youtube recodes all audio in movies to 2 channel - I don't think so, because there is a lot of multichannel demo/promo material on youtube (coded in Dolby & DTS).
My configuration:
Raspberry Pi3, LibreElec, Kodi + YouTube addon + inputstream.adaptive (mpeg dash allowed).
Thanx for solutions
RE: YouTube Plug-in Thread - blueribb - 2017-09-03
(2017-09-03, 15:12)PatroSK Wrote: Hello!
Is there any way to get multichannel audio output from YouTube addon?
Every video from YT is indicated as 2 channel (stereo) in my AV receiver. Videos stored on my NAS are outputted with Kodi correctly (5.1, 7.1 ...). So it is not by bad configuration in Kodi or LibreElec.
I've found informations that youtube recodes all audio in movies to 2 channel - I don't think so, because there is a lot of multichannel demo/promo material on youtube (coded in Dolby & DTS).
My configuration:
Raspberry Pi3, LibreElec, Kodi + YouTube addon + inputstream.adaptive (mpeg dash allowed).
Thanx for solutions
All uploaded videos are re-encoded to 2-channel stereo according to many reports
RE: YouTube Plug-in Thread - PatroSK - 2017-09-03
Thank you for reply
|