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

RTVE.es Dowload "broken" - M3U playlist saved as MP4 #6073

Open
jjarava opened this issue Jun 24, 2015 · 7 comments
Open

RTVE.es Dowload "broken" - M3U playlist saved as MP4 #6073

jjarava opened this issue Jun 24, 2015 · 7 comments

Comments

@jjarava
Copy link

@jjarava jjarava commented Jun 24, 2015

Hi!

Trying to download a video from RTVE.es (from a series I've previously downloaded fine) using the latest version (2015.06.15)... the download seems to work, but the output is a 312 bytes file (!) that file identifies as:

jjarava$ file "Águila Roja - T7- Capítulo 88-3151116.mp4"
Águila Roja - T7- Capítulo 88-3151116.mp4: M3U playlist text

The full debug output is:

jjarava$ youtube-dl -v http://www.rtve.es/alacarta/videos/aguila-roja/aguila-roja-t7-capitulo-88/3151116/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.rtve.es/alacarta/videos/aguila-roja/aguila-roja-t7-capitulo-88/3151116/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.15
[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: {}
[rtve.es:alacarta] Fetching manager info
[rtve.es:alacarta] 3151116: Downloading JSON metadata
[rtve.es:alacarta] 3151116: Downloading url information
[rtve.es:alacarta] 3151116: Getting video url
[debug] Invoking downloader on u'http://mvod1.akcdn.rtve.es/resources/TE_NGVA/mp4/2/3/1433187668632.mp4?primaryToken=1435177165_37ec06869264f04807a6e209524d0bbd'
[download] Destination: Águila Roja - T7- Capítulo 88-3151116.mp4
[download] 100% of 312.00B in 00:00

Thanks!

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 24, 2015

Run it with --write-pages and post here *.dump files and the downloaded file.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 24, 2015

The video can't be played on iOS, it gets a few 403 erors when trying to download the sub manifests, the full manifest looks like:

#EXTM3U
#EXT-X-VERSION:1
## Created with Unified Streaming Platform(version=1.7.10)
#EXT-X-STREAM-INF:BANDWIDTH=1684150,CODECS="mp4a.40.2,avc1.100.41",RESOLUTION=1024x576
1433187668632-audio_eng=63821-video_eng=1525000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=67650,CODECS="mp4a.40.2"
1433187668632-audio_eng=63821.m3u8
@jjarava
Copy link
Author

@jjarava jjarava commented Jun 25, 2015

Hi!

Just updated to the latest version (2015.06.25) and the result is the same:

jjarava$ youtube-dl -v http://www.rtve.es/alacarta/videos/aguila-roja/aguila-roja-t7-capitulo-88/3151116/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.rtve.es/alacarta/videos/aguila-roja/aguila-roja-t7-capitulo-88/3151116/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.25
[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: {}
[rtve.es:alacarta] Fetching manager info
[rtve.es:alacarta] 3151116: Downloading JSON metadata
[rtve.es:alacarta] 3151116: Downloading url information
[rtve.es:alacarta] 3151116: Getting video url
[debug] Invoking downloader on u'http://mvod1.akcdn.rtve.es/resources/TE_NGVA/mp4/2/3/1433187668632.mp4?primaryToken=1435223518_6dba1c5c4edfe5192476c3566298f2ba'
[download] Destination: Águila Roja - T7- Capítulo 88-3151116.mp4
[download] 100% of 312.00B in 00:00

What is more odd, when running with --write-pages as requested in #6073 (comment), the file actually starts downloading!!:

jjarava$ youtube-dl -v --write-pages http://www.rtve.es/alacarta/videos/aguila-roja/aguila-roja-t7-capitulo-88/3151116/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'--write-pages', u'http://www.rtve.es/alacarta/videos/aguila-roja/aguila-roja-t7-capitulo-88/3151116/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.06.25
[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: {}
[rtve.es:alacarta] Fetching manager info
[rtve.es:alacarta] Saving request to None_http_-_www.rtve.es_odin_loki_TW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0OyBydjoxMC4wKSBHZWNrby8yMDE1MDEwMSBGaXJlZm94LzIwLjAgKENocm9tZSk=.dump
[rtve.es:alacarta] 3151116: Downloading JSON metadata
[rtve.es:alacarta] Saving request to 3151116_http_-_www.rtve.es_api_videos_3151116_config_alacarta_videos.json.dump
[rtve.es:alacarta] 3151116: Downloading url information
[rtve.es:alacarta] Saving request to 3151116_http_-_www.rtve.es_ztnr_movil_thumbnail_banebdyede_videos_3151116.png.dump
[rtve.es:alacarta] 3151116: Getting video url
[rtve.es:alacarta] Saving request to 3151116_http_-_flash1.akamaihd.multimedia.cdn.rtve.es_auth_resources_TE_NGVA_mp4_2_3_1433187668632.mp4.dump
[debug] Invoking downloader on u'http://mvod1.akcdn.rtve.es/resources/TE_NGVA/mp4/2/3/1433187668632.mp4?primaryToken=1435223854_8a45b29d6fb74a922030aaefc5daf2e6'
[download] Destination: Águila Roja - T7- Capítulo 88-3151116.mp4
[download]   1.4% of 1.01GiB at 339.16KiB/s ETA 51:24

I'm letting it run and will update when the process finishes to see if I really get the proper file downloaded, but as it's going to take a while (the speed has gone down) in the meantime I'm attaching here the files as requested

... Well, not really here as I've found that Github doesn't let you attach files to Issues.

I've created a GIST to hold the files: https://gist.github.com/jjarava/aa2f40294b18dda3d750

If you prefer to have direct links to the files, they are:

File Name Gist Link Raw Link
3151116_http_-_flash1.akamaihd.multimedia.cdn.rtve.es_auth_resources_TE_NGVA_mp4_2_3_1433187668632.mp4.dump Gist Raw
3151116_http_-_www.rtve.es_api_videos_3151116_config_alacarta_videos.json.dump Gist Raw
3151116_http_-_www.rtve.es_ztnr_movil_thumbnail_banebdyede_videos_3151116.png.dump Gist Raw
None_http_-_www.rtve.es_odin_loki_TW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0OyBydjoxMC4wKSBHZWNrby8yMDE1MDEwMSBGaXJlZm94LzIwLjAgKENocm9tZSk=.dump Gist Raw

Hope this helps!!

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 25, 2015

Yes, sometimes I also get the real mp4 video file (you can play it while downloading with mpv or mplayer). But I would doubt it's actually a 1.01GiB file since for others video we have to modify the url because they are reported as 2GiB files (which is completely wrong).

@jjarava
Copy link
Author

@jjarava jjarava commented Jun 25, 2015

I wouldn't be too surprised to find its a 1 GB file - the episode is about 1 hour long and others from the series have been more or less that size.

I'll report the final size when I can complete the download (I've had to interrupt it). BTW - once interrupted I've tried to run the same command again but instead of resuming as has happened other times, I got a message that the destination had already been downloaded. Deleting the file and .dmp has allowed it to run again

Anyhow I'll update when the process finishes.

@jjarava
Copy link
Author

@jjarava jjarava commented Jun 25, 2015

The download finished and instead of the 312 bytes file I have a real MP4 that looks to be "the real thing"

To add more surprise to the mix, I've tried downloading other chapters from the same series from the same server:

and both download fine!
And to make it even more strange, I've tried downloading the "offending" chapter again and the download seems to be working fine...

Strange things..

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 25, 2015

Well, I'm getting the m3u8 file again. I would consider it a bug on their side.

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.