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

please help. reddit is making new folder for gifs hosted in reddit instead of putting it in the subreddit/user folder i am scraping #7096

Open
RYUKxAnime opened this issue Mar 2, 2025 · 7 comments

Comments

@RYUKxAnime
Copy link

how to make videos from reddit hosted in redgifs not make a new folder and have that weird filename
the vids should be inside the parent folder
currently it looks this
Image
i want it to be in the folder of the given reddit url

also how do i not download reddit gifs instead convert them to mkv or mp4 (i have mkvtoolnix installed, i use it for pixiv)
the gif files are way too big. mp4 or mkv should be smaller right?
if yes then how do i do this?

@mikf
Copy link
Owner

mikf commented Mar 2, 2025

how to make videos from reddit hosted in redgifs not make a new folder

Enable parent-directory for reddit and set directory for reddit>redgifs to an empty value.

have that weird filename

Set a different filename format, maybe the same as for reddit. You might also want to enable parent-metadata to use reddit data for redgifs filenames.

{
    "extractor": {
        "reddit": {
            "parent-directory": true,
            "parent-metadata": true,
            "filename": "{id}{num:? //>02} {title[:220]}.{extension}"
        },
        "reddit>redgifs": {
            "directory": "",
            "filename": "{id} {title[:220]}.{extension}"
        }
    }
}

also how do i not download reddit gifs

Use a filter

"image-filter": "extension != 'gif'"

instead convert them to mkv or mp4

You need to download the .gif file first in order to convert it to some other format. See #6582 (comment) for an example of how to possibly do this.

@RYUKxAnime
Copy link
Author

how can i set redgif to only download/prefer HD version

@RYUKxAnime
Copy link
Author

You need to download the .gif file first in order to convert it to some other format. See #6582 (comment) for an example of how to possibly do this.

i am confused, the one you sent is for converting gif to webp and stuff
i dont want to use ffmpeg as it is slower than mkv [i only used mkv for pixiv]
i want to convert reddit gif to mkv without ffmpeg
i have mkvtoolnix , ffmpeg, gallery dl installed through python
pixiv currently works for converting ugoira to mkv

@mikf
Copy link
Owner

mikf commented Mar 3, 2025

how can i set redgif to only download/prefer HD version

That's the default behavior: extractor.redgifs.format

i dont want to use ffmpeg as it is slower than mkv

Then adapt it to use some other program. It's just an example.

i only used mkv for pixiv
pixiv currently works for converting ugoira to mkv

pixiv Ugoira conversions use both FFmpeg and mkvmerge.

Conversion to .mkv is fast because it is a lossless copy. Doing the same for .gif files wont save any space.

@RYUKxAnime
Copy link
Author

is there anything i can do to make reddit download mp4/webm so i can save space instead of downloading gifs

@RYUKxAnime
Copy link
Author

@mikf

@RYUKxAnime
Copy link
Author

Image
this worked but the command seems really big
should i change something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants