Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for telecinco.es broken (it's worked in the past) #5764

Closed
jjarava opened this issue May 20, 2015 · 6 comments
Closed

Support for telecinco.es broken (it's worked in the past) #5764

jjarava opened this issue May 20, 2015 · 6 comments

Comments

@jjarava
Copy link

@jjarava jjarava commented May 20, 2015

Hi!

Trying to download a video from http://www.telecinco.es/elprincipe/a-carta/T02xC06-Medias-verdades_2_1989780128.html, I get the following error:

**ERROR**: m3u8 download detected but ffmpeg or avconv could not be found. Please install one.

The full "stack" running youtube-dl with -v switch is:

$ youtube-dl -v http://www.telecinco.es/elprincipe/a-carta/T02xC06-Medias-verdades_2_1989780128.html
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.telecinco.es/elprincipe/a-carta/T02xC06-Medias-verdades_2_1989780128.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.05.20
[debug] Python version 2.7.5 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[telecinco.es] T02xC06-Medias-verdades_2_1989780128: Downloading webpage
[telecinco.es] T02xC06-Medias-verdades_2_1989780128: Downloading XML
[telecinco.es] T02xC06-Medias-verdades_2_1989780128: Downloading JSON metadata
[debug] Invoking downloader on u'http://telecinco1-vh.akamaihd.net/i/geo/2015/05/19/MDSVID20150519_0128-0,,.mp4.csmil/master.m3u8?hdnea=st=1432148606~exp=1432148906~acl=/i/geo/2015/05/19/MDSVID20150519_0128-0,,.mp4.csmil/*~hmac=af36d335da66b1b8664f8efd099e786843f60e073887da94c1d960622e49bd83'
[download] Destination: T02xC06 - 'Medias verdades'-MDSVID20150519_0128.m3u8
ERROR: m3u8 download detected but ffmpeg or avconv could not be found. Please install one.
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 405, in main
    _real_main(argv)
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 395, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1486, in download
    res = self.extract_info(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 660, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 706, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1157, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1419, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1361, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 342, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 27, in real_download
    self.report_error('m3u8 download detected but ffmpeg or avconv could not be found. Please install one.')
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 155, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 527, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 489, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

Thanks a lot in advance

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 21, 2015

As what the error message says, you need to install a copy of either ffmpeg or avconv. Since the video is blocked outside Spain, I can't confirm everything works with ffmpeg/avconv. If you still have problem, post the full verbose log, too.

@jjarava
Copy link
Author

@jjarava jjarava commented May 21, 2015

Hi!

Thanks for the indication. I'm using OSX and not installed homebrew or similar. Any pointer on which to install/how?

Regards

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 21, 2015

There are Mac ffmpeg builds in this download page. Note you may need to use --ffmpeg-localtion to specify the path to ffmpeg.

@jjarava
Copy link
Author

@jjarava jjarava commented May 21, 2015

Hi!

I got ffmpeg v2.6.3 from http://evermeet.cx/ffmpeg/ffmpeg-2.6.3.7z, uncompressed it and put it in /usr/local/bin/ (the same place where youtoube-dl is) and the process seems to complete without any errors, ffmpeg is "invoked" but at the end I'm left with a .m3u8 file that I can't play... reading the output it looks like the stream/file being downloaded is being saved to the .part archive but that's nowhere to be seen:

Output #0, mp4, to 'T02xC06 - 'Medias verdades'-MDSVID20150519_0128.m3u8.part':

Full verbose output:

Mac-JJJ:test jjarava$ ls
Mac-JJJ:test jjarava$ youtube-dl --verbose http://www.telecinco.es/elprincipe/a-carta/T02xC06-Medias-verdades_2_1989780128.html
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'http://www.telecinco.es/elprincipe/a-carta/T02xC06-Medias-verdades_2_1989780128.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.05.20
[debug] Python version 2.7.5 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.6.3-tessus
[debug] Proxy map: {}
[telecinco.es] T02xC06-Medias-verdades_2_1989780128: Downloading webpage
[telecinco.es] T02xC06-Medias-verdades_2_1989780128: Downloading XML
[telecinco.es] T02xC06-Medias-verdades_2_1989780128: Downloading JSON metadata
[debug] Invoking downloader on u'http://telecinco1-vh.akamaihd.net/i/geo/2015/05/19/MDSVID20150519_0128-0,,.mp4.csmil/master.m3u8?hdnea=st=1432199907~exp=1432200207~acl=/i/geo/2015/05/19/MDSVID20150519_0128-0,,.mp4.csmil/*~hmac=1d7a8cbac8fd1670fa549bf744e421f57891a54415d39c1ed0eda06c5b5e8132'
[download] Destination: T02xC06 - 'Medias verdades'-MDSVID20150519_0128.m3u8
ffmpeg version 2.6.3-tessus Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, hls,applehttp, from 'http://telecinco1-vh.akamaihd.net/i/geo/2015/05/19/MDSVID20150519_0128-0,,.mp4.csmil/master.m3u8?hdnea=st=1432199907~exp=1432200207~acl=/i/geo/2015/05/19/MDSVID20150519_0128-0,,.mp4.csmil/*~hmac=1d7a8cbac8fd1670fa549bf744e421f57891a54415d39c1ed0eda06c5b5e8132':
  Duration: 01:13:47.00, start: 0.100511, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 488000
    Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv), 640x360 [SAR 1024:1024 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 488000
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 96 kb/s
    Metadata:
      variant_bitrate : 488000
    Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 488000
Output #0, mp4, to 'T02xC06 - 'Medias verdades'-MDSVID20150519_0128.m3u8.part':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x360 [SAR 1024:1024 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc (default)
    Metadata:
      variant_bitrate : 488000
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 96 kb/s (default)
    Metadata:
      variant_bitrate : 488000
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=110670 fps=909 q=-1.0 Lsize=  267774kB time=01:13:46.83 bitrate= 495.5kbits/s
video:213614kB audio:50594kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.349449%
[ffmpeg] 274200180 bytes
[download] 100% of 261.50MiB
Mac-JJJ:test jjarava$ ls
T02xC06 - 'Medias verdades'-MDSVID20150519_0128.m3u8
Mac-JJJ:test jjarava$ ll
total 535552
-rw-r--r--  1 jjarava  staff   261M May 21 11:20 T02xC06 - 'Medias verdades'-MDSVID20150519_0128.m3u8

When trying to open the file with VLC, it goes nuts, and if I just "double click" it, iTunes imports it as an (empty) Playlist

@jjarava
Copy link
Author

@jjarava jjarava commented May 21, 2015

I think I've found it. It's an issue with the NAME - the file is saved with the name of the originating stream, but it's really an .mp4 file.

Mac-JJJ:test jjarava$ file T02xC06\ -\ \'Medias\ verdades\'-MDSVID20150519_0128.m3u8
T02xC06 - 'Medias verdades'-MDSVID20150519_0128.m3u8: ISO Media, MPEG v4 system, version 1
Mac-JJJ:test jjarava$
Mac-JJJ:test jjarava$ mv T02xC06\ -\ \'Medias\ verdades\'-MDSVID20150519_0128.m3u8 T02xC06\ -\ \'Medias\ verdades\'-MDSVID20150519_0128.m3u8.mp4
Mac-JJJ:test jjarava$
Mac-JJJ:test jjarava$ file T02xC06\ -\ \'Medias\ verdades\'-MDSVID20150519_0128.m3u8.mp4
T02xC06 - 'Medias verdades'-MDSVID20150519_0128.m3u8.mp4: ISO Media, MPEG v4 system, version 1

Renaming to .mp4 (or adding the .mp4 extension as the case above) makes the file "playable" in both VLC and QuickTime.

I think it'd be a good idea to either have youtube-dl do the renaming automatically (that'd be best) or when the tool calls ffpmeg, at least output some final comment that the resulting file might have to be renamed.

Anyhow thanks for the help in getting this sorted!!

jaimeMF added a commit that referenced this issue May 21, 2015
It should also be possible to use Adobe HDS, but it would require more work.
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 21, 2015

In the next version, it will use the correct extension. Thanks for the report.

@jaimeMF jaimeMF closed this May 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.