FAQ  •  Register  •  Login

YoutubeDL

<<

Ultimat

Serviio newbie

Posts: 11

Joined: Wed Apr 23, 2014 10:08 am

Post Tue Aug 11, 2015 7:20 am

Re: YoutubeDL

Anybody can help me?
Problem:
try process playlists link: https://www.youtube.com/watch?v=cDSim89 ... 6LKazADJl-
and get error In log:
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveMetadata(FeedUpdaterWorker.java:303)
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 java.lang.Thread.run(Thread.java:745)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:122)
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveTechnicalMetadata(FeedUpdaterWorker.java:243)
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveMetadata(FeedUpdaterWorker.java:324)
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
2015-08-11 08:12:14,797 WARN [FeedUpdaterWorker] Failed to retrieve online item information for ....

Youtube-dl download link without troubles, but says:
...
[youtube] cDSim89-SMY: Extracting video information
[youtube] cDSim89-SMY: Downloading DASH manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
...

ffmpeg -i ....link.... says:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '....link.....':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2015-08-06 09:33:52
Duration: 00:00:53.92, start: 0.000000, bitrate: 2762 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2760 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Metadata:
creation_time : 2015-08-06 09:33:52
handler_name : VideoHandler
At least one output file must be specified
[25]+ Done expire=1439298938


somthing wrong with my ffmpeg? I need ffmpeg with an option enabled or not?
<<

programmer

Streaming enthusiast

Posts: 23

Joined: Tue Nov 04, 2014 8:30 pm

Post Tue Aug 11, 2015 8:00 pm

Re: YoutubeDL

I tried your playlist but didn't get the problem, using High quality settings and 20 items to retrieve.
Can you enable the log and send what you get from YoutubeDL? Example of what I get:

2015-08-11 22:41:00,565 DEBUG [FeedUpdaterWorker] Retrieving information about the video stream 'ПРЕМЬЕРА! Руслан Кристаллов - Дым'
2015-08-11 22:41:01,214 DEBUG [TechnicalMetadataCacheDecorator] Stored technical metadata for online item 'youtubedl_rWCVu6Zkbfs_22' in the cache (online_technical_metadata), returning it

You can see format 22 is selected (it is mp4 1280x720).
Dash means video only (or audio only). Dash formats are never selected by plugin.
<<

Ultimat

Serviio newbie

Posts: 11

Joined: Wed Apr 23, 2014 10:08 am

Post Wed Aug 12, 2015 7:42 am

Re: YoutubeDL

My log:

2015-08-12 10:33:54,304 WARN [FeedUpdaterWorker] Failed to retrieve online item information for https://r1---sn-c5aupjvh-gpme.googlevid ... 6A1C7A2CE8. It might not play.

2015-08-12 10:33:54,303 DEBUG [FeedUpdaterWorker] Marking online item ПРЕМЬЕРА! Руслан Кристаллов - Дым as 'invalid essence', it will not be tried again until the online feed is refreshed.

2015-08-12 10:33:54,166 DEBUG [FeedUpdaterWorker] Retrieving information about the video stream 'ПРЕМЬЕРА! Руслан Кристаллов - Дым'

2015-08-12 10:33:54,100 DEBUG [FeedUpdaterWorker] Retrieving file size from the URL connection
... 3 more
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveMetadata(FeedUpdaterWorker.java:303)
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 java.lang.Thread.run(Thread.java:745)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:122)
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveTechnicalMetadata(FeedUpdaterWorker.java:243)
at org.serviio.library.online.metadata.FeedUpdaterWorker.retrieveMetadata(FeedUpdaterWorker.java:324)
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.

.....

2015-08-12 10:33:37,176 DEBUG [WebResourceParser] Added resource item 15: 'ПРЕМЬЕРА! Руслан Кристаллов - Дым' (https://r1---sn-c5aupjvh-gpme.googlevid ... 6A1C7A2CE8)

2015-08-12 10:33:37,176 DEBUG [FeedItemUrlExtractor] YouTubeDL: Finished extraction of url: ContentURLContainer [fileType=VIDEO, contentUrl=https://r1---sn-c5aupjvh-gpme.googlevideo.com/videoplayback?pl=21&initcwndbps=3977500&ipbits=0&fexp=9405189%2C9405987%2C9408710%2C9412859%2C9415092%2C9415365%2C9415485%2C9415659%2C9416023%2C9416126%2C9416984%2C9417838%2C9418145%2C9418153%2C9418199&key=yt5&ip=MY_IP_Adress_HERE&upn=oXP0QHHpqlw&gcr=lv&mm=31&expire=1439386405&lmt=1437348052648236&ratebypass=yes&source=youtube&mv=m&mt=1439364698&ms=au&mn=sn-c5aupjvh-gpme&mime=video%2Fmp4&dur=219.939&id=o-AMbv1xUPAUFpCQa5mtFRLKdeC_y5aGEN_rcld0NkLV5r&sver=3&itag=22&requiressl=yes&sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&signature=13F0C7235AD8884D0BABAD8455E8BE103FF9D5EC.75CC05173BC4D855695B01C21B615F6A1C7A2CE8, thumbnailUrl=https://i.ytimg.com/vi/rWCVu6Zkbfs/hqdefault.jpg, expiresOn=Wed Aug 12 16:33:25 EEST 2015, expiresImmediately=false, cacheKey=youtubedl_rWCVu6Zkbfs_22, live=false, ]

2015-08-12 10:33:37,162 DEBUG [FeedItemUrlExtractor] YouTubeDL: Starting extraction of url for item: ПРЕМЬЕРА! Руслан Кристаллов - Дым






ffmpeg -i 'https://r1---sn-c5aupjvh-gpme.googlevideo.com/videoplayback?pl=21&initcwndbps=3977500&ipbits=0&fexp=9405189%2C9405987%2C9408710%2C9412859%2C9415092%2C9415365%2C9415485%2C9415659%2C9416023%2C9416126%2C9416984%2C9417838%2C9418145%2C9418153%2C9418199&key=yt5&ip=MY_IP_Adress_HERE&upn=oXP0QHHpqlw&gcr=lv&mm=31&expire=1439386405&lmt=1437348052648236&ratebypass=yes&source=youtube&mv=m&mt=1439364698&ms=au&mn=sn-c5aupjvh-gpme&mime=video%2Fmp4&dur=219.939&id=o-AMbv1xUPAUFpCQa5mtFRLKdeC_y5aGEN_rcld0NkLV5r&sver=3&itag=22&requiressl=yes&sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&signature=13F0C7235AD8884D0BABAD8455E8BE103FF9D5EC.75CC05173BC4D855695B01C21B615F6A1C7A2CE8'
ffmpeg version 1.0.10 Copyright (c) 2000-2014 the FFmpeg developers
built on Jan 28 2015 13:45:02 with gcc 4.7 (Debian 4.7.2-5)
configuration: --enable-gpl --enable-nonfree --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib --enable-postproc --enable-swscale --enable-pthreads --enable-x11grab --enable-libdc1394 --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-openssl --enable-libass --enable-librtmp
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[https @ 0x9736b00] HTTP error 403 Forbidden
https://r1---sn-c5aupjvh-gpme.googlevid ... 6A1C7A2CE8: Input/output error




Only one playlists item is ok:
https://www.youtube.com/watch?v=Ovt8m3B ... 6LKazADJl-
<<

Ultimat

Serviio newbie

Posts: 11

Joined: Wed Apr 23, 2014 10:08 am

Post Thu Aug 13, 2015 11:33 am

Re: YoutubeDL

Any ideas?
<<

programmer

Streaming enthusiast

Posts: 23

Joined: Tue Nov 04, 2014 8:30 pm

Post Thu Aug 13, 2015 11:49 pm

Re: YoutubeDL

I think it's ffmpeg version, I have much more enable-xxx in mine.
<<

Ultimat

Serviio newbie

Posts: 11

Joined: Wed Apr 23, 2014 10:08 am

Post Fri Aug 14, 2015 10:36 am

Re: YoutubeDL

I rebuilt my ffmpeg and by simple manipulations detecteded that everything is OK with it.
The reason is this: the plugin first gets links using youtube-dl - everything is ok here, then ffmpeg tries to get information from these links and stumbles, because get an error HTTP error 403 Forbidden.

If I get the same links manually from youtube-dl and then manually get info with ffmpeg - all is ok, no errors about access.

I can not understand why this is so.
<<

kukuhw

Serviio newbie

Posts: 1

Joined: Sun Aug 16, 2015 12:48 am

Post Mon Aug 17, 2015 1:07 am

Re: YoutubeDL

It's a great plugin... working for me.. thx programmer
<<

Ultimat

Serviio newbie

Posts: 11

Joined: Wed Apr 23, 2014 10:08 am

Post Thu Aug 20, 2015 12:16 pm

Re: YoutubeDL

Finally, I added some values to youtube-dl params:
executeYoutube_dl(outputProcessor, "-i", "--max-downloads", maxItemsToRetrieve, "-j", resourceUrl, "--prefer-insecure", "--no-cache-dir")
Now all is ok for me.
Previous

Return to Available plugins

Who is online

Users browsing this forum: No registered users and 2 guests

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