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.15k stars 10.02k forks source link

youtube.com, problem with video 1080p #1773

Closed astronom84 closed 10 years ago

astronom84 commented 10 years ago

Hi all When i try to download this video: http://www.youtube.com/watch?v=s3XW_NOYrTY with quality 1080p (-f 137), file cannot be played with any video player.

console output:

~$ youtube-dl -v -f 137 s3XW_NOYrTY
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '-f', '137', 's3XW_NOYrTY']
[debug] youtube-dl version 2013.11.15.1
[debug] Python version 2.7.3 - Linux-3.2.0-4-amd64-x86_64-with-debian-7.2
[debug] Proxy map: {}
[youtube] Setting language
[youtube] s3XW_NOYrTY: Downloading video webpage
[youtube] s3XW_NOYrTY: Downloading video info webpage
[youtube] s3XW_NOYrTY: Extracting video information
[download] Destination: Kylie Minogue - Agent Provocateur (Commercial 2001) [1080 HD]-s3XW_NOYrTY.mp4
[download] 100% of 35.05MiB in 00:26

File size must be equal to 38 Mb

xanadu commented 10 years ago

Try ffplay

insideTheFlux commented 10 years ago

If you use '-F url' you will notice that it is listed as (DASH Video). Google's new way for youtube. You must merge both Dash Video and Dash Audio using ffmpeg to get a workable mp4 file.

jaimeMF commented 10 years ago

As already said, you also have to download the DASH audio format, (for example youtube-dl -v -f 141 s3XW_NOYrTY will download a m4a file), then you'll need to join them with ffmpeg: ffmpeg -i VIDEO_FILE.mp4 -i AUDIO_FILE.m4a -c copy final.mp4. We're planning to do all of this automatically (see #1612).

duduindo commented 10 years ago

mencoder -oac copy -ovc copy -fafmttag 0x706d -of lavf -lavfopts format=mp4 "VIDEO_youtube.mp4" -audiofile "AUDIO_youtube.m4a" -o VIDEO_FULL.mp4

Brasil! :dancer:

jaimeMF commented 10 years ago

@duduindo With the last version of youtube-dl, you can run youtube-dl -f bestvideo+bestaudio URL and it will use ffmpeg or avconv to merge the two files.

duduindo commented 10 years ago

Obrigado Jaime. Daqui uns dias vou testar com a nova versão. Obrigado! (Thanks!)