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.
--get-filename broken for webm videos with extracting audio option #7137
Comments
|
The |
|
so, the first video is downloaded in two slices, one just audio and one just video and then they are converted together? and at .webm the whole video ist downloaded? okay, mhm. and how can I get the file after the conversion? Tried to look up the best audio format with "-F" it shows me .webm (audio only is the best audio only format) but .opus is at the end saved to disk. should I replace the given extension here from .webm to .opus, cause at any time at any video, webm (audio only) is converted to .opus? |
Currently there's no generic approach.
Just to remind: WebM may contain Vorbis audio, too. |
|
I've found a side effect to this which looks like an actual bug: resuming a playlist download with |
|
After thinking again I believe it's impossible to get reliable filename without actual downloading. If anyone else have a good idea, feel free to post it. |
|
Let's continue the discussion in #5710. |
|
Sorry, they are not the same bug. |
|
This is still a common problem. For a yt download that turns out to be a .webm, --get-filename incorectly gives:
However when loading:
|
|
The below command would give the filename after download.
|
--extract-audio is postprocess and requires a download --get-filename doesn't download... ytdl-org/youtube-dl#7137 fixes #3
I think it's a bug, so i write this issue. I also did not find any issues related to this.
Getting the filename of the file seems to be broken when your video is in webm format and you want just the audio.
Example with "youtube-dl $URL -x --get-filename":
(url -> proposed filename -> saved file)
//got the right extension
https://www.youtube.com/watch?v=YSAqTdc-Y2g -> *.m4a -> *.m4a
//.opus file was written to disk instead of .webm file
https://www.youtube.com/watch?v=2TCDiK7GpNM -> *.webm -> *.opus
I found this bug (?) in a script written by me. It downloads the audio with "-x" but if the written filename is different as the proposed filename with "-x --get-filename" the script cannot copy the file to an another destination, cause it doesn't exists.