Live data from Hacker News

FFmpeg to WebRTC

github.com

21–30 of 50 posts

Re: FFmpeg to WebRTC

#21
post #10

Note that there are a lot of tunings that you may need depending on what your latency tolerance and picture quality tolerance is. I would recommend following FFmpeg's streaming guide [0]. If you are trying to stream desktop, camera, and microphone to the browser, I would recommend pion's mediadevices package [1]. [0] - https://trac.ffmpeg.org/wiki/StreamingGuide [1] - https://github.com/pion/mediadevices

Thanks!

I've been wanting to build a hackday project that takes images captured from our satellites and builds a video stream. (we gets hundreds of new shots from space every minute, for fun create a screensaver-like streaming video feed of interesting pictures)

perhaps I can build it with either ffmpeg or pion (using pkg/driver/screen as a model to create a virtual canvas to draw on)

Re: FFmpeg to WebRTC

#23
[help request]

I created a commercial product Video Hub App and have been trying for a year to get streaming a video from a PC to an iPhone working (through a PWA, not a dedicated iOS app) and have had 0 success. I could get the video stream to play on a separate laptop through Chrome, but iOS Safari kicks my ass.

Does anyone have suggestions / ideas?

https://github.com/whyboris/Video-Hub-App

https://github.com/whyboris/Video-Hub-App-remote

Re: FFmpeg to WebRTC

#24

Earlier quoted context omitted.

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.

I believe that. I'm sure that I could have greatly reduced the latency, but tuning ffmpeg is not for the faint of heart, and my heart wasn't really into it. 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.

HLS has gotten better in this regard: https://developer.apple.com/documentation/http_live_streamin...

This provides capability for much lower latency, including effective push by blocking for playlist updates.

Re: FFmpeg to WebRTC

#26
Would using gstreamer instead of ffmpeg offer better or worse performance? (Less CPU usage on the sender side?) If anyone has experience with this setup, I’d love to know.

Re: FFmpeg to WebRTC

#27

Great work! This makes WebRTC much more accessible, it not being available in ffmpeg makes people default to worse alternatives.

hi, I dont intend to hijack this thread and I dont know if this is considered [OT]. I came across your post[0] about KVS from a while ago. Thank you for your work on pion and KVS. A quick question on the KVS, C implementation. Is this in anyway tied to be used with AWS Kinesis? Can it be used with Wowza for instance? [0] https://news.ycombinator.com/item?id=21951692

Yes it could! It is vendor agnostic, just provides a WebRTC API that can be used anywhere.

Re: FFmpeg to WebRTC

#28
post #23

[help request] I created a commercial product Video Hub App and have been trying for a year to get streaming a video from a PC to an iPhone working (through a PWA, not a dedicated iOS app) and have had 0 success. I could get the video stream to play on a separate laptop through Chrome, but iOS Safari kicks my ass. Does anyone have suggestions / ideas? https://github.com/whyboris/Video-Hub-App https://github.com/whybo…

Easy thing: iOs on iPhone does not support MediaFileExtensions, so you can't use tag with dynamic source.

You can however go the way described in the post: instead of requesting data though the data channel, you can initiate video/audio channels and make your streaming work pretty much like google hangouts, having your streamer as a participant.

It is not the recommended way though. But no other way for iOs anyways.

Re: FFmpeg to WebRTC

#30

Earlier quoted context omitted.

hi, I dont intend to hijack this thread and I dont know if this is considered [OT]. I came across your post[0] about KVS from a while ago. Thank you for your work on pion and KVS. A quick question on the KVS, C implementation. Is this in anyway tied to be used with AWS Kinesis? Can it be used with Wowza for instance? [0] https://news.ycombinator.com/item?id=21951692

Yes it could! It is vendor agnostic, just provides a WebRTC API that can be used anywhere.

Awesome! Thank you.
Post reply on HN