-
-
Notifications
You must be signed in to change notification settings - Fork 951
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 download videos from Instagram and other sites using youtube-dl/yt-dlp? #2699
Comments
It's all in the docs: https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractorytdlmodule For yt-dlp/youtube-dl, make sure you're using the Python module, not the exe. |
@github-account1111 I already added it to my downloader section, and it's working on Reddit and Twitter :
So it only can be used to download videos from those sites whose extractor expressly offers an ytdl option? Because Instagram doesn't have it. |
According to #462 (comment), Instagram is handled by youtube-dl/yt-dlp, and I'd imagine so do most sites that contain videos, but not sure. |
Mainly for metadata written directly to video files; and in the specific case of Instagram, because maybe the extractor has some problem in downloading the best/original quality sometimes. For example: I downloaded some videos last year and re-downloaded this year (because of the IG extractor update) and I noticed that several of them had differences, (even in resolution in one case), with the old downloaded videos having lower quality. Hope this new IG extractor is finally downloading the original videos. |
The quality difference could be due to IG changing compression on their end (either using more aggressive algorithms on the original files or worse yet re-encoding the already compressed stuff).
Can't that be done with postprocessors? |
It can? I thought gallery-dl could only write metadata to separate files. How to make it write them directly into the files? It would be so useful... |
Postprocessors have the ability to utilize external tools to write metadata directly to files. For videos I think you should be able to swap exiftool for ffmpeg and the corresponding ffmpeg cli flags. But also - I haven't tried personally - but gallery-dl has quite a few options for youtube-dl (and by extension yt-dlp): For example, I have the following 3 lines in my yt-dlp config to embed the video url into the Title metadata field:
That said, I've yet to try putting that into my gallery-dl config, so if you do try it lmk how it goes! |
To answer the original question: Not possible. gallery-dl used to use youtube-dl to download videos from IG, but that was removed quite some time ago in c18fadc. It would also not be feasible with IG's current rate limits, which were much more lenient back then. |
@github-account1111 so, I'm already using an Exiftool postprocessor, thanks for your great help. And I think Exiftool can write metadata to videos as well. |
It's probably a noob question, sorry.
The text was updated successfully, but these errors were encountered: