Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata title source #20218

Closed
xperia64 opened this issue Mar 2, 2019 · 0 comments
Closed

Metadata title source #20218

xperia64 opened this issue Mar 2, 2019 · 0 comments
Labels

Comments

@xperia64
Copy link

@xperia64 xperia64 commented Mar 2, 2019

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.03.01. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2019.03.01

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

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:

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--add-metadata', '-f', 'bestvideo+bestaudio', '--merge-output-format', 'mkv', '--', 'https://www.youtube.com/watch?v=J9J6WmbKfD8']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.03.01
[debug] Python version 3.6.7 (CPython) - Linux-4.15.0-45-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.4, ffprobe 3.4.4, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] J9J6WmbKfD8: Downloading webpage
[youtube] J9J6WmbKfD8: Downloading video info webpage
[youtube] {22} signature length 41.40, html5 player vflX2rhq7
[youtube] {43} signature length 41.40, html5 player vflX2rhq7
[youtube] {18} signature length 41.40, html5 player vflX2rhq7
[youtube] {136} signature length 41.40, html5 player vflX2rhq7
[youtube] {247} signature length 41.40, html5 player vflX2rhq7
[youtube] {135} signature length 41.40, html5 player vflX2rhq7
[youtube] {244} signature length 41.40, html5 player vflX2rhq7
[youtube] {134} signature length 41.40, html5 player vflX2rhq7
[youtube] {243} signature length 41.40, html5 player vflX2rhq7
[youtube] {133} signature length 41.40, html5 player vflX2rhq7
[youtube] {242} signature length 41.40, html5 player vflX2rhq7
[youtube] {160} signature length 41.40, html5 player vflX2rhq7
[youtube] {278} signature length 41.40, html5 player vflX2rhq7
[youtube] {140} signature length 41.40, html5 player vflX2rhq7
[youtube] {171} signature length 41.40, html5 player vflX2rhq7
[youtube] {249} signature length 41.40, html5 player vflX2rhq7
[youtube] {250} signature length 41.40, html5 player vflX2rhq7
[youtube] {251} signature length 41.40, html5 player vflX2rhq7
[download] Super Hoop - Super Smash Bros. for Wii U-J9J6WmbKfD8.mkv has already been downloaded and merged
[ffmpeg] Adding metadata to 'Super Hoop - Super Smash Bros. for Wii U-J9J6WmbKfD8.mkv'
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Super Hoop - Super Smash Bros. for Wii U-J9J6WmbKfD8.mkv' -c copy -metadata 'title=Space Jam' -metadata date=20160414 -metadata 'description=Music: Super Hoop
Composer: Kenji Ito
Playlist: https://www.youtube.com/playlist?list=PLL0CQjrcN8D0P18ushvqE0Elywq0lNIyo
Platform: Wii U

Please read the channel description.' -metadata 'comment=Music: Super Hoop
Composer: Kenji Ito
Playlist: https://www.youtube.com/playlist?list=PLL0CQjrcN8D0P18ushvqE0Elywq0lNIyo
Platform: Wii U

Please read the channel description.' -metadata 'purl=https://www.youtube.com/watch?v=J9J6WmbKfD8' -metadata 'artist=Quad City DJ'"'"'s' 'file:Super Hoop - Super Smash Bros. for Wii U-J9J6WmbKfD8.temp.mkv'

Description of your issue, suggested solution and other information

By default, the FFmpeg metadata postprocessing assumes that if a "track" is defined for a video (in this case a YouTube video), then the "track" will be used as the title instead of "title".

This behavior is defined here: https://github.com/rg3/youtube-dl/blob/398e1e21d6cbf6eb1e8e7e84de4fad30b7d59613/youtube_dl/postprocessor/ffmpeg.py#L450

This is problematic for videos such as https://www.youtube.com/watch?v=J9J6WmbKfD8 where "track" is provided by YouTube's ContentID, whereas the true video title is more meaningful.
An option should be added to at least select the title source for metadata embedding. Something similar to -o as suggested in #17027 would be ideal.

@dstftw dstftw closed this Mar 2, 2019
@dstftw dstftw added the duplicate label Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.