node-rtsp-rtmp-server icon indicating copy to clipboard operation
node-rtsp-rtmp-server copied to clipboard

Webcam as input

Open m-obi opened this issue 7 years ago • 2 comments

How can I use a webcam as input? At ffmpeg I just type "-i 0".

m-obi avatar Dec 16 '17 20:12 m-obi

@m-obi Please see this page. https://trac.ffmpeg.org/wiki/Capture/Webcam

iizukanao avatar Dec 18 '17 04:12 iizukanao

I was using tcp.coffee in examples. Now I'm trying with server.coffee. In config.coffee I changed serverPort to 5000. I started ffmpeg with: ffmpeg -f vfwcap -re -video_size 640x480 -i 0 -f rtsp -rtsp_transport tcp rtsp://localhost:5000/live/webcam

But VLC can't find the stream. Where I can set the stream name?

m-obi avatar Dec 18 '17 09:12 m-obi