VidGear

 
 

کتابخانه منبع باز پایتون برای فایل‌های ویدیو

API رایگان پایتون برای پردازش ویدیو، از تثبیت ویدیو به‌صورت زمان واقعی، رمزگذاری ویدیو بدون افت کیفیت، دستکاری پارامترهای انعطاف‌پذیر و چندنخی بودن پشتیبانی می‌کند.

VidGear یک کتابخانه قدرتمند چندنخی پایتون است که به توسعه‌دهندگان نرم‌افزار امکان می‌دهد برنامه‌هایی برای پردازش ویدئوها به راحتی ایجاد کنند. این کتابخانه شامل پشتیبانی از چندین API است که هر کدام قابلیت و عملکرد منحصر به فردی دارند. هدف اصلی، مدیریت و پردازش داده‌های خاص دستگاه یا ویدئو و جریان‌های شبکه به سادگی است. تمرکز اصلی کتابخانه بر سادگی استفاده و فراهم کردن یکپارچه‌سازی آسان برای دستیابی به عملکرد بالا هنگام پردازش کارهای پیچیده پردازش ویدئو با تنها چند خط کد پایتون است.

VideoGear زمانی که کاربران نیاز به جابجایی بین منابع ویدئویی مختلف بدون تغییر زیاد کد دارند، ایده‌آل است. این کتابخانه شامل پشتیبانی از چندین ویژگی مهم مرتبط با پردازش ویدئو است، از جمله دسترسی و خواندن ویدئوها بر روی دستگاه‌های مختلف، نوشتن ویدئوها در قالب‌های متعدد، پخش ویدئو یا صدا، ارسال و دریافت فایل‌ها یا فریم‌های ویدئویی از/به منابع مختلف، و موارد دیگر.

این کتابخانه بسیار انعطاف‌پذیر است و به کاربران کنترل جامع بر فریم‌های ویدیو و صدا می‌دهد. کتابخانه به‌طور کامل از ویژگی‌های پیشرفته‌ای مانند تثبیت‌زمانی ویدیو، پخش ویدیو با استفاده از دوربین‌های IP/USB، رمزگذاری ویدیو بدون افت کیفیت، و چندنخی بودن و غیره پشتیبانی می‌کند. این کتابخانه منبع باز است و تحت مجوز Apache-2.0 برای استفاده شخصی یا تجاری در دسترس می‌باشد.

Previous Next

شروع کار با VidGear

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

نصب VidGear از طریق pip.

pip install vidgear

نصب VidGear از طریق GitHub.

$ 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.

 فارسی