Code Monkey home page Code Monkey logo

Comments (2)

wisdomikezogwo avatar wisdomikezogwo commented on July 28, 2024 1

It's no problem, however, I'm not sure I can share that.

I could, however, refer you to the same package we used in downloading videos called yt_dlp: https://github.com/yt-dlp/yt-dlp

I hope this is helpful, a possible config for low resolution or high resolution video download can be like this:

def get_ydl_opts(video_dir, archive=False, info=True, subtitle=True, low_res=False):
    if not low_res:
        return {
            'ignoreerrors': True,
            'format': "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b",
            "outtmpl": f'{video_dir}/%(channel)s/%(id)s___%(title)s.%(ext)s',
            "writesubtitles": subtitle,
            "writeautomaticsub": subtitle,
            "subtitlesformat": 'srt',
            "writedescription": info,
            "writeinfojson": info,
            "getcomments": info,
            "writeannotations": info,
            "overwrites": False,
            "download_archive": f'{video_dir}/archive.txt' if archive else None,
            "restrictfilenames": True,
        }
    else:
        return {
            'ignoreerrors': True,
            'format': "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4] / bv*+ba/b",
            'format_sort': ["+res:320"],
            "outtmpl": f'{video_dir}/%(channel)s/%(id)s___%(title)s.%(ext)s',
            "writesubtitles": subtitle,
            "writeautomaticsub": subtitle,
            "subtitlesformat": 'srt',
            "writedescription": info,
            "writeinfojson": info,
            "getcomments": info,
            "writeannotations": info,
            "overwrites": False,
            "download_archive": f'{video_dir}/archive.txt' if archive else None,
            "restrictfilenames": True,
        }
        ```

from quilt1m.

wisdomikezogwo avatar wisdomikezogwo commented on July 28, 2024

Again, let me know if you have any issues reconstructing Quilt!

from quilt1m.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.