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.
Can't specify output filename with -x #1969
Comments
|
It looks like you're trying to download both a video and an audio stream, and they are both attempting to download to the file "download", so there's a conflict. Try replacing
in your command with
so that the streams get downloaded to files with different extensions. |
…rove the error message (#1969) Using 'foo.mp4' shouldn't raise an error. If 'foo' is given suggest using 'foo.%(ext)s' for the template
|
@EveryDirection is right, you have to specify the extension, using |
|
Thanks guys ! But just to make it clear, with my command, I thought it would download the video with format 139, and then extract the audio as an mp3 file, @EveryDirection said it was going to download video AND audio, could you give me some explanation please ? |
|
You're right, I think that @EveryDirection meant that you were trying to write the extracted audio and the original video to the same file, that's why you saw the error message, because it's not possible. |
|
Ok I understand better now. Thank you very much |
Hi,
I can't specify a static filename when I'm extracting the audio of a video :
./youtube_dl -xcik -f 139 --restrict-filenames --audio-format mp3 -o "download" http://www.youtube.com/XXXXXX
Or maybe I'm missing an option. The error reported is
youtube_dl: error: Cannot download a video and extract audio into the same file! Use "%(ext)s" instead of u'download'