One of the kickers is that I need to do this for 30 cameras. I don't believe I need a buffer but I can allot disk space for this to happen if need. I want to convert the live stream over and turn it into MJPEG (or H.264). Oh, I'm not using ffmpeg camera component for this because I like to keep these kinds of thing modularized and make it easier to play with OpenCV on the side. The camera is an Axis 211 and it outputs MPEG4 video over rtsp (and http I believe). Step 2 JPG > FFMPEG > MP4 movie Then we will combine the separate MP4 movies into a single one Step 3 Multiple MP4 > FFMPEG > Joined MP4 final movie Prerequisits: The only thing you need is FFMPEG. Launch ffmpeg -rtsp_transport tcp -i -c copyĪnyone have any ideas what I can do to make this work with HA? IP Camera > RTSP > FFMPEG > JPG file Then in a seperate process we will use the JPG files as imput and do the following. Here is what I have in my nf at this time, it's pretty much cobbled together from other examples I found. So I was wondering if anyone else had experiences with doing this? I've read that I should be able to do this with vlc, but video is a bit over my head at this time and I can't make heads or tails of the options available. Unfortunately I've not been able to get it to really work, the first video frame from when ffserver starts is displayed in HA, but it never updates with new frames. What I have been trying, and not yet successful is using ffmpeg to capture the stream and ffserver to send it back out. However I struggle to send it to the web. I can use ffplay to play the video and ffmpeg to record the mjpeg stream. The big gotcha is what type of videos the viewer supports (and in RTSP’s case the middleman server as well.). provides a mapping from audio sample format to the corresponding FFmpeg decoder name. This has been working fine, but it's a bit resource intensive on my box (full linux server) so I was looking for lighter weight alternatives that just do a plain transcode and rebroadcast of the stream without any extra bits. DASH and RTSP are fully codec agnostic, meaning they are capable of wrapping around any type of video codec. ExoPlayer supports both live and on demand RTSP. What I have been doing is piping the stream into something like kerberos.io or motion and then consuming the mjpeg stream that those projects produce in HA. I have a Foscam C1 camera that only streams video via RTSP h.264, and that's no good for a camera in HA.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |