Cross platform video

For my web application, I want to allow users to record their own videos through their webcam and automatically upload them to the site. Ideally, this will happen in the browser as part of my web application, possibly with a flash plugin like the one provided by the fairly popular nimbb.com .

However, the Flash solution is not necessarily perfect, since even the nimbb demo is a pain to work on Linux, and I am ready to use the desktop solution, which users must download first if it makes my life easier. It should be in the form of an open source library or a very complete API, since I need to be able to configure quite a lot of details - for example, for direct transmission of streaming video, automatically stop transcoding after a certain time, etc.

My preference is Python, but everything else will be. Are there any programs or libraries that I can pay attention to that perform the following main tasks?

  • Video recording via webcam, sound through a microphone, simultaneously (most important)
  • Save video
  • Background noise removal
  • Brightness adjustment

It was enough just to minimize my own simple solution that does all this using Python, openCV, pygame, ffmpeg and sox, but I am not an expert in this field, and I am not very happy with the overall quality (video, as well as removing background noise), and this will only work on Linux, without any major porting (mainly due to the use of sox).

Summary I'm looking for something with Skype video and audio quality, preferably open source (I will pay too if this is an option) and as flexible as Python. Any advice, or is it too high order?

+4
source share
1 answer

Good. I did a crazy amount of research on this last day, and here is the current state of affairs, as I found:

WebRTC is a free open source project that provides web browsers with Real-Time Communications (RTC) capabilities through simple Javascript APIs. At the moment, it is only supported by Chrome and the latest versions of Firefox and Opera. This is due to changes in the near future, as all three browser makers can create W3C to include WebRTC in the HTML5 specification. Therefore, if we are lucky, we will get a cross-browser built-in webcam functionality for a year or two.

Until then, Flash is the only other cross-browser option. There are many projects that allow this, but here are some of the best: OpenTok , Nimbb and jRecorder and jQuery webcam if you need only sound or only video, respectively. The latter can only save still images, so you can try to use it for video, but this is not recommended.

Regarding open-source cross-platform desktop applications, I still havenโ€™t been able to find them. Still hope someone can help in this regard!

+2
source

Source: https://habr.com/ru/post/1396696/


All Articles