Re: replacing ffserver?
Hi, Another solution that's lightweight and something that you might already use is actually nginx, you need to enable the RTMP (3rd party) module however. https://github.com/ut0mt8/nginx-rtmp-module There are countless of tutorials how to set this up with ffmpeg, just use Google Best regards, Daniel ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: replacing ffserver?
On 12/4/20 10:46 PM, Robert Huff wrote: Let me restate the issue. My goal is to be able to have someone visit (e.g.) "https://webcam.example.com:; and have the feed from the webcam appear in their browser. What I have at the moment: a) a system running: FreeBSD 13.0-CURRENT #0 r365372: Sun Sep 6 10:51:26 EDT 2020 amd64 b) a working webcam c) the latest version of webcamd, which finds the webcam and creates video0 and video1. So: I need to make the contents of video0 available on port . I have been unable to find a concise current method for how to do that. (Including anything with Apache, which seems like an obvious step.) Respectfully, Robert Huff Hi Robert, Did you try to use ustreamer[1] ? it's a light, easy to use, mjpeg streamer. No config required. The following command will do the jub for what you want. # ustreamer -l -s 0.0.0.0 -p Cheers, -- rodrigo [1] https://www.freshports.org/multimedia/ustreamer/ ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: replacing ffserver?
On Fri, 4 Dec 2020 16:46:25 -0500 Robert Huff wrote: > Let me restate the issue. > My goal is to be able to have someone visit (e.g.) > "https://webcam.example.com:; and have the feed from the webcam > appear in their browser. > What I have at the moment: > > a) a system running: > > FreeBSD 13.0-CURRENT #0 r365372: Sun Sep 6 10:51:26 EDT 2020 amd64 > > b) a working webcam > c) the latest version of webcamd, which finds the webcam and > creates video0 and video1. > > So: I need to make the contents of video0 available on port > . I have been unable to find a concise current method for how to > do that. (Including anything with Apache, which seems like an obvious > step.) > > > Respectfully, > > > Robert Huff > Again, simplest thing to try is multimedia/vlc. In that setup browser will pull and play single "endless video file" from server. Web server is vlc built-in. Fo this to work vlc must be built from port with options set [X] VORBIS [X] VPX Start from GUIMenu: Media->Capture Device->(choose your device). Choose "Stream". Tick "display lically" to be able to preview camera image in vlc vindow. Next -> HTTP -> Add Check/enter listening port number and url Next -> choose "VP80 + Vorbis (webm)" Write down generated command line transcoding parameters. Press "Stream" and point web broeser to ip:port/url See if it works or not. Do some adjustments, try again (turn off sound encoding? scale? fps? bitrate?) When everything is ok, start it without GUI (cvlc) with transcoding parameters you wrote previously. There is need to add input and output specification to command line however. So it may be look like cvlc -vvv "v4l2:///dev/video1" --sout "#transcode{vcodec=VP80,vb=800,acodec=none}:std{access=http,mux=webm,dst=0.0.0.0:8080}" I streamed webcamera 24/7 on the wild internet for a 6 months in 2012 similar way. I've used not webm/Vp8, but asf/msmpeg4, support of which was abandoned in all browsers somwere around 2014. So streaming today as I've done that is impossible. Again, other way is to use HLS. This should be more compatible, but more complex. I never tryied this myself, so can't give ready receipe. But Google returns some if I searching "ffmpeg HLS apache" "ffmpeg HLS nginx". For ex. first of them https://www.bogotobogo.com/VideoStreaming/ffmpeg_http_live_streaming_hls.php Idea behing that is ffmpeg will capture video and compress to h264, packing it into "mpegts" container, writing many short *.ts files into web directory, from where web server serves it. Also ffmpeg updates single "playlist m3u8" file there. Web browser (java script on page) pulls "playlist" and plays files one by one as new files appear. Old may be deleted. I think there's no OS specific except ffmpeg must be built with [X] X264 or [X] OPENH264 or both -c:v openh264 is way faster than -c:v libx264, but may be somehow more glitchy. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: replacing ffserver?
Let me restate the issue. My goal is to be able to have someone visit (e.g.) "https://webcam.example.com:; and have the feed from the webcam appear in their browser. What I have at the moment: a) a system running: FreeBSD 13.0-CURRENT #0 r365372: Sun Sep 6 10:51:26 EDT 2020 amd64 b) a working webcam c) the latest version of webcamd, which finds the webcam and creates video0 and video1. So: I need to make the contents of video0 available on port . I have been unable to find a concise current method for how to do that. (Including anything with Apache, which seems like an obvious step.) Respectfully, Robert Huff -- Hello ... my name is SARS-CoV-2. You are not wearing a mask? Prepare to die! ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: replacing ffserver?
On Thu, 3 Dec 2020 23:10:16 -0500 Robert Huff wrote: > Jonathan Chen writes: > > > Possibly multimedia/motion? > > On examination ... interesting program, but not what I'm > looking for. (Today. :-) > > > Respectfully, > > > Robert Huff > Probably simplest way is to use multimedia/VLC VLC is not just player, but server too, supports bunch of protocols,transports and codecs. Can run headless or with console or remote interface. ffserver never worked to me as expected and finally was abandoned by ffmpeg team somewere around 2009. What is your clients? If it is software players than you have wide range of transports, containers, codecs to play with in VLC. But if you want to watch video in browser, then modern browsers, excluding Microsoft's (as I think) support only one option on themselves: http (protocol) + webm (transport) + vp8 (video codec), + vorbis (audio). vp8 is heavy, slower than libx264, so you need fast machine. Services like youtube using HLS/DASH standards but this needs more complex setup like that: - tell ffmpeg to produce corresponding files *.m3u8 (playlist) and *.ts (chunks of video, let's say one file per 30s, and it is h264) into web directory of web server (apache, nginx, etc) - create web page with embedded java script (can't point to ready solution yet, but they are exist) that will re-read *.m3u8 and kick browser to start to play every new file every 30s. - serve all that to your clients with web server ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: replacing ffserver?
Jonathan Chen writes: > Possibly multimedia/motion? On examination ... interesting program, but not what I'm looking for. (Today. :-) Respectfully, Robert Huff -- Hello ... my name is SARS-CoV-2. You are not wearing a mask? Prepare to die! ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: replacing ffserver?
On Fri, 4 Dec 2020 at 12:41, Robert Huff wrote: > > > Hello: > I now have a working webcam and want to make its output available > (via https?) on my local net. > It is my understanding a common way to do this used to be > ffserver, a utility provided by ffmpeg. However: no such object > appears in the plist, nor has it become a separate port. > Is there well-liked replacement? Or perhaps even a how-to? Possibly multimedia/motion? https://motion-project.github.io/motion_config.html specifies a web-stream configuration option. Cheers. -- Jonathan Chen ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"