openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.7k forks source link

[enhancement] Support for other video codecs #1122

Closed kgoderis closed 8 years ago

kgoderis commented 10 years ago

Use case: some video devices controlled by openHAB (webcam, IP Cam, door intercom) generate mpg, or mpg-like (for example mxpg by Mobotix) video streams that can not be directly rendered by an openHAB UI (web client or dedicated client), or that need to be frame-rate adjusted and so forth

Proposal would be to integrate a video codec library into OH to provide on-the-fly video conversion that can be outputted in a client-compatible format. First idea would be to leverage existing video frameworks like the excellent VLC media player (http://www.videolan.org/vlc/) (that already supports a great number of video formats), using the vlcj java lib (https://github.com/caprica/vlcj) that wraps around the VLC core lib.

The same library can be used to have openHAB serve multi-media content, like for example pre-recorded video (video greetings, video logs from camera's,...)

kaikreuzer commented 10 years ago

The idea sounds cool and I would fully support it. I just see 2 major problems:

  1. you probably won't be able to get a good pure java solution for it (and wrapping native code makes the solution platform-dependent)
  2. It would only work on powerful target devices, you shouldn't even think of trying doing this on a Raspberry Pi...
belovictor commented 10 years ago

Hi,

And this is a very separate project and somebody will have to dedicate himself to it, cause working with all those streams and codecs is a nightmare, believe a person who've spent quite years on IPTV and VoD... And Kai is right - the transcoder itself, or call it a media server should be written in native code. And we are talking only about x86 platforms. You can do it on ARM with DSP, like Sitara (BeagleBoneBlack), but the performance will be still limited to 1-2 channels and this is even more complicated job... So any volunteers for media man position? :-)

Best regards, Victor Belov

On Sat, Jun 7, 2014 at 12:15 AM, kaikreuzer notifications@github.com wrote:

The idea sounds cool and I would fully support it. I just see 2 major problems:

  1. you probably won't be able to get a good pure java solution for it (and wrapping native code makes the solution platform-dependent)
  2. It would only work on powerful target devices, you shouldn't even think of trying doing this on a Raspberry Pi...

— Reply to this email directly or view it on GitHub https://github.com/openhab/openhab/issues/1122#issuecomment-45379598.

teichsta commented 10 years ago

how are we going to proceed with this issue? Leave it open for further discussions?

kaikreuzer commented 10 years ago

I don't think it is easy to proceed on this - especially I would not try to introduce such major functional blocks on version 1.x.

teichsta commented 8 years ago

ok, so we'll close this issue for OH1. @kgoderis if you are still interested in this feature it would be great if you could be so kind and open an according issue in ESH (or OH2 - what applies best)