FAQ  •  Register  •  Login

YouTube

<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Dec 24, 2013 6:00 pm

Re: YouTube

It appears that many videos (Vevo) have been locked up with a scrambled signature.
<<

Tygerr

Serviio newbie

Posts: 2

Joined: Thu Jan 23, 2014 12:24 pm

Post Thu Jan 23, 2014 9:13 pm

Re: YouTube

I'm currently using Serviio 1.4 PRO installed on Ubuntu 13.10, and a Samsung LA32D550 TV, and I have the YouTuve.groovy in my plugins folder.

Previously, when running Serviio 1.2.1, I had the YouTube online feeds working perfectly to the same TV, but since rebuilding Ubuntu and installing Serviio 1.4, I can't get the online feeds to work.

The feeds show up in the menus with a full thumbnail list of videos, but when I try play the video I get a "Video codec not supported" error on the TV.

From all the forum posts I read, I suspected it might be an FFMPEG build issue, but I rebuilt that using the methods described in the wiki and forum posts. All other local videos are working, but not the YouTube feeds.

The URL for the YouTube feed I'm attempting to play is: http://gdata.youtube.com/feeds/api/play ... 97FD3CACCE

This is an extract of my Serviio log:

2014-01-23 23:03:59,807 DEBUG [ServiioHttpService] Incoming request from /192.168.1.82:47694: HEAD /resource/1000000010001799/MEDIA_ITEM/MPEG_PS_NTSC-0/ORIGINAL HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,Host: 192.168.1.100:8895]]
2014-01-23 23:03:59,807 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.82
2014-01-23 23:03:59,808 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.82
2014-01-23 23:03:59,808 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.82, Profile=Samsung TV / player (C/D-series)'
2014-01-23 23:03:59,808 DEBUG [ResourceDeliveryProcessor] Request for resource 1000000010001799 and type 'MEDIA_ITEM' received
2014-01-23 23:03:59,808 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000010001799 (online)
2014-01-23 23:03:59,808 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2014-01-23 23:03:59,808 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2014-01-23 23:03:59,809 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000010001799, format MPEG_PS_NTSC and profile Samsung TV / player (C/D-series)
2014-01-23 23:03:59,809 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file rtsp://r4---sn-cg07luez.c.youtube.com/C ... /video.3gp
2014-01-23 23:03:59,809 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtsp://r4---sn-cg07luez.c.youtube.com/C ... /video.3gp: MPEG_PS_PAL
2014-01-23 23:03:59,809 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtsp://r4---sn-cg07luez.c.youtube.com/C ... /video.3gp: MPEG_PS_NTSC
2014-01-23 23:03:59,809 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Thu, 23 Jan 2014 21:03:59 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.4,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]

And this is the result I get if I try to run one of those 3gp files in FFMPEG -i:

ffmpeg -i rtsp://r4---sn-cg07luez.c.youtube.com/C ... /video.3gp
ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 21 2014 21:13:19 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-librtmp --enable-libxvid --enable-libass
libavutil 52. 37.101 / 52. 37.101
libavcodec 55. 16.100 / 55. 16.100
libavformat 55. 9.100 / 55. 9.100
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 77.101 / 3. 77.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
AMR fmtp attribute octet-align had nonstandard empty value
Input #0, rtsp, from 'rtsp://r4---sn-cg07luez.c.youtube.com/CiULENy73wIaHAm4rNCp8hvgQRMYDSANFEgGUglwbGF5bGlzdHMM/0/0/0/video.3gp':
Metadata:
title : Video
Duration: 00:03:56.20, start: 0.032633, bitrate: N/A
Stream #0:0: Video: h263, yuv420p, 176x144 [SAR 12:11 DAR 4:3], 29.97 tbr, 90k tbn, 29.97 tbc
Stream #0:1: Audio: amr_nb, 8000 Hz, mono, flt
At least one output file must be specified


Can you tell if there is something wrong with my setup? Do I have FFMPEG built wrong, or is there maybe a profile error?
It's perplexing since I had it working fine on the old 1.2.1 install.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jan 23, 2014 11:03 pm

Re: YouTube

is there an error later in the log when the file is actually requested?
<<

Tygerr

Serviio newbie

Posts: 2

Joined: Thu Jan 23, 2014 12:24 pm

Post Fri Jan 24, 2014 5:24 am

Re: YouTube

zip wrote:is there an error later in the log when the file is actually requested?


The only error in the entire log is this one:
2014-01-23 23:04:02,191 DEBUG [WebServer] I/O error: Connection reset

Are these the lines relating to where the file is requested?
2014-01-23 23:04:05,253 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000010002370, format MPEG_PS_NTSC and profile Samsung TV / player (C/D-series)
2014-01-23 23:04:05,253 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file rtsp://r5---sn-cg07lues.c.youtube.com/C ... /video.3gp
2014-01-23 23:04:05,253 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtsp://r5---sn-cg07lues.c.youtube.com/C ... /video.3gp: MPEG_PS_PAL
2014-01-23 23:04:05,253 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file rtsp://r5---sn-cg07lues.c.youtube.com/C ... /video.3gp: MPEG_PS_NTSC
2014-01-23 23:04:05,253 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000010002370 (online)
2014-01-23 23:04:05,253 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2014-01-23 23:04:05,253 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2014-01-23 23:04:05,254 DEBUG [VideoDeliveryEngine] Delivering item '1000000010002370' for client 'Identifier=192.168.1.82, Profile=Samsung TV / player (C/D-series)'
2014-01-23 23:04:05,254 DEBUG [VideoDeliveryEngine] Delivering file 'rtsp://r5---sn-cg07lues.c.youtube.com/CiULENy73wIaHAlOY61iMMtcgBMYDSANFEgGUglwbGF5bGlzdHMM/0/0/0/video.3gp' using transcoding
2014-01-23 23:04:05,254 DEBUG [AbstractTranscodingDeliveryEngine] No other client uses transcoding job of file 'transcoding-temp-1000000010001799-7-ORIGINAL.stf', will stop the job
2014-01-23 23:04:05,254 DEBUG [AbstractTranscodingDeliveryEngine] Stopping previous transcoding job of file 'transcoding-temp-1000000010001799-7-ORIGINAL.stf'
2014-01-23 23:04:05,254 DEBUG [TranscodingJobListener] Deleted temp file '/tmp/Serviio/transcoding-temp-1000000010001799-7-ORIGINAL.stf': true
2014-01-23 23:04:05,254 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=192.168.1.82, Profile=Samsung TV / player (C/D-series)'
2014-01-23 23:04:05,254 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtsp://r5---sn-cg07lues.c.youtube.com/C ... /video.3gp
2014-01-23 23:04:05,255 DEBUG [ProcessExecutor] Starting ffmpeg -rtsp_transport +tcp+udp -analyzeduration 10000000 -threads auto -i rtsp://r5---sn-cg07lues.c.youtube.com/C ... /video.3gp -y -threads auto -c:v mpeg2video -pix_fmt yuv420p -qscale:v 1 -r 30000/1001 -g 15 -c:a ac3 -b:a 384k -ar 48000 -ac 1 -map 0:0 -map 0:1 -sn -f vob /tmp/Serviio/transcoding-temp-1000000010002370-7-ORIGINAL.stf
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Jan 24, 2014 5:23 pm

Re: YouTube

Yes, if there is no error after this snippet, then I'm not sure. You could try to use the FFmpeg from 1.2.1 installation, or try the latest FFmpeg binary available.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Jan 25, 2014 6:35 am

Re: YouTube

You should not be getting an rtsp 3gp file from the plugin. Only rtmp files should be detected. I have tested with the latest version of the plugin and it works fine. Perhaps you do not have the latest version of the plugin. Unfortunately zip has not put version numbers on his youtube plugin files so there is no way to check this except by redownloading the latest plugin. You might also try requesting a different quality in the console.
<<

abubin

Serviio lover

Posts: 80

Joined: Tue Jul 26, 2011 3:54 pm

Post Sat Jan 25, 2014 7:16 am

Re: YouTube

I just upgraded to 1.4 recently. And I notice my youtube videos are played in very very low quality mode. I did not change any settings for that. It has always been medium quality for online. I tried changing to high quality but still the same.

Wanted to know if anyone else is having this issue or know how to solve this before I start doing the time consuming work of logging and so on. Thanks.

viewtopic.php?f=5&t=15749
<<

DrTom

Serviio newbie

Posts: 15

Joined: Mon Mar 04, 2013 11:24 pm

Post Sun Feb 16, 2014 5:52 pm

Re: YouTube

I have a problem getting a single YouTube video to play. (It's the 2014 Budweiser commercial.) I have the YouTube plugin and have successfully got it running the top-rated videos. I went to the following link to figure out how to link to a single video:

https://developers.google.com/youtube/2 ... eo_entries

Based on that, I used the following:

http://gdata.youtube.com/feeds/api/vide ... RyF4p4?v=2

Also tried another video:

http://gdata.youtube.com/feeds/api/vide ... iCQkPw?v=2

No luck. I tried eliminating the ?v=2, as well as using ?v=1. Still nothing.

I am using version 1.4 on Win7 Ultimate on a 64-bit platform.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Wed Feb 19, 2014 4:47 am

Re: YouTube

<<

DrTom

Serviio newbie

Posts: 15

Joined: Mon Mar 04, 2013 11:24 pm

Post Wed Feb 19, 2014 1:24 pm

Re: YouTube

<<

j00j4nt200

Serviio newbie

Posts: 10

Joined: Thu Apr 03, 2014 8:33 pm

Post Thu Apr 03, 2014 10:02 pm

Re: YouTube

Hello,

I'm using Serviio with Xbox360.
When YouTube feeds are listed on xbox360 they are sorted alphabetical, not by page order of feeds.
Is there some way to tell xbox360 how to sort feeds, or to add numbering with feeds name, so that first feed have 01 in name, second 02...?

btw: did you see note on google page:
Note: The YouTube Data API (v2) has been officially deprecated as of March 4, 2014. Please refer to our deprecation policy for more information.
<<

andreluigo

Serviio newbie

Posts: 4

Joined: Fri Apr 11, 2014 11:02 pm

Post Fri Apr 11, 2014 11:19 pm

Re: YouTube

Hi....

I have a LG TV model 42LD650 and i tried everything to get play youtube videos on TV and always return "Invalid file"...
I put youtube. groovy inside plugin folders e copy/paste feed url http://gdata.youtube.com/feeds/api/stan ... time=today in serviio but doesn't work...
I read a lot of topics (including all 14 pages of this) in this forum but couldn't find a solution... It seems that doesn't work with LG TVs... An right or did you get fix it?!

Tnx in advance!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Apr 11, 2014 11:27 pm

Re: YouTube

LG's have often problems with transcoded files, which might be your problem. Try with some of the provided profiles.
<<

andreluigo

Serviio newbie

Posts: 4

Joined: Fri Apr 11, 2014 11:02 pm

Post Sun Apr 13, 2014 1:52 pm

Re: YouTube

Could you tell me (based on testimonials) which of them might work?
Its just replace LG profiles info in profiles.txt ? Is all that i have to do?
tnx
----------------------------

Edit: I don't know if make any difference, but i am not with stock firmware. I am using OpenLGTV firmware.
<<

Ultimat

Serviio newbie

Posts: 11

Joined: Wed Apr 23, 2014 10:08 am

Post Wed Apr 23, 2014 10:31 am

Re: YouTube

someone can explain to me why in a plugin displays only 7 videos.
I am new serviio (v 1.4.1.2) user

I try
http://gdata.youtube.com/feeds/api/stan ... _rated?v=2
and get only 7 videos

here is fragment from log (I only replace my real ip to 0.0.0.0):
... 2 more
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:299)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:138)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:100)
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateMandatoryMetadata(FFmpegMetadataRetriever.java:467)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:116)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:237)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:320)
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
2014-03-23 12:52:42,685 WARN [FeedUpdaterThread] Failed to retrieve online item information for http://r1---sn-h5q7enl7.googlevideo.com ... dBad3IaA0I. It might not play.
2014-03-23 12:52:42,684 DEBUG [FeedUpdaterThread] Marking online item LMFAO - Party Rock Anthem ft. Lauren Bennett, GoonRock as 'invalid essence'
2014-03-23 12:52:42,284 DEBUG [ProcessExecutor] Starting /usr/bin/ffmpeg -analyzeduration 10000000 -i http://r1---sn-h5q7enl7.googlevideo.com ... dBad3IaA0I
2014-03-23 12:52:42,282 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: http://r1---sn-h5q7enl7.googlevideo.com ... dBad3IaA0I
2014-03-23 12:52:42,277 DEBUG [FeedUpdaterThread] Retrieving information about the video stream 'LMFAO - Party Rock Anthem ft. Lauren Bennett, GoonRock'
2014-03-23 12:52:41,504 DEBUG [FeedUpdaterThread] Retrieving file size from the URL connection

ffmpeg info for link:
/usr/bin/ffmpeg-serviio -analyzeduration 10000000 -i http://r1---sn-h5q7enl7.googlevideo.com ... dBad3IaA0I
[28] 10897
[29] 10898
[30] 10899
[31] 10900
[32] 10901
[33] 10902
[34] 10903
[35] 10904
[36] 10905
[37] 10906
[38] 10907
[39] 10908
[40] 10909
[41] 10910
[42] 10911
[43] 10912
[29] Done ms=au
[30] Done sparams=gcr%2Cid%2Cip%2Cipbits%2Citag%2Cpcm2fr%2Cratebypass%2Csource%2Cupn%2Cexpire
[31] Done id=o-AJVw2xfrrd3X4ZwzfMNwzVv2zBmIiFi97ftAJxOkR5YF
[32] Done mv=m
[33] Done mt=1398246740
[34] Done ip=0.0.0.0
[35] Done gcr=lv
[36] Done fexp=935659%2C938806%2C938653%2C914074%2C916611%2C937417%2C913434%2C936916%2C934022%2C936923
[37] Done key=yt5
[38] Done itag=22
[39] Done pcm2fr=yes
[40] Done source=youtube
[41] Done expire=1398268912
[42] Done ratebypass=yes
ffmpeg version 2.0.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Sep 11 2013 12:31:54 with gcc 4.8 (Debian 4.8.1-10)
configuration: --prefix=/usr --cc='gcc -static' --extra-cflags=-static --extra-ldflags='-Wl,-z,relro -static' --extra-libs='-static -lssl -lcrypto -lz -ldl -lorc-0.4 -lenca -lfribidi -lfontconfig -lfreetype -lexpat -lX11 -lxcb -lXau -lXdmcp -ldl -lm' --disable-debug --disable-devices --disable-doc --disable-ffplay --disable-ffprobe --disable-ffserver --disable-shared --enable-static --enable-gpl --enable-nonfree --enable-version3 --enable-frei0r --enable-libass --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-openssl --enable-postproc --enable-runtime-cpudetect
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100


[28]+ Stopped /usr/bin/ffmpeg-serviio -analyzeduration 10000000 -i http://r1---sn-h5q7enl7.googlevideo.com ... ack?sver=3
[43] Done ipbits=0



I tried to use ffmpeg, ffmpeg-serviio & self-buld ffmpeg from sources and with all of them get similar errors.
Whats wrong? Also trying others videos playlists but also get about 1-2-10 videos from list of 20-100-200 videos.

Sorry for my bad english.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Wed Apr 23, 2014 10:02 pm

Re: YouTube

Vevo videos (which are those that do not display for you) contain an encoded signature within the url that only a browser can decode, hence ffmpeg and serviio fail when attempting to access them.
<<

andreluigo

Serviio newbie

Posts: 4

Joined: Fri Apr 11, 2014 11:02 pm

Post Thu Apr 24, 2014 12:04 am

Re: YouTube

andreluigo wrote:Could you tell me (based on testimonials) which of them might work?
Its just replace LG profiles info in profiles.txt ? Is all that i have to do?
tnx
----------------------------

Edit: I don't know if make any difference, but i am not with stock firmware. I am using OpenLGTV firmware.


Anybodyyyyy?!?!?!?!?! :(
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Thu Apr 24, 2014 1:27 pm

Re: YouTube

The profile to be used by a device is selected in the console status page.
<<

Ultimat

Serviio newbie

Posts: 11

Joined: Wed Apr 23, 2014 10:08 am

Post Fri Apr 25, 2014 2:25 pm

Re: YouTube

Is here any way to decode real link as VLC (It work fine with all links).
Maybe we can use in this plugin browser's useg-agent or something others stuffs.
For example, can we use external program for direct link extraction in plugin like YouTube-DL?
May be it is possible fix the problem with unacessible links.

Sorry for my bad english.
<<

andreluigo

Serviio newbie

Posts: 4

Joined: Fri Apr 11, 2014 11:02 pm

Post Fri Apr 25, 2014 2:36 pm

Re: YouTube

I give up... It seems anyone won't help me!

=/
PreviousNext

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 22 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.