Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

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

Open
ugurkebir opened this issue Jan 27, 2021 · 0 comments

Comments

@ugurkebir
Copy link

ugurkebir commented Jan 27, 2021

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 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant