Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Transcoding WebM (Opus) to Vorbis (Ogg) #21433
Comments
|
|
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? |
God Bless You Dear. Only one thing, how to strip or remove all or (how much ever is possible) the metadata ? Please help, Would be Heartily appreciated. |
Checklist
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?