ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.36k stars 10.04k forks source link

Partial audio (10 seconds only) from a video of 10 minutes #22804

Closed guy-teube closed 5 years ago

guy-teube commented 5 years ago

Checklist

Verbose log

guy@ubuntu:~$ youtube-dl -v  https://www.france.tv/france-3/lego-ninjago/saison-3/1096127-ninjago.html
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.france.tv/france-3/lego-ninjago/saison-3/1096127-ninjago.html']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.10.22
[debug] Python version 2.7.15+ (CPython) - Linux-4.15.0-65-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[FranceTVSite] 1096127-ninjago: Downloading webpage
[FranceTV] af3cecf6-4046-4daa-bda9-5b5fa8881af7: Downloading video JSON
[FranceTV] af3cecf6-4046-4daa-bda9-5b5fa8881af7: Downloading geo restriction info
[FranceTV] af3cecf6-4046-4daa-bda9-5b5fa8881af7: Downloading signed hls_v5_os manifest URL
[FranceTV] af3cecf6-4046-4daa-bda9-5b5fa8881af7: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://cloudreplayfrancetv.akamaized.net/bf322094cdad5/216492931_france-domtom_TA.ism/ZXhwPTE1NzE3ODEwMjJ+YWNsPSUyZmJmMzIyMDk0Y2RhZDUlMmYyMTY0OTI5MzFfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGZlZmFiMWQwNDRiNWIwN2FlODkxM2ZhNjM1MTc3OTRjOTU5YjYxNjcwOWUyYWJlZDA0OWU4NTliYWJkZThiZA==/216492931_france-domtom_TA-video=1404000.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 64
[download] Destination: Ninjago-af3cecf6-4046-4daa-bda9-5b5fa8881af7.fhls_v5_os-1554.mp4
[download] 100% of 109.06MiB in 00:16
[debug] Invoking downloader on u'https://cloudreplayfrancetv.akamaized.net/bf322094cdad5/216492931_france-domtom_TA.ism/ZXhwPTE1NzE3ODEwMjJ+YWNsPSUyZmJmMzIyMDk0Y2RhZDUlMmYyMTY0OTI5MzFfZnJhbmNlLWRvbXRvbV9UQS5pc20qfmhtYWM9MGZlZmFiMWQwNDRiNWIwN2FlODkxM2ZhNjM1MTc3OTRjOTU5YjYxNjcwOWUyYWJlZDA0OWU4NTliYWJkZThiZA==/216492931_france-domtom_TA-audio_fre=64000.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 64
[download] Destination: Ninjago-af3cecf6-4046-4daa-bda9-5b5fa8881af7.fhls_v5_os-audio-aacl-64-Audio_Français.mp4
[download] 100% of 6.48MiB in 00:07
[ffmpeg] Merging formats into "Ninjago-af3cecf6-4046-4daa-bda9-5b5fa8881af7.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Ninjago-af3cecf6-4046-4daa-bda9-5b5fa8881af7.fhls_v5_os-1554.mp4' -i 'file:Ninjago-af3cecf6-4046-4daa-bda9-5b5fa8881af7.fhls_v5_os-audio-aacl-64-Audio_Français.mp4' -c copy -map '0:v:0' -map '1:a:0' 'file:Ninjago-af3cecf6-4046-4daa-bda9-5b5fa8881af7.temp.mp4'
Deleting original file Ninjago-af3cecf6-4046-4daa-bda9-5b5fa8881af7.fhls_v5_os-1554.mp4 (pass -k to keep)
Deleting original file Ninjago-af3cecf6-4046-4daa-bda9-5b5fa8881af7.fhls_v5_os-audio-aacl-64-Audio_Français.mp4 (pass -k to keep)
guy@ubuntu:~$

Description

I try to download a video from replay service of France.tv (french public TV). Here's an example : https://www.france.tv/france-3/lego-ninjago/saison-3/1096127-ninjago.html

It worked welll in the past. Now, I've got the video. But I have only 10 seconds of the audio, since 0:00:11 there is no sound. In the streaming video, there is sound for the whole video. If I try to download only the audio (with the -x parameter), the m4a file is only 10 second.

zag-adka commented 5 years ago

It is the same problem that I've described in issue #22674