{ "info": { "author": "Alexander Vekemans", "author_email": "alexander.vekemans@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.7" ], "description": "# twigen (beta)\nis a Twitch VOD highlights generator that downloads the best moments of pasts streams. It also has options for downloading specific parts or the entire VOD.\n\n### How it works\ntwigen analizes chat data and selects the segments of the stream that had more messages per sample (by default, a sample is 60 seconds). Additionally, you can specify segments of the stream that you want to be included.\n\n### About the GUI\n```twigen``` uses a command-line interface. However, if it is called without arguments a (very simple) GUI will spawn. It is a command builder, that is, the options you choose in the GUI will be translated to a command that will run on a terminal (command prompt). Technically, a terminal is not needed for it to succeed, but the GUI closes when you press the OK button and you won't be able to see the progress or if some error happens.\n\n### Use examples\n\nThis command will download the highlights of https://www.twitch.tv/videos/436057160 generating a 5 minutes (at least) video:\n```\ntwigen --urls 436057160 --min 5\n```\nFor small channels with small chat interaction, it can be useful to use --signal and --include:\n```\ntwigen --urls 436176289 --min 10 --signal --include \"0:0:0, 0:1:0\"\n```\nthis command will look for messages in chat that contain !twigen and include that moment in the highlights. --include \"0:0:0, 0:1:0\" guarantees that the first minute is included in the highlights. The include option accepts multiple intervals of time:\n```\n--include \"0:0:0, 0:1:0; 0:20:0, 1:0:0\"\n```\n\nIt is also possible to generate highlights using multiple VODs:\n```\ntwigen --urls 436176289,437203732,438054911 --min 15 --group --output twigen_highlights.mp4\n```\n\n### List of options\n```\n -h, --help show this help message and exit\n -u URLS, --urls URLS URLs or IDs of the VODs to process\n -q, --quiet do not print what is being done\n -s SAMPLE, --sample SAMPLE\n duration of each sample in seconds, default=60\n -d DELAY, --delay DELAY\n start recording DELAY seconds early in each sample,\n default=30\n -g, --group process a list of urls into a single output file\n -l, --check print how long the output file would be with this\n options\n -T, --tmp do not save dowloaded data to current directory\n -M, --muted include muted portions of the VOD\n -i INCLUDE, --include INCLUDE\n include the specified samples\n -Z, --signal look for !twigen in chat messages and create a sample\n of that moment\n -o OUTPUT, --output OUTPUT\n name of the output file\n -S, --segs do not concatenate samples\n -C, --nochat do not download chat data, process included samples\n only\n -m MIN, --min MIN minimum length of the output file when generating\n highlights\n -y HYPE, --hype HYPE float number between [0,1] used by the highlights\n generator for selecting samples, default=0.6\n```\n### How to install\nFirst, you need Python 3.7. On Linux, you should find it in your distro's packages. On Windows, download from the [official web site](https://www.python.org/downloads/).\n\nNow, on your terminal/command prompt:\n```\npip install twigen\n```\nor you might need to run:\n```\npython3.7 -m pip install twigen\n```\nNow you need to install ffmpeg. On Linux, your distro should have a package for it, something like:\n```\nsudo apt install ffmpeg\n```\nOn Windows, download from the [official web site](https://ffmpeg.zeranoe.com/builds/).\n\nExtract the .zip, rename the file to something like ```FFmpeg``` and paste it in ```C:\\```\nThen open the command prompt and run:\n```\nsetx PATH \"C:\\FFmpeg\\ffmpeg-20190610-80e68ce-win64-static\\bin;%PATH%\"\n```\nso that ffmpeg can be called from the command prompt. Make sure that the folder inside ffmpeg has the name ```ffmpeg-20190610-80e68ce-win64-static```, if not just modify the command with the name you have.\n\nNow run:\n```\ntwigen --help\n```\nyou should see the help message from twigen.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/vekemans/twigen", "keywords": "Twitch", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "twigen", "package_url": "https://pypi.org/project/twigen/", "platform": "", "project_url": "https://pypi.org/project/twigen/", "project_urls": { "Homepage": "https://github.com/vekemans/twigen" }, "release_url": "https://pypi.org/project/twigen/0.6/", "requires_dist": [ "tcd (>=3.1.0)", "youtube-dl (>=2019.6.8)" ], "requires_python": ">=3.7", "summary": "Twitch VOD highlights generator", "version": "0.6" }, "last_serial": 5662054, "releases": { "0.6": [ { "comment_text": "", "digests": { "md5": "4bf1e0389e90096573f0d2e6a109bc0b", "sha256": "bde1ac4a7e663402d7d126da0b57ca831655bec26f973d8e1d88275b6a00b6a3" }, "downloads": -1, "filename": "twigen-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "4bf1e0389e90096573f0d2e6a109bc0b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 12479, "upload_time": "2019-06-14T10:43:17", "url": "https://files.pythonhosted.org/packages/7a/8d/dbff51bb147475868c91b913c2652bae2ba241c7cdab9019ccc3e93985f8/twigen-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fbfe4c658bf95cc8a5f5b7cded38bcdf", "sha256": "dfeaf485a3b8aaf6ab701efea02dc3706f667b70c3c7dcef75a298e24a9b506c" }, "downloads": -1, "filename": "twigen-0.6.tar.gz", "has_sig": false, "md5_digest": "fbfe4c658bf95cc8a5f5b7cded38bcdf", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 11662, "upload_time": "2019-06-14T10:43:19", "url": "https://files.pythonhosted.org/packages/56/d5/1138252e9ffa721557bb0097236570d4d2565d8b926cb5415359e961b5a1/twigen-0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4bf1e0389e90096573f0d2e6a109bc0b", "sha256": "bde1ac4a7e663402d7d126da0b57ca831655bec26f973d8e1d88275b6a00b6a3" }, "downloads": -1, "filename": "twigen-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "4bf1e0389e90096573f0d2e6a109bc0b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 12479, "upload_time": "2019-06-14T10:43:17", "url": "https://files.pythonhosted.org/packages/7a/8d/dbff51bb147475868c91b913c2652bae2ba241c7cdab9019ccc3e93985f8/twigen-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fbfe4c658bf95cc8a5f5b7cded38bcdf", "sha256": "dfeaf485a3b8aaf6ab701efea02dc3706f667b70c3c7dcef75a298e24a9b506c" }, "downloads": -1, "filename": "twigen-0.6.tar.gz", "has_sig": false, "md5_digest": "fbfe4c658bf95cc8a5f5b7cded38bcdf", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 11662, "upload_time": "2019-06-14T10:43:19", "url": "https://files.pythonhosted.org/packages/56/d5/1138252e9ffa721557bb0097236570d4d2565d8b926cb5415359e961b5a1/twigen-0.6.tar.gz" } ] }