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.
Not all metadata is embedded if output format is not mkv #17029
Comments
|
I'm experiencing similar when downloading .webm files from Youtube. I'm really just after the description, and it seems there's no way to get that into metadata without converting to MKV first. |
|
I want the same thing the OP (srussel) wants. Specifically, I used to use --write-info-json, but the .info.json files annoyed me, so I switched to --add-metadata, which works great when youtube-dl chooses to output in mkv format, but not when it chooses to output mp4 format. I would appreciate a command-line switch that causes youtube-dl to always choose to output in mkv. (Unlike the OP I am not under the misconception that I would appreciate that because it would probably cause the information I want (namely, the URL) to always be add to the output file (where I can use mediainfo or ffprobe to read it). I am aware that youtube-dl already provides a way for me to specify that the url be included as part of the name of the output file, but that alternative is undesirable to me. One of the reasons .info.json files annoyed me was that I often renamed a video file, then forgot to rename the .info.json file. |
Blame VLC, metadata itself is embedded.
Update ffmpeg. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.07.10. 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?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
I normally use --add-metadata --merge-output-format mkv to capture all the metadata. If the output format is not mkv, not all the metadata is captured. I am assuming this is because the output format does not support the metadata.
I am not sure if this is a bug. That is, requesting "--add-metadata --merge-output-format mkv" means that mkv should always be used in order to store all the metadata. Or if this is a feature request to add an option to force mkv to be used so I can capture all metadata.
For example, if I run:
A mkv file is created. In vlc I can Ctrl-I and in view all the metadata in the Metadata tab.
ffprobe -show_entries format:stream -print_format json Isolation\ -\ Mind\ Field\ \(Ep\ 1\)-iqKdEhx-dD4.mp4shows all metadata.
If I run:
A mp4 file is created. In vlc, no metadata is shown in the Metadata tab.
ffprobe -show_entries format:stream -print_format json Isolation\ -\ Mind\ Field\ \(Ep\ 1\)-iqKdEhx-dD4.mp4shows some metadata but not the URL.
If I run:
A webm file is created. In vlc, no metadata is shown in the Metadata tab.
ffprobe -show_entries format:stream -print_format json Isolation\ -\ Mind\ Field\ \(Ep\ 1\)-iqKdEhx-dD4.mp4does not show any metadata.
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 ```):