Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
--extract-audio doesn't seem to work. #87
Comments
|
I don't know what could be wrong. youtube-dl is supposed not to delete the video if ffprobe or ffmpeg fail to run or exit with error. I'd try the following:
Take note of the ffmpeg output and its exit status, so we can investigate what goes wrong in the process. |
|
Hi |
|
If that works, youtube-dl should work too, because that's the exact same command youtube-dl tries to run when extracting the audio from the video file. I just tried locally here, and I get:
|
|
Yes, I also have the file 2bQZ6l_cq5Y.aac. |
|
I'll think about it a bit more and maybe I'll post some special version of the program to get more information. In the mean time, I suspect a very weird problem. If ffmpeg failed to run for some reason, the file wouldn't even be created. The fact that it exists and has zero bytes signals a very very strange problem. I don't know what could be wrong right now. |
|
This version will print the ffmpeg command, and will not redirect its output, so you can see what ffmpeg is doing: |
|
OK thanks. |
|
I've pasted the terminal output. Here is the output:- http://pastebin.com/aPpRxPc3 |
|
I think you're confused. As you did not quote the URL, the shell interpreted the command as something to be launched in the background. The process probably finished, but you don't see the prompt appear. |
|
About your previous question, no, my AAC file is not empty. I pasted the "ls -l" in a comment above. |
|
"As you did not quote the URL" My command was:- The URL is included there:- What do you mean? |
|
I mean to put the URL in quotes, as in:
|
|
Hi My excuse is that when I do normal downloads it's not necessary to use quotes. ;-) Thanks for your patience. |
|
No problem, I'm closing the issue since it's a non-issue. |
Hi
I've tried using the --extract-audio option.
What happens is a new file is created 'whatever.aac' but it contains 0 bytes and the downloaded flv file gets deleted.
Am I using it correctly?
youtube-dl --extract-audio http://www.youtube.com/watch?v=2bQZ6l_cq5Y&feature=feedrec_grec_index
Version is 2011.02.25c
Ubuntu 9.10
FFmpeg version git-2bbec1e