此软件包允许处理由Vision Research Phantom®相机创建的.cine文件。
pycine的Python项目详细描述
皮辛尼
用python读取vision research.cine文件
安装
发布版本
带PIP
如果安装了python 3,您可以使用pip
:
pip3 install pycine
编译的二进制文件
还可以使用以下命令安装二进制版本:
curl -s https://phantomfuse.com/pfs_meta -o /usr/local/bin/pfs_meta && chmod +x /usr/local/bin/pfs_meta
开发版本
pip install git+https://github.com/ottomatic-io/pycine.git
示例用法
更改播放和时间码帧率
pfs_meta set --playback-fps 60/1.001 --timecode_fps 60/1.001 A001C001_190302_16001.cine
您还可以同时为多个剪辑设置元数据:
pfs_meta set --playback-fps 24/1.001 --timecode_fps 24/1.001 *.cine
帮助
每个命令都有自己的帮助输出。只需附加--help
:
$ pfs_meta --help
Usage: pfs_meta [OPTIONS] COMMAND [ARGS]...
This tool allows .cine file metadata manipulation. Use COMMAND --help for
more info.
Options:
--help Show this message and exit.
Commands:
copy Copy metadata from a source clip
set Set metadata
show Show metadata
$ pfs_meta set --help
Usage: pfs_meta set [OPTIONS] [DESTINATIONS]...
Set metadata
Options:
--temp FLOAT Set color temperature.
--cc FLOAT Set color correction.
--record-fps INTEGER Set record FPS.
--playback-fps TEXT Set playback FPS. Use 60 or 60/1.001 but not 59.94
--timecode-fps TEXT Set timecode FPS. Use 60 or 60/1.001 but not 59.94
--tone TEXT Set tone curve in the form of "[LABEL] x1 y1 x2 y2".
You can set up to 32 xy points.
--help Show this message and exit.
$ pfs_raw --help
Usage: pfs_raw [OPTIONS] CINE_FILE [OUT_PATH]
Options:
--file-format [.png|.jpg|.tif]
--start-frame INTEGER
--count INTEGER
--version Show the version and exit.
--help Show this message and exit.
Jupyter笔记本
查看如何使用Jupyter笔记本中的库的示例: notebooks/Display frames.ipynb