python-video-converter
所属分类:流媒体/Mpeg4/MP4
开发工具:Python
文件大小:4270KB
下载次数:0
上传日期:2021-07-30 23:35:04
上 传 者:
sh-1993
说明: Python视频转换器(ffmpeg包装器)
(Python Video Converter (ffmpeg wrapper))
文件列表:
.travis.yml (204, 2014-06-05)
AUTHORS.txt (232, 2014-06-05)
MANIFEST.in (50, 2014-06-05)
converter (0, 2014-06-05)
converter\__init__.py (9114, 2014-06-05)
converter\avcodecs.py (16467, 2014-06-05)
converter\ffmpeg.py (18308, 2014-06-05)
converter\formats.py (2062, 2014-06-05)
doc (0, 2014-06-05)
doc\Makefile (4622, 2014-06-05)
doc\api.rst (408, 2014-06-05)
doc\conf.py (7114, 2014-06-05)
doc\index.rst (261, 2014-06-05)
doc\installing.rst (1614, 2014-06-05)
doc\intro.rst (802, 2014-06-05)
doc\tutorial.rst (3413, 2014-06-05)
setup.py (1041, 2014-06-05)
test (0, 2014-06-05)
test\install-ffmpeg.sh (430, 2014-06-05)
test\test.aac (5160, 2014-06-05)
test\test.mp3 (16316, 2014-06-05)
test\test.py (14124, 2014-06-05)
test\test1.ogg (4360399, 2014-06-05)
# Video Converter
[![Build Status](https://travis-ci.org/senko/python-video-converter.png?branch=master)](https://travis-ci.org/senko/python-video-converter)
Video Converter is a Python module for converting video files from one format
and codec to another.
It uses the [FFmpeg multimedia framework](http://ffmpeg.org/) for actual file
processing, and adds an easy-to-use API for probing and converting media files
on top of it.
## Quickstart
from converter import Converter
c = Converter()
info = c.probe('test1.ogg')
conv = c.convert('test1.ogg', '/tmp/output.mkv', {
'format': 'mkv',
'audio': {
'codec': 'mp3',
'samplerate': 11025,
'channels': 2
},
'video': {
'codec': 'h2***',
'width': 720,
'height': 400,
'fps': 15
}})
for timecode in conv:
print "Converting (%f) ...\r" % timecode
## Documentation and tests
There's a fair amount of documentation in `doc/` directory.
To generate it from Sphinx sources, use:
python setup.py doc
and then visit `doc/_build/html/index.html`.
To run the automated tests:
python setup.py test
The test suite assumes you already have the required `ffmpeg` and `ffprobe`
tools installed on your system.
## Installation and requirements
To install the package:
python setup.py install
Note that this only installs the Python Video Converter library. The `ffmpeg`
and `ffprobe` tools should be installed on the system separately, with all the
codec and format support you require.
If you need to compile and install the tools manually, have a look at the
example script `test/install-ffmpeg.sh` (used for automated test suite). It may
or may not be useful for your requirements, so don't just blindly run it -
check that it does what you need first.
## Authors and Copyright
Copyright © 2011-2013. Python Video Converter contributors. See the
[AUTHORS.txt](AUTHORS.txt) File.
## Licensing and Patents
Although FFmpeg is licensed under LGPL/GPL, Video Converter only invokes the
existing ffmpeg executables on the system (ie. doesn’t link to the ffmpeg
libraries), so it doesn’t need to be LGPL/GPL as well.
The same applies to patents. If you’re in a country which recognizes software
patents, it’s up to you to ensure you’re complying with the patent laws. Please
read the FFMpeg Legal FAQ for more information.
近期下载者:
相关文件:
收藏者: