0

Im working with the Intel Realsense Camera which outputs video in PXCImage format. I want to read this in Java or C++, convert it to OpenCV Mat format and stream it live as a webcam stream which can be read by any other webcam application.

Ive found code to read and convert the stream to Mat format, but Im stuck at the part where I have to output it as a webcam stream so it can be read by any arbitrary application.

Is there any way in C++ or java to emulate a webcam and output video through it ?

  • Hi, I also have the same problem with streaming using Java and OpenCV, did you solve your problem? If yes, then how? Thanks!! – Bahramdun Adil Oct 28 '17 at 14:06

1 Answers1

0

If you only want to re-stream the video ffserver would help. It's part of ffmpeg package which is a standalone application but with some tricks can also be called from C/C++.

Alternatively you can use kurento media server which allows you to write custom OpenCV plugin for manipulating the video stream.

Community
  • 1
  • 1
Vahid
  • 312
  • 3
  • 13
  • No, I want to process the video in Java before streaming. The stream should be seen as a webcam stream in the same PC. – Karthi Keyan Jun 15 '16 at 11:49
  • @KarthiKeyan were you able to figure this out? I am looking to do something similar. Thanks – sv94 Feb 27 '18 at 06:31