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

How to identify a music video on YouTube or if a video is copyrighted? #22029

Open
p-md opened this issue Aug 7, 2019 · 3 comments
Open

How to identify a music video on YouTube or if a video is copyrighted? #22029

p-md opened this issue Aug 7, 2019 · 3 comments
Labels

Comments

@p-md
Copy link

@p-md p-md commented Aug 7, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

How can I check if a YouTube video is copyrighted? I'm specifically talking about music videos, is there any data that let us identify a music video? I have checked another similar issue, the answer was to check the license key, but this key will be available for all the videos and won't help us identify a music video.

Any suggested solution to find a music video? Like artist, creator or any other data?

Thank you.

@p-md p-md added the question label Aug 7, 2019
@p-md p-md changed the title How to find if YouTube video is copyrighted? How to identify a music video on YouTube or if a video is copyrighted? Aug 7, 2019
@samrahimi
Copy link

@samrahimi samrahimi commented Aug 9, 2019

Here's a partial solution that is specific to VEVO-branded music videos on YouTube, but it may be enough depending on your use case. It's useful because most of the official music videos on YouTube are branded / distributed by VEVO, and the metadata for these videos follows certain conventions we can use to help identify / search for such content. All VEVO-branded content is copyrighted and has been correctly licensed in partnership with the record label and artist. However, note that an artist's VEVO videos belong to the artist's YouTube channel, so you cannot use the "creator" or "artist" attributes to determine if a video is an official VEVO music video vs an ordinary YouTube video uploaded by the same artist.

Depending on the age of a VEVO video, it will use one of two templates for its metadata.

Old Format (example: https://www.youtube.com/watch?v=VuNIsY6JdUw)

title: Artist Name - Song Title
description: contains "Music video by Artist Name performing Song Title"

New Format (example: https://www.youtube.com/watch?v=gxEPV4kolz0)

title: Artist Name - Song Title (Official Video)
description: may contain #Vevo
tags: may contain 'vevo'

  • note that the #Vevo description text or vevo tag are not always present.

Going beyond VEVO for a moment, all of the music videos on YouTube will specify 'Music' as the first / only entry in the categories array. Note that the 'Music' category by itself does not guarantee that the content is an actual music video - YouTube is full of lyric videos and audio-only videos.

Anyways, hopefully this is a useful starting point... if you want to get detailed copyright info for a video, or perform advanced search / filter operations, I suggest using the YouTube data API for this purpose, and then use youtube-dl to handle the downloading / transcoding. youtube-dl is impressive in its ability to extract metadata from webpages, but the data provided by the YouTube API will be more complete, and by using the API when possible you reduce the chance that YouTube will ban your IP, as you will be scraping fewer pages from their website.

I'm happy to assist further if you have questions in this area!

@p-md
Copy link
Author

@p-md p-md commented Aug 11, 2019

@samrahimi Thank you very much, I'll let you know if I have any other questions.

@LubosKolouch
Copy link

@LubosKolouch LubosKolouch commented Sep 5, 2020

Can this be closed?

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
3 participants
You can’t perform that action at this time.