FFmpeg to WebRTC
github.com
FFmpeg to WebRTC
1–10 of 50 posts
Re: FFmpeg to WebRTC
#2Re: FFmpeg to WebRTC
#3I did something similar for Mac, a while back[0]. I never really developed it much farther, because of the latency issues. Since it was for surveillance cameras, that was a showstopper. [0] https://github.com/RiftValleySoftware/RVS_MediaServer
Re: FFmpeg to WebRTC
#4It was for audio and it was webrtc to ffmpeg. I was streaming a group chat directly to s3.
It mostly worked, but the only problem I ran into was syncing issues if a user had a spotty connection. The solution seemed to involve using rtmp to synchronize but I didn’t have a chance to go down that rabbit hole.
Re: FFmpeg to WebRTC
#5For latency, specify a short GOP size, e.g. `-g 50`
Re: FFmpeg to WebRTC
#6I did something similar for Mac, a while back[0]. I never really developed it much farther, because of the latency issues. Since it was for surveillance cameras, that was a showstopper. [0] https://github.com/RiftValleySoftware/RVS_MediaServer
I think we evaluated something like this (ffmpeg to rtc with kurento) to broadcast the screen of mobile devices to a web browser. If I remember correctly, with the correct ffmpeg settings, latency became more than acceptable.
Anyway, HLS has latency, just by definition. The "H" stands for "HTTP" (a synchronous protocol, based on TCP). RT[S]P uses UDP or RDT, and is isochronous.
Re: FFmpeg to WebRTC
#7For `-f h264`, `-bsf:v h264_mp4toannexb` is not needed. It will be automatically inserted as needed, with ffmpeg 4.0 or later. For latency, specify a short GOP size, e.g. `-g 50`
Re: FFmpeg to WebRTC
#8Re: FFmpeg to WebRTC
#9I can zoom up to factor 10 like this:
ffmpeg -i someimage.jpg -vf "zoompan=z='10-on/100':d=1000:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':s=1920x1437" zoom.mp4
But everything above a zoom of 10 seems to fail. Is there a hard limit in the code for some reason? Some way to overcome this?
Or is there another nice linux or online tool to do zooms into images?
Re: FFmpeg to WebRTC
#10If you are trying to stream desktop, camera, and microphone to the browser, I would recommend pion's mediadevices package [1].