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

FFMPEG and 1080p video file not playable. #4026

Closed
AintSkeered opened this issue Oct 24, 2014 · 7 comments
Closed

FFMPEG and 1080p video file not playable. #4026

AintSkeered opened this issue Oct 24, 2014 · 7 comments

Comments

@AintSkeered
Copy link

@AintSkeered AintSkeered commented Oct 24, 2014

I keep having a problem when I download a 1080p video file and the highest audio format, but ffmpeg can't can't mix them together, because the output file is apparently screwed up. If I try to play the raw video file, it won't work. On VLC, it just won't play, and on my system's default video player, it just crashes. BTW I am on Linux Mint 16. The verbose always says it's fine, but I can do it again if you would like.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 24, 2014

Sorry, this bug report is missing helpful information. For once, what is your command-line? Please post the full output you get when you run youtube-dl with the -v option. Also, can you post the md5sum of the downloaded file?

@AintSkeered
Copy link
Author

@AintSkeered AintSkeered commented Oct 24, 2014

Here's the information. NOTE: the md5sum is of the raw video file. I can do a md5sum on the audio file and output file.

md5sum= b03e3c29869540e8de7f0cd144b38750

Verbose:

youtube-dl -f 137+141 https://www.youtube.com/watch?v=6v2L2UGZJAM --keep-video --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-f', '137+141', 'https://www.youtube.com/watch?v=6v2L2UGZJAM', '--keep-video', '--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.10.18
[debug] Python version 2.7.5+ - Linux-3.11.0-12-generic-i686-with-LinuxMint-16-petra
[debug] Proxy map: {}
[youtube] Setting language
[youtube] Confirming age
[youtube] 6v2L2UGZJAM: Downloading webpage
[youtube] 6v2L2UGZJAM: Downloading video info webpage
[youtube] 6v2L2UGZJAM: Extracting video information
[youtube] 6v2L2UGZJAM: Downloading DASH manifest
[debug] Invoking downloader on 'https://r12---sn-vgqsen7z.googlevideo.com/videoplayback?id=eafd8bd941992403&itag=137&source=youtube&requiressl=yes&mv=m&mm=31&ms=au&ratebypass=yes&mime=video/mp4&gir=yes&clen=309910024&lmt=1398474231711650&dur=808.409&mt=1414180023&signature=7FDD7B7B4579E4B8837EB84ADDE0C3174DF94C77.1F63A3A77BCB6A512F2B80D2561A2BAF80263D40&upn=Ib4rVq7G9uY&fexp=912109,922242,924639,927622,930666,930672,931983,932404,935666,938691,947209,948703,952302,952901,957103&key=dg_yt0&sver=3&ip=76.238.214.120&ipbits=0&expire=1414201712&sparams=ip,ipbits,expire,id,itag,source,requiressl,mv,mm,ms,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: ► Planet Earth - Amazing nature scenery (1080p HD)-6v2L2UGZJAM.f137.mp4
[download] 100% of 295.55MiB in 11:07
[debug] Invoking downloader on 'https://r12---sn-vgqsen7z.googlevideo.com/videoplayback?id=eafd8bd941992403&itag=141&source=youtube&requiressl=yes&mv=m&mm=31&ms=au&ratebypass=yes&mime=audio/mp4&gir=yes&clen=25777098&lmt=1398474097208166&dur=808.495&mt=1414180023&signature=58BB4C5C5C15C2659CD433D9FED421F4014381F9.7AFB0A1B44A0F496F085806774F12499A1B45224&upn=Ib4rVq7G9uY&fexp=912109,922242,924639,927622,930666,930672,931983,932404,935666,938691,947209,948703,952302,952901,957103&key=dg_yt0&sver=3&ip=76.238.214.120&ipbits=0&expire=1414201712&sparams=ip,ipbits,expire,id,itag,source,requiressl,mv,mm,ms,ratebypass,mime,gir,clen,lmt,dur'
[download] Destination: ► Planet Earth - Amazing nature scenery (1080p HD)-6v2L2UGZJAM.f141.m4a
[download] 100% of 24.58MiB in 00:55
[ffmpeg] Merging formats into "► Planet Earth - Amazing nature scenery (1080p HD)-6v2L2UGZJAM.mp4"
[debug] ffmpeg command line: avconv -y -i '► Planet Earth - Amazing nature scenery (1080p HD)-6v2L2UGZJAM.f137.mp4' -i '► Planet Earth - Amazing nature scenery (1080p HD)-6v2L2UGZJAM.f141.m4a' -c copy -map 0:v:0 -map 1:a:0 -shortest '► Planet Earth - Amazing nature scenery (1080p HD)-6v2L2UGZJAM.mp4'
@phihag
Copy link
Contributor

@phihag phihag commented Oct 24, 2014

Mmm, maybe this is a problem with avconv? What does avconv -version output on your system?

Can you play this video? That works fine for me with Kaffeine, vlc, mplayer and chromium.

@AintSkeered
Copy link
Author

@AintSkeered AintSkeered commented Oct 25, 2014

avconv version= ffmpeg version 0.10.12-7:0.10.12-1~saucy1
Yes, it did work.
What did you do? Was there something wrong with the md5sum or video? I would like to know for future Full HD tests.
I also noticed the file size was remarkably 97 MB rather than 350MB.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 25, 2014

I just invoked the command-line you gave on my systems. For YouTube, the md5sum is not of much help, since it varies regularly. You are right, the final file I'm generating is way too small. Let me have a look of what's afoot here.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 25, 2014

Okay, I got more data:

  • ffmpeg-1.0 and ffmpeg-1.2 work correctly (I could not reproduce the shortening anymore)
  • avconv 0.8.13 (Mint 16) fails horribly with or without -shortest
  • avconv 9.11 (Mint 17) works.

So this is caused by an outdated version of ffmpeg/avconv. I think we should detect the ffmpeg/avconv version and warn accordingly.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 26, 2014

Thank you for the report. In youtube-dl version 2014.10.26 and newer we now emit a warning that the version of ffmpeg is too old.

@phihag phihag closed this in 4884474 Oct 26, 2014
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
2 participants
You can’t perform that action at this time.