obs-virtual-cam icon indicating copy to clipboard operation
obs-virtual-cam copied to clipboard

How can I redirect the output file to the virtual camera using ffmpeg in Windows?

Open ugurkebir opened this issue 5 years ago • 0 comments

I'm trying to share my computer's camera with the remote computer. Local machine is linux(ubuntu 20.04.1) and remote machine is windows 10. I created virtual camera in windows machine with use OBS virtual cam and I want to share camera from local to remote machine. When I try to share camera, windows machine saw "OBS-Camera" as a recording file. However, "OBS-Camera" was supposed to see as a virtual camera. To give a better example, I can access virtual cam with this command -f v4l2 /dev/video6" in Linux, but in windows the command -f sdl "OBS-Camera" did not work.

I tried code below: ffmpeg.exe -f mpegts -i udp://192.168.5.5:5003 -pix_fmt yuv420p -f dshow video="OBS-Camera"

I've got this error:

[NULL @ 000001f7d1b107c0] Requested output format 'dshow' is not a suitable output format
video=OBS-Camera: Invalid argument

I tried code below: ffmpeg.exe -f mpegts -i udp://192.168.5.5:5003 -pix_fmt yuv420p -f rawvideo "OBS-Camera" Then, it start to record stream as OBS-Camera file, not virtual camera!

How can I redirect the output file to the OBS virtual camera ?

ugurkebir avatar Jan 27 '21 17:01 ugurkebir