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.
FFmpegExtractAudio not extracting correct format #18868
Comments
|
|
I can set up a server with the exact image I have and set up an SSH server if that helps, because ffplay is definitely reporting webm. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.01.16. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
While embedding Youtube-DL and using the following options:
{ "format": "bestaudio", "noplaylist": True, "audioformat": "opus", "source_address": "0.0.0.0", "quiet": True, "default_search": "ytsearch", 'postprocessors': [{ 'key': 'FFmpegExtractAudio', 'preferredcodec': 'opus', # Here we tell ffmpeg to extract opus whichi it knows how to do 'preferredquality': '192', }], }it seems ffmpeg is never set to extract opus from the file, and while testing with ffplay it reports the audio is still webm, which it was by default.