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.
Converting audio along with video after download #13360
Comments
|
I’d love this, too! Most of the time it’s going to be more useful for me to have mp4 output even if the audio originally came from an opus stream! |
|
Glad to hear others would want this also. I explored a bit more, there is the ExecAfterDownload but that seems to have it's own problems. Adding the following to the postprocessors
results in an error stating that there is an invalid argument. It seems ffmpeg does not like the quotes put around the file path. |
What is the purpose of your issue?
Right now I have something akin to the following for my options
This will download videos and convert to mkv but the audio is left alone. I would like to if possible convert it to AAC. It seems like this should be possible and obvious but for the life of me I cannot figure it out. Looking at the code I see there is a post processor to extract audio but not to convert the audio itself. (https://github.com/rg3/youtube-dl/blob/master/youtube_dl/postprocessor/ffmpeg.py#L218)
Is this just a feature that has not been implemented? Is it something that would be desirable? Happy to work on this myself and form a PR but would like some help knowing if I am barking up the right tree so to say.