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.
write ID, URL to metadata #16196
write ID, URL to metadata #16196
Comments
|
URL is already written. |
|
https://github.com/rg3/youtube-dl/blob/master/youtube_dl/postprocessor/ffmpeg.py#L420 |
|
Sorry, I don't understand source code. Can you please elaborate ... I think it would be nice to at least write at least something, like URL or ID, to the album field or whatever. It's important to record where a video was downloaded from. |
|
which formats DO support it? |
|
I was trying to do the same thing. In case someone else is having trouble, here's how it works:
|
|
I only tried it with the |
|
It doesn't need to be a pure music file. If your config is empty you will get the
|
|
MP4, because it's widely adopted. |
|
yep, that's correct :) it already works here locally but requires some review by @dstftw / youtube-dl team before it can be merged. |
|
Great! I hope the author decides it's worthwhile this time and not just dismiss it. |
|
I'll have a look |
|
So I think problem is here #17904 |
|
no thanks. Those are useless formats. |
|
I think you need to unplug yourself from the computer once in a while. |
|
I think that it's none of your business what I use. I also think you are taking this matter far too personally. I also think you need a reality check. MP4 plays on everything. The containers you call "open and free" are actually "not widely adopted". I also think you have nothing valuable to add to this thread and are wasting your time. |
|
So is there currently a way to embed the video URL in the meta data? Because when I do something like: $ youtube-dl --add-metadata --postprocessor-args "-metadata copyright=%(url)s" -f "bestvideo[ext=webm]+bestaudio/best"What I get is: What format people want is up to them. However, if they choose to use non-open ones, they shoudn't be surprised when other software can't play nice with their choice. |
|
MP4 uses a standard ISO container. Show me where it says you need licensed software to write metadata. |
|
can we do anything to save in a txt file or in metadata file? or the .description file? |
|
@sepehrkiller it is saved in |




I would like to be able to write a Youtube video's ID and/or URL to the output file metadata. My testing suggests that, using the 'add-metadata' option only the writes the video title, channel name (author), and description.
version 2018.04.16