简体   繁体   中英

how to capture a video from /dev port in linux using java

i am trying to capture video from my /dev/video1 usb camera using java, i was wondering as to how to actually do this? my project is supposed to capture the video and stream it to another computer. is it also possible to set up an avconv server using java?

It's already been done for you so you might take a look into the existing projects.

v4l4j wouble be a great place to start .

update
As Andy Ross commented the library I linked is very low level and you may be looking into something more easy to use as gstreamer-java .

Java does not have an extensive support for media. You can use GStreamer JNI bindings for this or switch to QT or native C/C++ GStreamer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM