Bug 15762 - youtube-dl fails with the --embed-subs and --convert-subtitles options
Summary: youtube-dl fails with the --embed-subs and --convert-subtitles options
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA5-64-OK MGA5-32-OK advisory
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2015-04-24 07:01 CEST by Keith Bowes
Modified: 2015-11-19 23:09 CET (History)
5 users (show)

See Also:
Source RPM: youtube-dl-2015.03.03-1.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Keith Bowes 2015-04-24 07:01:37 CEST
Description of problem:
When you use either of those options, youtube-dl fails with the same errors:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 404, in main
  File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 371, in _real_main
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 341, in __init__
  File "/usr/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 648, in __init__
  File "/usr/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 34, in __init__
  File "/usr/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 90, in _determine_executables
  File "/usr/bin/youtube-dl/youtube_dl/postprocessor/ffmpeg.py", line 90, in <genexpr>
  File "/usr/bin/youtube-dl/youtube_dl/utils.py", line 1358, in get_exe_version
  File "/usr/lib64/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 14: ordinal not in range(128)

I cloned from Git and installed it and had the same problem.  However, when I installed it to use Python 3 instead of Python 2, it worked just fine.


How reproducible: Every time


Steps to Reproduce:
1. Type youtube-dl --embed-subs <URL>
2. Watch youtube-dl fail

Reproducible: 

Steps to Reproduce:
Comment 1 Rémi Verschelde 2015-04-24 09:14:20 CEST
There seems to be many upstream bug reports about such issues: https://github.com/rg3/youtube-dl/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+unicodedecodeerror

I guess we can try to package youtube-dl for Python 3 if it's working fine.

Assignee: bugsquad => geiger.david68210

Comment 2 David GEIGER 2015-04-26 07:37:11 CEST
After some tests, on my Cauldron and also on my mga4, with some youtube URLs I can't reproduce this bug.

$ youtube-dl --embed-subs https://www.youtube.com/watch?v=QLoUH6LN9lk
[youtube] QLoUH6LN9lk: Downloading webpage
[youtube] QLoUH6LN9lk: Extracting video information
[youtube] QLoUH6LN9lk: Downloading DASH manifest
[download] Destination: Showtek - We Like To Party (Original Mix)-QLoUH6LN9lk.mp4
[download] 100% of 45.29MiB in 01:33
[ffmpeg] There aren't any subtitles to embed
$


Is someone else can reproduce this bug?

Keith Bowes have you installed ffmpeg of Tainted repo or Core repo?

It seems to be a ffmpeg issue and not from youtube-dl.
Comment 3 Barry Jackson 2015-04-26 10:38:02 CEST
Works for me in Cauldron too.

Keith, what does ffmpeg report? As in just the command "ffmpeg" as normal user.

CC: (none) => zen25000

Samuel Verschelde 2015-06-06 02:37:56 CEST

Keywords: (none) => NEEDINFO

Comment 4 David GEIGER 2015-07-10 08:53:47 CEST
Just committed and submitted a new version of youtube-dl for Cauldron (youtube-dl-2015.07.07-1.mga6).

And now youtube-dl uses python 3 environment by default.
Comment 5 David GEIGER 2015-07-10 09:30:58 CEST
for those who want to switch youtube-dl on python 3 you can simply use the following command as root:

sed -i -e 's,#!/usr/bin/env python,#!/usr/bin/env python3,' /usr/bin/youtube-dl


---------------------------------------------------------
Before:

]$ youtube-dl --verbose 
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.03.03
[debug] Python version 2.7.9 - Linux-3.19.8-desktop-3.mga5-x86_64-with-mandrake-5-Official
[debug] exe versions: ffmpeg 2.4.9, ffprobe 2.4.9, rtmpdump 2.4
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]


---------------------------------------------------------
After:

$ youtube-dl --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.03.03
[debug] Python version 3.4.3 - Linux-3.19.8-desktop-3.mga5-x86_64-with-mageia-5-Official
[debug] exe versions: ffmpeg 2.4.9, ffprobe 2.4.9, rtmpdump 2.4
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]
Comment 6 David GEIGER 2015-11-11 21:50:52 CET
Assigning to QA,

Advisory:
=============================
This updates youtube-dl to a version which is supported upstream
and also fix a lot of upstream bugs.

Also youtube-dl script is now ported to use python3 as default instead
of python2 and should fix issue reported as per first comment.

=============================


Packages in 5/core/updates_testing:
========================
youtube-dl-2015.10.24-1.mga5.noarch.rpm

Source RPM: 
========================
youtube-dl-2015.10.24-1.mga5.src.rpm

Assignee: geiger.david68210 => qa-bugs

David Walser 2015-11-12 21:07:28 CET

Keywords: NEEDINFO => (none)
Version: Cauldron => 5

Comment 7 Len Lawrence 2015-11-15 00:59:01 CET
Looks like it could be an ffmpeg bug.  Tainted version in use here and I cannot reproduce the bug.
$ urpmi ffmpeg
Package ffmpeg-2.4.9-1.mga5.tainted.x86_64 is already installed

$ youtube-dl --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.03.03
[debug] Python version 2.7.9 - Linux-4.1.12-desktop-1.mga5-x86_64-with-mandrake-5-Official
[debug] exe versions: ffmpeg 2.4.9, ffprobe 2.4.9, rtmpdump 2.4
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]

Before the update:
$ youtube-dl --embed-subs https://www.youtube.com/watch?v=x9IGyidtfGI
[youtube] x9IGyidtfGI: Downloading webpage
[youtube] x9IGyidtfGI: Extracting video information
[youtube] x9IGyidtfGI: Downloading DASH manifest
[download] Destination: President Obama delivers Eulogy â FULL VIDEO (C-SPAN)-x9IGyidtfGI.mp4
[download] 100% of 579.90MiB in 01:54
[ffmpeg] There aren't any subtitles to embed

installing youtube-dl-2015.10.24-1.mga5.noarch.rpm from /var/cache/urpmi/rpms  
      1/1: removing youtube-dl-2015.03.03-1.mga5.noarch

After the update:
$ youtube-dl --embed-subs https://www.youtube.com/watch?v=d7YWXIUi6YQ
[youtube] d7YWXIUi6YQ: Downloading webpage
[youtube] d7YWXIUi6YQ: Downloading video info webpage
[youtube] d7YWXIUi6YQ: Extracting video information
[youtube] d7YWXIUi6YQ: Downloading DASH manifest
[youtube] d7YWXIUi6YQ: Downloading DASH manifest
[download] Destination: Wish You Were Here - 1987 - (Eng. Subtitles)-d7YWXIUi6YQ.f134.mp4
[download] 100% of 166.49MiB in 00:21
[download] Destination: Wish You Were Here - 1987 - (Eng. Subtitles)-d7YWXIUi6YQ.f141.m4a
[download] 100% of 160.86MiB in 00:21
[ffmpeg] Merging formats into "Wish You Were Here - 1987 - (Eng. Subtitles)-d7YWXIUi6YQ.mp4"
Deleting original file Wish You Were Here - 1987 - (Eng. Subtitles)-d7YWXIUi6YQ.f134.mp4 (pass -k to keep)
Deleting original file Wish You Were Here - 1987 - (Eng. Subtitles)-d7YWXIUi6YQ.f141.m4a (pass -k to keep)
[ffmpeg] There aren't any subtitles to embed

Note that subtitles appeared on screen in firefox and:
$ vlc "Wish You Were Here - 1987 - (Eng. Subtitles)-d7YWXIUi6YQ.mp4"

Subtitles rendered in vlc as well.
Could not see the -k option in man ffmpeg or ffmpeg --help.

CC: (none) => tarazed25

Comment 8 Len Lawrence 2015-11-15 01:44:55 CET
On the other hand, using David's link in comment 2:

$ youtube-dl --embed-subs https://www.youtube.com/watch?v=QLoUH6LN9lk
[youtube] QLoUH6LN9lk: Downloading webpage
[youtube] QLoUH6LN9lk: Downloading video info webpage
[youtube] QLoUH6LN9lk: Extracting video information
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
    video_id, player_url, s
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by ExtractorError("Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Comment 9 Len Lawrence 2015-11-15 01:47:28 CET
Note that the "We like to party" video was prefaced by an advert which may well be confusing things because it will have a different source.
Comment 10 Len Lawrence 2015-11-15 01:55:27 CET
Let's try that again, with quotes.
$ youtube-dl --verbose --embed-subs "https://www.youtube.com/watch?v=QLoUH6LN9lk"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--embed-subs', 'https://www.youtube.com/watch?v=QLoUH6LN9lk']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.10.24
[debug] Python version 3.4.3 - Linux-4.1.12-desktop-1.mga5-x86_64-with-mageia-5-Official
[debug] exe versions: ffmpeg 2.4.9, ffprobe 2.4.9, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] QLoUH6LN9lk: Downloading webpage
[youtube] QLoUH6LN9lk: Downloading video info webpage
[youtube] QLoUH6LN9lk: Extracting video information
WARNING: unable to extract html5 player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] {22} signature length 41.40, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
    video_id, player_url, s
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by ExtractorError("Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
    video_id, player_url, s
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
    video_id, player_url, s
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 661, in extract_info
    ie_result = ie.extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 291, in extract
    return self._real_extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1345, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 827, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
    video_id, player_url, s
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by ExtractorError("Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Comment 11 David GEIGER 2015-11-15 06:49:17 CET
@ Len Lawrence:

Strange! here it works fine

$ youtube-dl --verbose --embed-subs "https://www.youtube.com/watch?v=QLoUH6LN9lk"[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--embed-subs', 'https://www.youtube.com/watch?v=QLoUH6LN9lk']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.10.24
[debug] Python version 3.4.3 - Linux-4.1.12-desktop-1.mga5-x86_64-with-mageia-5-Official
[debug] exe versions: ffmpeg 2.4.9, ffprobe 2.4.9, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] QLoUH6LN9lk: Downloading webpage
[youtube] QLoUH6LN9lk: Downloading video info webpage
[youtube] QLoUH6LN9lk: Extracting video information
[youtube] QLoUH6LN9lk: Downloading DASH manifest
[youtube] QLoUH6LN9lk: Downloading DASH manifest
[debug] Invoking downloader on 'https://r18---sn-4g57kne6.googlevideo.com/videoplayback?id=40ba141fa2cdf659&itag=136&source=youtube&requiressl=yes&mm=31&mn=sn-4g57kne6&nh=IgpwcjAzLmZyYTE1KgkxMjcuMC4wLjE&pl=16&ms=au&mv=m&gcr=fr&ratebypass=yes&mime=video/mp4&gir=yes&clen=37526490&lmt=1429082507205077&dur=288.320&key=dg_yt0&sver=3&mt=1447566286&signature=31DF6845B2199557978DAC5E53FA22B97E96C10D.31ADEBCBEA58656F01388BECD124ADB1B3933246&fexp=9408710,9412777,9412927,9413279,9414764,9416126,9417683,9418401,9420311,9420453,9421354,9421606,9422457,9422596,9422618,9423037,9423419,9423488,9423643,9423662,9423667,9423792,9424056&upn=bu4ITG_UtSc&ip=109.221.185.43&ipbits=0&expire=1447587948&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,nh,pl,ms,mv,gcr,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: Showtek - We Like To Party (Original Mix)-QLoUH6LN9lk.f136.mp4
[download] 100% of 35.79MiB in 01:16
[debug] Invoking downloader on 'https://r18---sn-4g57kne6.googlevideo.com/videoplayback?id=40ba141fa2cdf659&itag=141&source=youtube&requiressl=yes&mm=31&mn=sn-4g57kne6&nh=IgpwcjAzLmZyYTE1KgkxMjcuMC4wLjE&pl=16&ms=au&mv=m&gcr=fr&ratebypass=yes&mime=audio/mp4&gir=yes&clen=9195150&lmt=1429082273731885&dur=288.391&key=dg_yt0&sver=3&mt=1447566286&signature=17AF1F6916DD6A5B896E1CBC1CD78BADEB9289AB.53C1386EA030E444A88BB7B68E83B7D4AB71A360&fexp=9408710,9412777,9412927,9413279,9414764,9416126,9417683,9418401,9420311,9420453,9421354,9421606,9422457,9422596,9422618,9423037,9423419,9423488,9423643,9423662,9423667,9423792,9424056&upn=bu4ITG_UtSc&ip=109.221.185.43&ipbits=0&expire=1447587948&sparams=ip,ipbits,expire,id,itag,source,requiressl,mm,mn,nh,pl,ms,mv,gcr,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: Showtek - We Like To Party (Original Mix)-QLoUH6LN9lk.f141.m4a
[download] 100% of 8.77MiB in 00:18
[ffmpeg] Merging formats into "Showtek - We Like To Party (Original Mix)-QLoUH6LN9lk.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Showtek - We Like To Party (Original Mix)-QLoUH6LN9lk.f136.mp4' -i 'file:Showtek - We Like To Party (Original Mix)-QLoUH6LN9lk.f141.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:Showtek - We Like To Party (Original Mix)-QLoUH6LN9lk.temp.mp4'
Deleting original file Showtek - We Like To Party (Original Mix)-QLoUH6LN9lk.f136.mp4 (pass -k to keep)
Deleting original file Showtek - We Like To Party (Original Mix)-QLoUH6LN9lk.f141.m4a (pass -k to keep)
[ffmpeg] There aren't any subtitles to embed

CC: (none) => geiger.david68210

Comment 12 Len Lawrence 2015-11-15 10:01:41 CET
On that basis it should be OK for 64-bit.  There must be something else in my system which does not match yours.  The advertisement is not one which can be stopped; it runs for the first 30 seconds.  HTML5 player?

I tried Keepvid on Firefox 

http://www.keepvid.com/?url=https%3A//www.youtube.com/watch%3Fv%3DQLoUH6LN9lk

and was able to download a selected MPEG 4 file without the leading ad which is obviously not integral to the movie.  A configuration problem at this end then.  We should let it go.
Comment 13 claire robinson 2015-11-16 10:20:28 CET
Failing here too David. The issue seems to be the html5 player but it does say it's a bug. (WARNING: unable to extract html5 player)

There are several recent bug reports about this but the devs answer that the youtube-dl version is outdated, most recent report was with a 2015-11-02 version. This build is from 2015-10-24 so I think we need a more recent youtube-dl.



$ youtube-dl --verbose --embed-subs "https://www.youtube.com/watch?v=QLoUH6LN9lk"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', '--embed-subs', 'https://www.youtube.com/watch?v=QLoUH6LN9lk']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.10.24
[debug] Python version 3.4.3 - Linux-4.1.12-desktop-1.mga5-x86_64-with-mageia-5-Official
[debug] exe versions: ffmpeg 2.4.9, ffprobe 2.4.9, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] QLoUH6LN9lk: Downloading webpage
[youtube] QLoUH6LN9lk: Downloading video info webpage
[youtube] QLoUH6LN9lk: Extracting video information
WARNING: unable to extract html5 player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] {22} signature length 41.40, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
    video_id, player_url, s
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by ExtractorError("Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
    video_id, player_url, s
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
    video_id, player_url, s
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 661, in extract_info
    ie_result = ie.extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 291, in extract
    return self._real_extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1345, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 827, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
    video_id, player_url, s
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
    raise ExtractorError('Cannot identify player %r' % player_url)
youtube_dl.utils.ExtractorError: Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by ExtractorError("Cannot identify player 'https://s.ytimg.com/yts/jsbin/player-en_US-vflJENbn4/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Whiteboard: (none) => feedback

Comment 14 David GEIGER 2015-11-16 10:29:25 CET
So ok!

Would it be possible to test first youtube-dl from Cauldron to ensure it works with a more recent upstream version (2015.11.10)?

# urpmi ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64/media/core/release/youtube-dl-2015.11.10-1.mga6.noarch.rpm

If tests are ok I can update to latest 21015.11.13 release.
Comment 15 claire robinson 2015-11-16 10:33:28 CET
Confirmed that cauldron version does work ok.
Comment 16 David GEIGER 2015-11-16 10:46:29 CET
latest upstream 2015.11.15 release will upload soon for mga5.
Comment 17 claire robinson 2015-11-16 10:49:05 CET
Thanks David.

Whiteboard: feedback => (none)

Comment 18 David GEIGER 2015-11-16 11:58:28 CET

Packages in 5/core/updates_testing:
========================
youtube-dl-2015.11.15-1.mga5.noarch.rpm

Source RPM: 
========================
youtube-dl-2015.11.15-1.mga5.src.rpm
Comment 19 Len Lawrence 2015-11-17 23:05:40 CET
mga5  x86_64  Mate

# urpmi --media "Updates Testing" youtube-dl
    $MIRRORLIST: media/core/updates_testing/youtube-dl-2015.11.15-1.mga5.noarch.rpm

This time 

$ youtube-dl --verbose --embed-subs "https://www.youtube.com/watch?v=QLoUH6LN9lk"

found the html5 player and downloaded the file OK with the usual message at the end:
[ffmpeg] There aren't any subtitles to embed

Played fine in vlc.

Whiteboard: (none) => MGA5-64-OK

Len Lawrence 2015-11-18 19:05:52 CET

Whiteboard: MGA5-64-OK => MGA5-64-OK MGA5-32-OK

Comment 20 Len Lawrence 2015-11-18 19:07:19 CET
That last test was in a vbox.  Validating the update.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Dave Hodgins 2015-11-19 17:46:20 CET

CC: (none) => davidwhodgins
Whiteboard: MGA5-64-OK MGA5-32-OK => MGA5-64-OK MGA5-32-OK advisory

Comment 21 Mageia Robot 2015-11-19 23:09:04 CET
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0183.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.