still won't survive reboots, and lord knows i can't memorize that ffmpeg command. Please help, i'm so close, just need ffmpeg to return me to my prompt, but keep the cam connected to /dev/video0 and have it survive reboots.Įdit: i pressed ctrl-c and returned to my prompt. i don't know how to ask google questions. google searches fall flat, because google wants to assume what i want instead of listening, either that, or. How do i make it so i don't have to type that command everytime? i want the cam available even after a reboot, but don't know how to make that happen. Works great, but can't get the thing to return me to my prompt - ffmpeg program shows it's recording.and recording, and never returns me to my prompt. It took me forever to figure out, but the command i use to get my v380 to work on my linux box (ubuntu 20.04) is:įfmpeg -re -rtsp_transport tcp -i rtsp://192.168.1.29:554/ch00_1 -f v4l2 /dev/video0 I tried ffmpeg -re -i rtsp://192.168.1.16/play2.sdp -f video4linux2 -input_format mjpeg -i /dev/video0 but there is an error with v4l2 (v4l2 not found).ĭoes anyones has an idea how to convert a stream from an IP-camera to a virtual camera? My problem is to make the link between these two steps (receive the rstp stream and write it to the virtual webcam). the stream from the IP camera is available with: rtsp://IP/play2.sdp for a Dlink DCS-5222L camera. The virtual device is detected and can be feed with a video (.avi) with a command like: ffmpeg -re -i testsrc.avi -f v4l2 /dev/video1 firstly, I created a virtual device with v4l2loopback (the command was: sudo modprobe v4l2loopback). I found software like IP Camera Adapter, but they don't work well (2-3 frames per second and delay of 2 seconds) and they work only on Windows, I prefer use Linux (if possible). So I try to convert the IP camera's stream to a virtual webcam. Using the command: ffmpeg -y -f vfwcap -r 25 -i 0 c:out. Using the command: ffmpeg -y -f vfwcap -i list I see that (as expected) FFmpeg finds the input stream as stream 0. However webrtc seems to support only webcams. I have the camera-like device that produces video stream and passes it into my Windows-based machine via USB port. File-> Open Network-> URL Again, it will take a few seconds (5-10) to begin displaying the video.I want to use an IP camera with webrtc. To receive and play the video: ffplay4 -i may take a few seconds to start up and there will be a few errors at first, but the video should begin playing in ffplay4 within a couple seconds.īonus: this stream is also viewable with VLC (version 3.0.12). In this example, it is sending an MPEG transport stream over UDP to the loopback address 127.0.0.1:9988 but that could just as easily be the IP address and port of another Mac: ffmpeg \ ffmpeg -i 'rtsp://path/to/cam' -s 320x240 -f image2 -vf fpsfps3 cache/04d.jpg. It´s not real streaming, but is cross browser, and solves the problem pretty well. The video capture/sending and the video receipt/playback can be done on the same machine, or ffmpeg can send to a remote IP. To solve the storage problem, used other crontab task that delete the files with more than 1 minute. On the 2012 MBP, the first video device (index 0) is FaceTime HD Camera (Built-in) and the first audio device (index 0) is Built-in Microphone. If you cannot find your P2p CCTV camera in the left section or it isnt working. Those are automatic discovery (youll see your camera in our software) and manual discovery (without camera website). List the audio and video input devices with ffmpeg -f avfoundation -list_devices true -i "" There are two connection options in Camlytics smart camera software for Windows PC to login and view your P2p IP camera. ffplay version 4.3.2 (my executable was named ffplay4).I successfully implemented something close to this (not true RTSP, but instead RTP streaming over UDP) with the following hardware and software:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |