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.
Change container of opus audio #22490
Comments
|
also wanted to note, adding .mka (matroska audio container) support would be great, but the main one i'm looking for is the ogg container with .opus extension, as it's the recommended by the original opus specification, and it's also the one with the best compatibility. |
|
I've found a way to do this with ffmpeg: |
|
You might want
It gives an audio file with .opus extension. |
That's helpful, but not what the original issue was about. Here are my logs:
|
|
What’s actually interesting is that apparently the files IS in Ogg container, just the extension is wrong. See
|
|
The extension is not wrong because an |
Exactly, so if |
|
This ticket is about the container and not the extension. |
My point was that this ticket is NOTABUG with regards to the container. Output is already in OGG. |
|
I have exactly this problem too. I can download an opus file but I can't play it in Android without renaming it manually to file.ogg. Would be good to know how to get youtube-dl to rename it automatically or just convert it to ogg with FFMPEG. |
You don’t have to use ffmpeg. |
|
Sorry I should have explained that I'm using youtube-dl.conf with the following config:
I'm using m4a because opus files won't play in Android. Would be awesome to just use - |
That is not correct. Opus files (renamed to |
|
It's not clean, but Example: |
|
That's a decent solution. Thank you. |
|
Extension lies but magic code doesn't. |
Checklist
Description
Hi, with yt-dl i can download the audio from any video, which is great. The thing is, youtube stores opus audio in the webm container.
Is there any function to change the container within the yt-dl process? I tried:
youtube-dl.exe -f "bestaudio[ext=webm]" --batch-file "youtube-dl.txt" --merge-output-format ogg -vbut does nothing, it'll still give you the webm container file.
I believe it's not implemented or something, is there any known workaround?
thanks