Page 22 of 30

Re: YouTube

PostPosted: Wed Dec 23, 2015 3:25 am
by jhb50
aloha wrote:PS. OK I had a small quick tour on the V3 api specs and I now know that it will a pain in the.... for any easy streaming as before :(

I don't understand what you are trying to do.
Your link https://www.googleapis.com/youtube/v3/p ... Me8Vtv5LKe
should work for you using the groovy from and following the instructions in the first post.
If it does not, post what you have entered in the console and post a debug log showing where you attempt to refresh it and play it.

Re: YouTube

PostPosted: Mon Dec 28, 2015 9:57 am
by alien_
Hi,

I'm just starting with Serviio and have an issue with my Samsung TV not playing Youtube videos via Serviio Youtube plugin. The issue I have is the folder shows up and a picture of the video however when I click on it it states video not currently supported.

This is the Web Resource: https://www.googleapis.com/youtube/v3/v ... HKpXAPTVNU

If I use Youtube via the tv app it works no problems. My TV is a Samsung H6400 so not sure if its the plugin or TV that is the issue.

Anyone shed some light ???? Thanks in advance.

ps I also have the same issue for Reuters UK Video feed:

http://mf.feeds.reuters.com/reuters/UKVideoLatest

Further Update: both video types are mpeg which the TV supports.

Re: YouTube

PostPosted: Tue Dec 29, 2015 6:29 am
by Jimbo
I am running V1.5.2 with the latest version of youtube.groovy. I view everything using a Sony BDP-S5100 on an older sony Bravia tv. Everything worked great with the version of Youtube that worked with V2. I believe the date that the V2 compatible groovy showed was the date the video was posted to youtube. The V3 compatible Youtube.groovy shows the current date for all videos. I waited to post this since it is a minor issue. Is there any possibility of having a change to show the date the video was posted to Youtube as does the V2 compatible groovy?

Re: YouTube

PostPosted: Wed Jan 06, 2016 3:07 am
by Spaceboy64
Just got this working today. I haven't been able to watch YouTube videos on my TV since their format change killed that functionality of my Sony Media Player.

Thanks!

Re: YouTube

PostPosted: Wed Jan 06, 2016 6:49 pm
by alex482
Hi all, I've install Serviio but I'm not sure I got last version of youtube plugin... I try enter http://www.ted.com/talks/rss in online source and all works fine but youtube don't work... I only copy in plugin directory youtube.groovy there are other stuff to do?

I try to add https://www.googleapis.com/youtube/v3/p ... tOWDOWyJqU
but not show in online folder as TED does...

Any suggestion?

Thanks

Re: YouTube

PostPosted: Wed Jan 06, 2016 7:02 pm
by stefana888
Latest version is in first post. Make sure plugin type is set to web resource when URL is added.

Re: YouTube

PostPosted: Wed Jan 06, 2016 7:06 pm
by alex482
In log file:

2016-01-05 03:35:22,359 WARN [FeedUpdaterWorker] An error occured while parsing the online resource https://www.googleapis.com/youtube/v3/p ... tOWDOWyJqU, will try again soon: Error during feed reading. Message: URL 'https://www.googleapis.com/youtube/v3/playlistItems?playlistId=PLNhSjK9aGXjoSH3rtyfHgB5tOWDOWyJqU' returned status code '400'
org.serviio.library.online.metadata.OnlineResourceParseException: Error during feed reading. Message: URL 'https://www.googleapis.com/youtube/v3/playlistItems?playlistId=PLNhSjK9aGXjoSH3rtyfHgB5tOWDOWyJqU' returned status code '400'
at org.serviio.library.online.feed.FeedParser.parse(FeedParser.java:108)
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:184)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:203)
at org.serviio.library.online.metadata.FeedUpdaterWorker.getOnlineItems(FeedUpdaterWorker.java:191)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:108)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.serviio.util.HttpConnectionException: URL 'https://www.googleapis.com/youtube/v3/playlistItems?playlistId=PLNhSjK9aGXjoSH3rtyfHgB5tOWDOWyJqU' returned status code '400'
at org.serviio.util.HttpClient.retrieveStreamFromConnection(HttpClient.java:179)
at org.serviio.util.HttpClient.retrieveBinaryFileFromURL(HttpClient.java:77)
at org.serviio.util.HttpClient.retrieveBinaryFileFromURL(HttpClient.java:93)
at org.serviio.library.online.feed.FeedParser.parseFeedStream(FeedParser.java:116)
at org.serviio.library.online.feed.FeedParser.parse(FeedParser.java:88)

Re: YouTube

PostPosted: Wed Jan 06, 2016 7:13 pm
by alex482
stefana888 wrote:Latest version is in first post. Make sure plugin type is set to web resource when URL is added.


Ok so I get last version!

Other snippet of log file:

2016-01-05 03:43:46,437 INFO [PluginCompilerThread] Added Web Resouce plugin YouTube (Youtube.groovy), version: 4
2016-01-05 03:44:22,109 WARN [FeedUpdaterWorker] An error occured while parsing the online resource https://gdata.youtube.com/feeds/base/us ... r1/uploads, waiting for expiry time to try again: Error during feed reading. Message: URL 'https://gdata.youtube.com/feeds/base/users/LeonhardEuler1/uploads' returned status code '410'
org.serviio.library.online.metadata.OnlineResourceParseException: Error during feed reading. Message: URL 'https://gdata.youtube.com/feeds/base/users/LeonhardEuler1/uploads' returned status code '410'
at org.serviio.library.online.feed.FeedParser.parse(FeedParser.java:108)
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:184)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:203)
at org.serviio.library.online.metadata.FeedUpdaterWorker.getOnlineItems(FeedUpdaterWorker.java:191)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:108)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.serviio.util.HttpConnectionException: URL 'https://gdata.youtube.com/feeds/base/users/LeonhardEuler1/uploads' returned status code '410'
at org.serviio.util.HttpClient.retrieveStreamFromConnection(HttpClient.java:179)
at org.serviio.util.HttpClient.retrieveBinaryFileFromURL(HttpClient.java:77)
at org.serviio.util.HttpClient.retrieveBinaryFileFromURL(HttpClient.java:93)
at org.serviio.library.online.feed.FeedParser.parseFeedStream(FeedParser.java:116)
at org.serviio.library.online.feed.FeedParser.parse(FeedParser.java:88)
... 5 more
2016-01-05 03:46:17,171 INFO [LibraryOneTimeScanner] Interrupting library scan
2016-01-05 03:46:17,171 INFO [LibraryDeltaScanner] Stopping the library delta scan
2016-01-05 03:46:17,187 INFO [PlaylistMaintainerWorker] Finished looking for playlist changes



Can you post a sure working youtube example please?

Re: YouTube

PostPosted: Wed Jan 06, 2016 9:04 pm
by alex482
stefana888 wrote:Latest version is in first post. Make sure plugin type is set to web resource when URL is added.


You are right! I had set RRS online because in older post they are used. Now with web resource it works!

Re: YouTube

PostPosted: Thu Jan 21, 2016 3:06 pm
by patters
How do you add videos by a user that has a space in their user name, but who doesn't have distinct channels? Googling I see that I need to translate their username into a channel id, but queries seem to need an API key so I'm stuck. Could the plugin perhaps be enhanced to tolerate usernames with spaces (and do the necessary lookup)?

http://stackoverflow.com/questions/3021 ... t-username

Re: YouTube

PostPosted: Thu Jan 21, 2016 5:52 pm
by stefana888
Try substitute space with "%20".

Re: YouTube

PostPosted: Wed Jan 27, 2016 1:15 am
by patters
First thing I tried, but it doesn't work unfortunately.

Re: YouTube

PostPosted: Sun Jan 31, 2016 2:14 pm
by georgewash
It works for me, but only with own key:
https://www.googleapis.com/youtube/v3/p ... laylistId=<PLAYLISTID>&key=<YOURKEY>&part=snippet

To get the key u must go to https://console.developers.google.com/, add project, enable "YouTube Data API", get credentional key and wait about 5 minutes.


It's working, but total length of video is always 289hours and I cannot seek.

Re: YouTube

PostPosted: Sat Feb 06, 2016 9:53 pm
by sorinello
Hello, I am running Serviio 1.6 on a Windows 7 x64 machine. I have installed the YouTube plugin, version 4, which I have downloaded from the first post of this thread, the one posted by zip.

I am having problems with certain URL's.

For example, I have added
https://www.googleapis.com/youtube/v3/channels?forUsername=catmusicoffice

as a Video Web Resource, which corresponds to
https://www.youtube.com/user/catmusicoffice/videos

This channel is open, so no auth should be needed.
From the TV, I only see some of the items. Looking at the serviio.log, I found a lot of these errors:

  Code:
2016-02-06 23:10:33,820 WARN  [FeedUpdaterWorker] Failed to retrieve online item information for http://r2---sn-gqn-p5nl.googlevideo.com/videoplayback?mv=m&mt=1454792937&ms=au&itag=18&initcwndbps=3395000&sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2cms%2Cpl%2Cratebypass%2Csource%2Cupn%2Cexpire&upn=dtHhozbXaPY&mn=sn-gqn-p5nl&mm=31&expire=1454814626&pl=18&mime=video%2Fmp4&dur=227.810&ratebypass=yes&source=youtube&lmt=1450842669780061&key=yt6&gcr=ro&ipbits=0&fexp=9415942%2C9416126%2C9416675%2C9418200%2C9418203%2C9419451%2C9420452%2C9422545%2C9422596%2C9423661%2C9423662%2C9424770%2C9426900%2C9427036%2C9427245%2C9427249&sver=3&id=o-ACkF14O84sqi9klOMAu5uxQQqRRRNfuvOy0-gsNdjSxd&ip=79.112.68.15&pcm2cms=yes. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveMetadata(FeedUpdaterWorker.java:324)
   at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveTechnicalMetadata(FeedUpdaterWorker.java:243)
   at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:122)
   at java.lang.Thread.run(Thread.java:745)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.metadata.FFmpegMetadataRetriever.validateMandatoryMetadata(FFmpegMetadataRetriever.java:467)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:100)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:138)
   at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveMetadata(FeedUpdaterWorker.java:303)
   ... 3 more


Am I not doing something right, or there is a bug in the Youtube Plugin ?
I have no knowledge in streaming terminology, but could anybody shed some light on this ?

Thanks

Re: YouTube

PostPosted: Sun Feb 07, 2016 8:23 am
by stefana888
Music content is handled with this mod in combination with 'youtube-dl.exe'. Use at own risk violating or breaking Youtube rules.

Youtube.groovy
(3.57 KiB) Downloaded 1062 times

https://yt-dl.org/downloads

How to become a Google developer and getting a Youtube Data API key for the plugin Google Developers

Re: YouTube

PostPosted: Sun Feb 07, 2016 8:54 am
by sorinello
Hello stefana888,

So you mean that music videos are different from movie videos on youtube ? Is there a difference in encoding between the 2 types ? aren't all seen as videos by serviio ?

It's not this particular channel that has issues, but also other channels, I haven't paid special attention if the videos not working are only audio or also video.

Could you explain to be a bit what is different about them ?

Thanks in advance !

Re: YouTube

PostPosted: Sun Feb 07, 2016 4:21 pm
by stefana888
Uses original 'youtube-dl' to "Extract" the media url with encrypted parameter signature. Usually Youtube videos is not having encrypted signatures.

Re: YouTube

PostPosted: Sun Feb 07, 2016 4:51 pm
by stefana888
patters wrote:First thing I tried, but it doesn't work unfortunately.

Next thing is then to URLEncode the url string.

Re: YouTube

PostPosted: Mon Mar 14, 2016 5:00 am
by Rosales_Network
Youtube Online RSS URL

https://www.youtube.com/feeds/videos.xml?user=Avoiderrors#sthash.wRsNmM3Q.dpuf


Paste the User ID(green letters) into the web address URL.

don't forget to add your Youtube.groovy in your plugins

this works very well and stable for me.

Re: YouTube

PostPosted: Wed Mar 23, 2016 7:29 pm
by Docjones
SI am trying to get my little ones youtube-channel into serviio. i added the following URL as WEB RESOURCE to the ONLINE SOURCE:
  Code:
https://www.youtube.com/feeds/videos.xml?channel_id=UCYaqts2pOcI5jQcb2VhtNbw

but in the log, i get the following:
  Code:
2016-03-23 20:22:46,412 DEBUG [OnlineLibraryManager] Resource https://www.youtube.com/feeds/videos.xml?channel_id=UCYaqts2pOcI5jQcb2VhtNbw not in cache, (re)loading it
2016-03-23 20:22:46,412 DEBUG [WebResourceParser] Parsing web resource 'https://www.youtube.com/feeds/videos.xml?channel_id=UCYaqts2pOcI5jQcb2VhtNbw'
2016-03-23 20:22:46,412 WARN  [FeedUpdaterWorker] An error occured while trying to parse an online resouce requiring a plugin, provide the plugin or remove the resource: No plugin for web resource https://www.youtube.com/feeds/videos.xml?channel_id=UCYaqts2pOcI5jQcb2VhtNbw has been found.


when i try to access the channel using the channel name (
  Code:
https://www.googleapis.com/youtube/v3/channels?forUsername=Snice
) i get the following
  Code:
2016-03-23 20:15:43,280 WARN  [FeedUpdaterWorker] An error occured while parsing the online resource https://www.googleapis.com/youtube/v3/channels?forUsername=Snice, will try again soon: Unexpected error while invoking plugin (YouTube): Cannot get property 'thumb' on null object
org.serviio.library.online.metadata.OnlineResourceParseException: Unexpected error while invoking plugin (YouTube): Cannot get property 'thumb' on null object
        at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:78)
        at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:186)
        at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:203)
        at org.serviio.library.online.metadata.FeedUpdaterWorker.getOnlineItems(FeedUpdaterWorker.java:191)
        at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:108)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException: Cannot get property 'thumb' on null object
        at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:56)
        at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:156)
        at org.codehaus.groovy.runtime.DefaultGroovyMethods.getAt(DefaultGroovyMethods.java:208)
        at org.codehaus.groovy.runtime.dgm$306.invoke(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoMetaMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:308)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:32)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
        at YouTube.extractItems(Youtube.groovy:64)
        at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:32)
        at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:29)
        at org.serviio.library.online.PluginExecutionProcessor$1.call(PluginExecutionProcessor.java:50)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        ... 1 more


the file from the first post has been copied to
  Code:
/Library/Application\ Support/Serviio/plugins/



Anyone can help me what i was doing wrong?