简体   繁体   English

如何获得 FFMPEG Progress 以创建进度条?

[英]How do I get FFMPEG Progress in order to create a progress bar?

I'm trying to create a simple GUI for ffmpeg but am having problems getting the progress of a command.我正在尝试为 ffmpeg 创建一个简单的 GUI,但在获取命令进度时遇到问题。 I'm using PySide as the GUI toolkit and I'm also using python3.我使用 PySide 作为 GUI 工具包,我也在使用 python3。 I'm using QProcess to run the command and would just like to be able to create a progress bar.我正在使用 QProcess 来运行命令,并且希望能够创建一个进度条。

EDIT: Preferably I'd like to use QProgressDialog: http://www.pyside.org/docs/pyside/PySide/QtGui/QProgressDialog.html编辑:最好我想使用 QProgressDialog:http: //www.pyside.org/docs/pyside/PySide/QtGui/QProgressDialog.html

You are not going to have a very nice API over a process spawn interface.您不会在进程生成接口上拥有一个非常好的 API。 Moreover, it could be unstable.此外,它可能不稳定。

Instead, you should be using Python bindings to libavcodec and other FFMPEG libraries.相反,您应该使用 Python 绑定到libavcodec和其他 FFMPEG 库。 There are plenty of those on the web .网上很多这样的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM