{ "info": { "author": "spirit", "author_email": "hiddenspirit@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2" ], "description": "ffms \u2013 Python bindings for FFmpegSource\n=======================================\n\n\nExample usage\n-------------\n\nIf you don\u2019t need to keep the index, create a video source right away:\n\n>>> import ffms\n>>> source_file = \"test/x264.mkv\"\n>>> vsource = ffms.VideoSource(source_file)\n\n\nOr you can create an indexer:\n\n>>> indexer = ffms.Indexer(source_file)\n>>> indexer.format_name\n'matroska'\n>>> indexer.track_info_list\n[TrackInfo(type=0, codec_name='h264')]\n\n\nThen create the index for the video source:\n\n>>> index = indexer.do_indexing(-1)\n>>> track_number = index.get_first_indexed_track_of_type(ffms.FFMS_TYPE_VIDEO)\n>>> vsource = ffms.VideoSource(source_file, track_number, index)\n\n\nExtract information from the video source:\n\n>>> vsource.properties.NumFrames\n8\n>>> vsource.track.keyframes\n[0, 5]\n>>> vsource.track.timecodes\n[0.0, 1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0, 7000.0]\n\n\nRetrieve a video frame:\n\n>>> frame = vsource.get_frame(0)\n>>> frame.EncodedWidth, frame.EncodedHeight\n(128, 72)\n>>> frame.planes[0]\narray([16, 16, 16, ..., 16, 16, 16], dtype=uint8)\n\n\n``ffmsinfo.py`` is a demo script showing how this package can be used.\n\n\nInstallation\n------------\n\nTo install the package for Python 3, use::\n\n $ ./setup.py install\n\nTo install the package for Python 2, use::\n\n $ python2 setup.py install\n\nOn Windows, you may use one of the MSI binary packages provided on the\n`download page `_.\n\n\nRequirements\n------------\n\n- `Python 3.2+ `_ (or 2.7)\n- `FFmpegSource `_\n- `numpy `_\n- `pywin32 `_ (Windows only)\n- `lib3to2 `_\n (if installing for Python 2)\n\n\nThe API was designed to be an object-oriented and Pythonic version\nof `the original FFmpegSource API\n`_.", "description_content_type": null, "docs_url": null, "download_url": "https://bitbucket.org/spirit/ffms/downloads", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/spirit/ffms", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "ffms", "package_url": "https://pypi.org/project/ffms/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ffms/", "project_urls": { "Download": "https://bitbucket.org/spirit/ffms/downloads", "Homepage": "https://bitbucket.org/spirit/ffms" }, "release_url": "https://pypi.org/project/ffms/0.3a2/", "requires_dist": [ "numpy", "pywin32; sys.platform == 'win32'" ], "requires_python": ">=2.7,!=3.0,!=3.1", "summary": "Bindings for FFmpegSource", "version": "0.3a2" }, "last_serial": 1774578, "releases": { "0.3a1": [], "0.3a2": [ { "comment_text": "", "digests": { "md5": "445c4d76b2b163df5a76ae5a2b78bfe0", "sha256": "5bcdfee6f1a344cb97a00834748242a40b1686ecfacd08aead536c12e55d1314" }, "downloads": -1, "filename": "ffms-0.3a2.tar.bz2", "has_sig": false, "md5_digest": "445c4d76b2b163df5a76ae5a2b78bfe0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0,!=3.1", "size": 33534, "upload_time": "2015-10-18T12:33:13", "url": "https://files.pythonhosted.org/packages/39/34/bbd3436958d8de139d88065e9c2f760e3a79691cdbc79ea4e8510a204672/ffms-0.3a2.tar.bz2" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "445c4d76b2b163df5a76ae5a2b78bfe0", "sha256": "5bcdfee6f1a344cb97a00834748242a40b1686ecfacd08aead536c12e55d1314" }, "downloads": -1, "filename": "ffms-0.3a2.tar.bz2", "has_sig": false, "md5_digest": "445c4d76b2b163df5a76ae5a2b78bfe0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0,!=3.1", "size": 33534, "upload_time": "2015-10-18T12:33:13", "url": "https://files.pythonhosted.org/packages/39/34/bbd3436958d8de139d88065e9c2f760e3a79691cdbc79ea4e8510a204672/ffms-0.3a2.tar.bz2" } ] }