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

ERROR: batch file cannot be read #18678

Closed
LemonHeadOnGit opened this issue Dec 27, 2018 · 2 comments
Closed

ERROR: batch file cannot be read #18678

LemonHeadOnGit opened this issue Dec 27, 2018 · 2 comments
Labels

Comments

@LemonHeadOnGit
Copy link

@LemonHeadOnGit LemonHeadOnGit commented Dec 27, 2018

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.12.17. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.12.17

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

[debug] System config: []
[debug] User config: [u'-x', u'-audio-format', u'mp3']
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-x', u'--audio-format', u'mp3', u'https://www.youtube.com/watch?v=tQpKb0U800I']
ERROR: batch file could not be read
<end of log>

Description of your issue, suggested solution and other information

I recently installed youtube-dl. I tried to download a YouTube video and convert it to audio with one command, and as you can see above, it gave me the error: batch file could not be read. I got confused because I am using a Mac, and batch files are windows files. So I tried the command again, but this time I tried just downloading the video, and that also gave out the same error.

What I am using: ffmpeg, python. I also have the package: wine, and I installed youtube-dl with homebrew. I ALSO reinstalled youtube-dl about 3 times, and as you can see, no change. I can do anything but download with youtube-dl. I can check the version... that's about it.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 27, 2018

Invalid option -audio-format in config file.

@dstftw dstftw closed this Dec 27, 2018
@dstftw dstftw added the invalid label Dec 27, 2018
@LemonHeadOnGit
Copy link
Author

@LemonHeadOnGit LemonHeadOnGit commented Dec 28, 2018

How did that fix it???

Thanks anyway!
~L

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.