I've used many video downloaders before: atube catcher, 4k downloader, jDownloader, and currently using youtube-dl. I can't download videos, this for example, while still keeping their online chapters intact, like part1 is "intro" lasting from 00:00 to 00:45 and so on. So far I tried these parameters with youtube-dl
--write-annotations --write-description --write-info-json
--write-all-thumbnails
-f 'bestvideo[height<=720]+bestaudio/best[height<=720]/worst' --merge-output-format mp4
--add-metadata --embed-subs --embed-thumbnail
Another reason why your YouTube chapters aren't working is because your channel doesn't have enough subscribers. Your channel needs at least 1,000 subscribers before you can add YouTube chapters.
Youtube recently enabled the option to add chapters in YouTube videos. This is done by simply adding the chapter timestamps (start time) in the description of the video.
It’s attached to the file and can include copyright information, author, keywords, file size, media format, people, place, closed captioning and subtitling information, and lots more. Whenever you copy, email, or publish your file, all its file information or metadata travels along with it. There are two types of video metadata:
The best way to ensure you're not changing the metadata of the data you collect is to "containerize" it. This is done by putting data into a container, such as a ZIP file or a PST, which you can copy and move without affecting the data you see in your review platform.
If you move a file, it doesn’t change these fields. The best way to ensure you're not changing the metadata of the data you collect is to "containerize" it. This is done by putting data into a container, such as a ZIP file or a PST, which you can copy and move without affecting the data you see in your review platform.
Metadata on videos uploaded to YouTube 1 Navigate to the YouTube video you want to find metadata for. 2 Underneath the video screen, there are some basic metadata, such as the title, uploader and date uploaded. 3 To dig deeper, right-click next to the video player and select “View page info.” This will provide you with further... More ...
The information you want is called chapters in the youtube-dl info JSON.
There is a recent open pull request for youtube-dl that fixes a problem with this information. In the current release of youtube-dl, if you use the ---write-info-json
or --dump-json
you will see that the chapters information is null ("chapters": null
). You can use the code in the fork repository to be able to obtain the information you want.
Follow these steps:
Clone this repository:
git clone https://github.com/gschizas/youtube-dl.git
Change to the repository directory:
cd youtube-dl/
Checkout the pull request branch:
git checkout bugfix/youtube/chapters-fix-extractor
Run youtube-dl from the current location:
python -m youtube_dl --write-info-json https://youtu.be/LnO42jxJaC4
You will see information like this in the info JSON:
"chapters": [
{
"start_time": 0.0,
"end_time": 46.0,
"title": "Intro"
},
{
"start_time": 46.0,
"end_time": 72.0,
"title": "QOTD"
},
...
]
Hopefully the fix will be accepted into the youtube-dl repository and included in future releases, so there will be no need to clone any repository.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With