1. 产品
  2.   视频
  3.   Python
  4.   VidGear

VidGear

 
 

开源 Python 视频文件库

免费 Python 视频处理 API,支持实时视频稳定、无损视频编码、灵活的参数操作以及多线程。

VidGear 是一个强大的多线程 Python 库,使软件开发者能够轻松创建视频处理应用程序。该库内置了对多个 API 的支持,每个 API 都具有独特的功能和特性。其主要目标是轻松处理和处理特定数据以及设备特定的视频或网络流。该库的重点是易于使用并提供简便的集成,以在仅用几行 Python 代码的情况下实现高性能处理复杂的视频处理任务。

当用户需要在不同视频源之间切换而无需大量更改代码时,VideoGear 是理想选择。该库支持多项重要的视频处理功能,包括在各种设备上访问和读取视频、以多种格式写入视频、视频或音频流传输、以及向/从各种来源发送和接收视频文件或帧等。

该库非常灵活,提供用户对视频和音频帧的全面控制。该库完全支持诸如实时视频稳定、使用 IP/USB 摄像头的视频流、无损视频编码以及多线程等高级功能。该库是开源的,遵循 Apache-2.0 许可证,可用于个人或商业用途。

Previous Next

VidGear 入门指南

Please use the following command to install VidGear library on your systems

通过 pip 安装 VidGear。

pip install vidgear

通过 GitHub 安装 VidGear。

$ git https://github.com/abhiTronix/vidgear.git 

通过 CamGear 管道传输视频流

The open source VidGear library provides the capability for piping video streams inside their own Python applications. The library provides connectivity with various big streaming services like Twitch, Livestream, Dailymotion, and several others with ease. The software developers can easily set the desired resolution and need to provide desired video’s URL to the source parameter and enable the stream mode parameter to achieve the goal in a better way. Same like above you can also stream or watch live videos from YouTube.

以 MP4 格式写入视频

The free VidGear library enables software developers to write their video files in MP4 format using Python code. The VidGear Video Processing Python library's WriteGear API gives flexible access to OpenCV's VideoWriter API tools as well as a robust wrapper around FFmpeg a very popular multimedia framework. You can easily write your videos to MP4 format with just a couple of lines of code. It can easily process real-time frames into a lossless compressed video-file..

转码完整视频和音频文件

The open source VidGear library provides enables software developers to transcode their video or audio file inside their own Python applications. Using the single-Source mode you can easily transcode n entire video or audio file into a sequence of multiple smaller chunks or segments for streaming. The is very useful when you are transcoding lossless long duration videos for live streaming. Please use the function transcode_source() for processing audio-video files into stream-able chunks.

 中国人