我正在使用VLCj API编写一个网络摄像头录制应用程序。我需要关于视频流中运动检测的帮助。如果视频流中没有检测到任何运动,则录制将停止。
我尝试在sout链中使用“-video-filter=motion”,但没有检测到任何动作。
我的sout链:
我尝试在sout链中使用“-video-filter=motion”,但没有检测到任何动作。
我的sout链:
String[] options = {
":sout=#transcode{vcodec=mp2v,vb=4096,scale=1,acodec=mpga,ab=128,channels=2,samplerate=44100}:duplicate{dst=file{dst=" + fileName + "},dst=display,select=noaudio,video-filter=motion} --video-filter=motion",":input-slave=alsa://hw:0,0" };
期待您的回复。提前感谢。
:sout
选项才能使其正常工作。 - ecle