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

-o not working as expected when -x #19063

Closed
qqgg231 opened this issue Jan 29, 2019 · 3 comments
Closed

-o not working as expected when -x #19063

qqgg231 opened this issue Jan 29, 2019 · 3 comments
Labels

Comments

@qqgg231
Copy link

@qqgg231 qqgg231 commented Jan 29, 2019

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

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

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

youtube-dl.exe 4LfvziNR2KM -xf bestaudio[acodec=opus]

works great, gives ogg container with .opus extension. However I need to change filename extension to .ogg or any other which Samsung Music recognizes as music

It is plain filename change, not any reencoding

I tried this, but does not work as expected with -x, it downloads and saves video as .ogg but still gives .opus as final result, and deletes .ogg video file

youtube-dl.exe 4LfvziNR2KM -xf bestaudio[acodec=opus] -o "%(title)s-%(id)s.ogg"

How to do it? I ask for your help

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 29, 2019

Do not hardcode the extension.

@dstftw dstftw closed this Jan 29, 2019
@dstftw dstftw added the invalid label Jan 29, 2019
@qqgg231
Copy link
Author

@qqgg231 qqgg231 commented Jan 29, 2019

@dstftw I don't understand, what is the solution to this issue?

@qqgg231
Copy link
Author

@qqgg231 qqgg231 commented Jan 29, 2019

@dstftw I want to download opus audio and have it in .ogg file

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.