英文:
How to start, stop and save recording from USB camera
问题
我需要找到一种方法来通过我的Java桌面应用程序启动、停止和保存录像。
我已经将Sony相机通过easycap连接到了我的笔记本电脑。
是否有任何方法可以开始录制并将摄像头的视频存储到我的笔记本电脑?或者是否可以通过cmd/终端完成?我也尝试过使用ffmpeg。使用Java和cmd/终端,我可以开始录制,但没有停止的选项。当我使用cmd/终端开始录制时,通过点击q我停止了ffmpeg的录制,但我无法在Java中做到这一点。我还尝试过GitHub/sarxos-webcam-capture库。它可以与网络摄像头正常工作。
但我需要适用于普通相机(如Sony相机)的代码,以便可以通过USB从笔记本电脑远程控制它。
英文:
I need to find a way to start, stop and save recording with my Java Desktop application.
I have connected Sony camera over easycap to my laptop.
Is there any way to start recording and to store video from camera to my laptop? Or can it be done through cmd/terminal? I’ve tried ffmpeg also. Using Java and cmd/terminal I can start recording, but there is no option to stop. When I start recording with cmd/terminal, by clicking q I stop ffmpeg recording, but I cannot do that with Java. I also tried library GitHub/sarxos-webcam-capture. It works fine with web cameras.
But I need code for normal cameras like Sony to remote control it over usb from laptop.
专注分享java语言的经验与见解,让所有开发者获益!
评论