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.
metadata option #2343
metadata option #2343
Comments
|
I need it to get data that I can pass to vorbiscomment. |
|
You can get the the info about the video as json with the {
"title": "Koan - Sweet Dream",
"uploader_id": "MyrchoSmile",
"format": "18 - 640x360",
"url": "LONG_URL",
"width": 640,
"thumbnail": "https://i1.ytimg.com/vi/6ncmsdeWKYM/hqdefault.jpg",
"view_count": 47810,
"stitle": "Koan - Sweet Dream",
"extractor": "youtube",
"height": 360,
"age_limit": 0,
"upload_date": "20090626",
"webpage_url": "https://www.youtube.com/watch?v=6ncmsdeWKYM",
"formats": [
... A long list
],
"annotations": null,
"format_id": "18",
"dislike_count": 2,
"extractor_key": "Youtube",
"playlist": null,
"like_count": 377,
"ext": "mp4",
"id": "6ncmsdeWKYM",
"player_url": null,
"playlist_index": null,
"subtitles": null,
"_filename": "Koan - Sweet Dream-6ncmsdeWKYM.mp4",
"fulltitle": "Koan - Sweet Dream",
"uploader": "MyrchoSmile",
"webpage_url_basename": "6ncmsdeWKYM",
"description": "Dreams Come True",
"duration": 452
}Also you may be interested in the If this options are enough, please comment so that we can close the issue. |
|
Thanks. For me it ouputs {"upload_date": "20090626", "description": "Dreams Come True", How do I add line breaks as in your instance? On 2014-02-08 22:04, Jaime Marquínez Ferrándiz wrote:
|
|
You can use jq: |
|
On 2014-02-09 10:47, Jaime Marquínez Ferrándiz wrote:
I cannot find "jq" as package for installation. Using Ubuntu based |
|
The jq packages is available in Ubuntu, so you may be able to use that. Alternatively, install it manually. In any case, if you want to extract information, it will often be easier to simply use your programming language's facilities. Also, you mentioned vorbiscomment. If you simply want to have the title and description in encoded in the file, why not pass in |
|
Also, you mentioned vorbiscomment. If you simply want to have the title
How do you mean? I want to extract the meta data with youtube-dl and |
|
Yes, but why do you want to do that? I'd assume you want the song title and description encoded in the vorbis file. That is precisely what |
There should be an option to show a list of meta data (eg youtube-dl -m 6ncmsdeWKYM). This would be fair as youtube-dl --list-formats exist