{ "info": { "author": "Olivier Jolly", "author_email": "olivier@pcedev.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Multimedia :: Sound/Audio", "Topic :: Multimedia :: Video" ], "description": "Ass2Rythmo\n==========\n\nass2rythmo is a converter which generate rythmo band out of subtitles in ASS (`Advanced SubStation `_) format.\n\nRythmo bands are used to provide synchronized script for voice actors when dubbing a video.\n\nThe text scrolls at a constant speed but has a variable width to adapt to the speech flow that needs to be recorded to be synchronised with lips on screen.\n\nInstallation\n------------\n\nAss2Rythmo can be installed from pip::\n\n\tpip install ass2rythmo\n\n\nAlternatively, Ass2Rythmo can be run directly from sources after a git pull::\n\n\tgit clone https://gitlab.com/zeograd/ass2rythmo.git\n\tcd ass2rythmo && python setup.py install\n\nUsage\n-----\n\nFirst, generate a timed ASS subtitle file including only the part having to be said by actors.\n\nThen, generate the rythmo band as as collection of transparent png files::\n\n\tass2rythmo my_video_script.ass -R 30\n\nor as a transparent movie if you have ffmpeg_ available::\n\n ass2rythmo my_video_script.ass -R 30 -r rythmo_band.mov\n\nDon't forget to specify the frame rate of the video on which the png will be superposed to ensure a correct synchronisation.\n\nBy default, this will generate png file in the current directory named 00000.png, 00001.png, etc...\nYou can change the directory in which the png files are generated by providing a pattern to the **-r** argument including percent sign\n(**/tmp/%05d.png** for instance, for generating png in the **/tmp** directory and padding the frame number on 5 digits.)\n\nIf you specify a pattern without any percent sign, it will be considered as a single movie file output filename. The result will be encoded with **FFV1** codec and the mov container is recommended but other extensions might be accepted by your installed ffmpeg.\n\nThen you can burn the png sequence on top of your movie using your favorite video editor. You can also use **ffmpeg** to perform a quick overlaying, with a command similar to::\n\n\tffmpeg -i input.mp4 -framerate 30 -i %05d.png -filter_complex \"overlay=:main_h-overlay_h\" output.mp4\n\nto do the same with a transparent move rythmo band, use something like::\n\n ffmpeg -i input.mp4 -i rythmo_band.mov -filter_complex \"overlay=:main_h-overlay_h\" output.mp4\n\n\nScript creation\n---------------\n\nUse any ASS compatible tool, like Aegisub_.\n\nYou can use the regular { } to include comments or alternatively [ ] to include content which won't appear in the rythmo band (but still be present if you burn the ass file onto a video, like for actor direction hints).\n\nThe bundled font was choosen so that you can include unicode character to show which kind of intonation change you'd like (using unicode arrows).\n\nYou can fine tune a single sentence timing using the karaoke tags. You don't have to split your script for the sake of introducing a pause or changing the pace between 2 parts of a sentence.\nIn this case, you can preview the speed at which every part of your sentence will be rendered using **/kf** instead of the default **/k** tags (both will be accepted by **ass2rythmo**, **/ko** is also working)\n\nObviously, take care of synchronizing carefully your subtitles with the lips on screen to ensure that recording according to the rythmo band will be synchronized with the images.\n\nCLI\n---\n\nThe CLI **ass2rythmo** includes sensible default values.\nYou should be careful about setting the correct frame rate with **-R** option.\n\nYou may want to alter the generated width to use fully your available room with **-W** and also change the scroll speed with **-D**.\n\nOther options are less often useful and documented below.\n\n\n\tusage: ass2rythmo [-h] [-d] [-v] [-W TARGET_WIDTH] [-H TARGET_HEIGHT]\n\t [-R TARGET_FPS] [-F FONT_FILENAME] [-D SCROLL_DURATION]\n\t [-r RESULT_FILENAME_FORMAT] [-s SYNC_POINT_RATIO]\n\t ass_filename\n\n\tGPL v3+ 2018 Olivier Jolly\n\n\tpositional arguments:\n\t ass_filename input file as Ass format\n\n\toptional arguments:\n\t -h, --help show this help message and exit\n\t -d, --debug print debugging info [default: False]\n\t -v, --version show program's version number and exit\n\t -W TARGET_WIDTH, --target_width TARGET_WIDTH\n\t Width of the generated png files [default: 1920]\n\t -H TARGET_HEIGHT, --target_height TARGET_HEIGHT\n\t Height of the generated png files. Note that it's not\n\t meant to support low heights at this time [default:\n\t 380]\n\t -R TARGET_FPS, --target_fps TARGET_FPS\n\t Frame per second to generate. Make sure it matches\n\t your subbed video ! [default: 30]\n\t -F FONT_FILENAME, --font_face FONT_FILENAME\n\t Filename of the font used to generate text [default:\n\t [install path]/DejaVuSans.ttf]\n\t -D SCROLL_DURATION, --scroll_duration SCROLL_DURATION\n\t Duration of width traversal in ms [default: 4000]\n\t -r RESULT_FILENAME_FORMAT, --result_filename_format RESULT_FILENAME_FORMAT\n Filename template for generated files. May include\n directory part but won't create any. Including % in\n the format will generate a list of png files else will\n generate a transparent movie with the help of ffmpeg\n [default: %05d.png]\n\t -s SYNC_POINT_RATIO, --sync_point_ratio SYNC_POINT_RATIO\n\t Position of the sync point on screen, 0 is leftmost, 1\n\t is rightmost [default: 0.15]\n\n\tConvert ASS subtitles to rythmo band as list of transparent png or single transparent movie\n\nLIMITATIONS\n-----------\n\nThis program is quite young and not extensively tested. Notably, it was only run under linux so far, but no OS specificity were used.\n\nThe rendering is done on 2 lines maximum. So with 3 actors speaking at the same time, there will be some overlayed text above each other.\n\nSome artefacts may appear on the leftmost part of short text chunk for some characters (like a \"I\" to be pronounced very quickly at the beginning of a text chunk).\n\nLICENSE\n-------\n\nThe ass2rythmo code itself is licensed under GPL V3+ and the bundled DejaVu font is licensed under its own free License (cf LICENCE-dejavu.txt).\n\n.. _Aegisub: http://aegisub.org\n.. _Ffmpeg: http://ffmpeg.org\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/zeograd/ass2rythmo", "keywords": "ass rythmo subtitles subs", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "ass2rythmo", "package_url": "https://pypi.org/project/ass2rythmo/", "platform": "", "project_url": "https://pypi.org/project/ass2rythmo/", "project_urls": { "Homepage": "https://gitlab.com/zeograd/ass2rythmo" }, "release_url": "https://pypi.org/project/ass2rythmo/0.9.1/", "requires_dist": [ "numpy", "freetype-py", "pillow", "attrs (>=18.2.0)", "progressbar2" ], "requires_python": "", "summary": "Generate rythmo band from Ass subtitles", "version": "0.9.1" }, "last_serial": 4607916, "releases": { "0.9.1": [ { "comment_text": "", "digests": { "md5": "21031f661f3e11c6394b4c378f4476e1", "sha256": "14d1f6270243297226d5eda1db181dd79682270f8c29332838aa13a9eab9b423" }, "downloads": -1, "filename": "ass2rythmo-0.9.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "21031f661f3e11c6394b4c378f4476e1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 403937, "upload_time": "2018-12-17T13:06:17", "url": "https://files.pythonhosted.org/packages/cd/19/f0ab316ffb7ab2b8c66ca7ca6d87f7bc529bb67d2501dd1e68a339b70760/ass2rythmo-0.9.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "85c73dbae2558a60189c76051570e68d", "sha256": "355fd7e1984dfef48adcea7bd94f6831a8b2bda7e93eeb2bfa69727bfb8fe4c4" }, "downloads": -1, "filename": "ass2rythmo-0.9.1.tar.gz", "has_sig": false, "md5_digest": "85c73dbae2558a60189c76051570e68d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 391642, "upload_time": "2018-12-17T13:06:21", "url": "https://files.pythonhosted.org/packages/87/5c/9a3d6c9c84945c0d31de15e224bca2c7519c0bb711422fbbc429b7fd2a3b/ass2rythmo-0.9.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "21031f661f3e11c6394b4c378f4476e1", "sha256": "14d1f6270243297226d5eda1db181dd79682270f8c29332838aa13a9eab9b423" }, "downloads": -1, "filename": "ass2rythmo-0.9.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "21031f661f3e11c6394b4c378f4476e1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 403937, "upload_time": "2018-12-17T13:06:17", "url": "https://files.pythonhosted.org/packages/cd/19/f0ab316ffb7ab2b8c66ca7ca6d87f7bc529bb67d2501dd1e68a339b70760/ass2rythmo-0.9.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "85c73dbae2558a60189c76051570e68d", "sha256": "355fd7e1984dfef48adcea7bd94f6831a8b2bda7e93eeb2bfa69727bfb8fe4c4" }, "downloads": -1, "filename": "ass2rythmo-0.9.1.tar.gz", "has_sig": false, "md5_digest": "85c73dbae2558a60189c76051570e68d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 391642, "upload_time": "2018-12-17T13:06:21", "url": "https://files.pythonhosted.org/packages/87/5c/9a3d6c9c84945c0d31de15e224bca2c7519c0bb711422fbbc429b7fd2a3b/ass2rythmo-0.9.1.tar.gz" } ] }