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

bestaudio webm remux to .opus/.ogg container #9478

Closed
nwgat opened this issue May 13, 2016 · 4 comments
Closed

bestaudio webm remux to .opus/.ogg container #9478

nwgat opened this issue May 13, 2016 · 4 comments
Labels

Comments

@nwgat
Copy link

@nwgat nwgat commented May 13, 2016

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

Description of your issue, suggested solution and other information

when i run with -f bestaudio, the output format is webm, even when the stream is audio only

i propose this
if stream is opus then remux to .opus container
if stream is vorbis then remux to .ogg container
if stream is m4a then keep m4a container

webm isnt supported on a whole lot of audio players, but both opus and vorbis are

@yan12125 yan12125 added the request label May 13, 2016
@ubone
Copy link

@ubone ubone commented Apr 29, 2017

-xf bestaudio

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 29, 2017

Thanks @ubone. The feature is indeed already there for a long time. There was something wrong in my head :D

@yan12125 yan12125 closed this Apr 29, 2017
@Popke523
Copy link

@Popke523 Popke523 commented Mar 9, 2019

-xf doesn't work for me, with bestaudio downloads aac, with 251 downloads opus but still in webm container. Here is my command:
youtube-dl https://www.youtube.com/user/NoCopyrightSounds -xf 251 -i -o "%(title)s.opus"

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 9, 2019

The correct command is:

youtube-dl H81DzDMdCLI -xf 251 --audio-format opus -o "%(title)s.%(ext)s"

Feel free to ask on IRC if you've got other questions.

@ytdl-org ytdl-org locked as resolved and limited conversation to collaborators Mar 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.