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

Using -o "F:/Users/Appu/Videos/%(title)s.%(ext)s" command always results in a file named ext(s).mkv #15899

Closed
anandsnair-java opened this issue Mar 18, 2018 · 1 comment

Comments

@anandsnair-java
Copy link

@anandsnair-java anandsnair-java commented Mar 18, 2018

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.03.14. 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.03.14

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 ```):

YouTube URL:https://www.youtube.com/watch?v=QwievZ1Tx-8
[debug] System config: []
[debug] User config: ['-o', 'F:/Users/Appu/Music/%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['-v', '-f', 'bestvideo+bestaudio', '-o', 'F:/Users/Appu/Videos/(ext)s', 'https://www.youtube.com/watch?v=QwievZ1Tx-8']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.03.14
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: ffmpeg N-86330-gbd1179e, ffprobe N-86330-gbd1179e
[debug] Proxy map: {}
[youtube] TlK5cUS3K1o: Downloading webpage
[youtube] TlK5cUS3K1o: Downloading video info webpage
[youtube] TlK5cUS3K1o: Extracting video information
[youtube] {22} signature length 38.41, html5 player vflHDhBq1
[youtube] TlK5cUS3K1o: Downloading player https://www.youtube.com/watch?v=QwievZ1Tx-8/en_US/base.js
[youtube] {43} signature length 40.41, html5 player vflHDhBq1
[youtube] {18} signature length 40.41, html5 player vflHDhBq1
[youtube] {36} signature length 40.41, html5 player vflHDhBq1
[youtube] {17} signature length 40.41, html5 player vflHDhBq1
[youtube] {137} signature length 40.41, html5 player vflHDhBq1
[youtube] {248} signature length 40.41, html5 player vflHDhBq1
[youtube] {136} signature length 40.41, html5 player vflHDhBq1
[youtube] {247} signature length 40.41, html5 player vflHDhBq1
[youtube] {135} signature length 40.41, html5 player vflHDhBq1
[youtube] {244} signature length 40.41, html5 player vflHDhBq1
[youtube] {134} signature length 40.41, html5 player vflHDhBq1
[youtube] {243} signature length 40.41, html5 player vflHDhBq1
[youtube] {133} signature length 40.41, html5 player vflHDhBq1
[youtube] {242} signature length 40.41, html5 player vflHDhBq1
[youtube] {160} signature length 40.41, html5 player vflHDhBq1
[youtube] {278} signature length 40.41, html5 player vflHDhBq1
[youtube] {140} signature length 40.41, html5 player vflHDhBq1
[youtube] {171} signature length 40.41, html5 player vflHDhBq1
[youtube] {249} signature length 40.41, html5 player vflHDhBq1
[youtube] {250} signature length 40.41, html5 player vflHDhBq1
[youtube] {251} signature length 40.41, html5 player vflHDhBq1
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] F:\Users\Appu\Videos\(ext)s.mkv has already been downloaded and merged
Press any key to continue . . .
...
<end of log>

Description of your issue, suggested solution and other information

I'm using a batch file for the job.
This is the content:

@echo off
set /P dl=YouTube URL:
youtube-dl -f bestvideo+bestaudio -o "F:/Users/Appu/Videos/%(title)s.%(ext)s"  %dl%
pause

I can't figure out what's wrong.
Saw another issue just like this one at #15730

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 18, 2018

You need to use %%(ext)s in batch files.

@yan12125 yan12125 closed this Mar 18, 2018
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.