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

Transcoding WebM (Opus) to Vorbis (Ogg) #21433

Closed
ChrisKolan opened this issue Jun 17, 2019 · 3 comments
Closed

Transcoding WebM (Opus) to Vorbis (Ogg) #21433

ChrisKolan opened this issue Jun 17, 2019 · 3 comments
Labels

Comments

@ChrisKolan
Copy link

@ChrisKolan ChrisKolan commented Jun 17, 2019

Checklist

  • [x ] I'm asking a question
  • [x ] I've looked through the README and FAQ for similar questions
  • [x ] I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE

On Windows machine, I am using youtube-dl to download audio in the best quality which is WebM (Opus). I am transcoding that file to Vorbis (ogg) with the following command:

youtube-dl.exe -f bestaudio[ext=webm] --no-mtime --add-metadata --restrict-filenames -o "-%(title)s-%(id)s.%(ext)s" https://www.youtube.com/watch?v=4KcQ90UbRsg --postprocessor-args "-c:a libvorbis -q:a 5 output.ogg"

This gives me output.ogg file
Is it possible that the file name is the same as the WebM file only with a different extension?

"-%(title)s-%(id)s.%(ext)s" gives -Royalty_Free_Music_Dance_LiQWYD-4KcQ90UbRsg.webm
Desired filename: -Royalty_Free_Music_Dance_LiQWYD-4KcQ90UbRsg.ogg

Is it possible to achieve this in a one-liner?

@ChrisKolan ChrisKolan added the question label Jun 17, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 17, 2019

  1. Best quality audio is not necessarily webm.
  2. -x --audio-format vorbis.
@dstftw dstftw closed this Jun 17, 2019
@ChrisKolan
Copy link
Author

@ChrisKolan ChrisKolan commented Jun 17, 2019

So let's assume that the best quality is not WebM. My question remains: how to convert that format to Vorbis (Ogg) with the prober file name?

@BUAWF
Copy link

@BUAWF BUAWF commented Sep 21, 2019

  1. Best quality audio is not necessarily webm.
  2. -x --audio-format vorbis.

God Bless You Dear.

@dstftw

Only one thing, how to strip or remove all or (how much ever is possible) the metadata ?
Whats the command for it ?

Please help, Would be Heartily appreciated.
Thanks.

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
3 participants
You can’t perform that action at this time.