FFmpeg is ubiquitous
You may already know that the FFmpeg is used by Chromium,?Firefox, and VLC, to name a few. A couple of days ago, a friend of mine pointed me to a homebrew project that was willing to provide basic PC Gaming to Nintendo Switch streaming capabilities.
I went after to understand how it works, and to my surprise, it was done by using FFmpeg on both ends.
On the client-side, aka your machine, it starts an FFmpeg instance, grabs the "desktop" as its input, and then it sends the raw h264 through a TCP connection to the Nintendo Switch, but the audio was being sent over UDP though.
And on the server-side, aka the Nintendo Switch, it uses FFmpeg to decode, and SDL to render the frames.
Still, some days ago, Matthew McClure posted an article, teaching how to do live streaming directly from your browser, and what was used to accomplish the task? Yes, it was FFmpeg.
I'm still perplexed by the versatility of this incredible tool, you can do pretty much anything related to media. For sure, it also relies strongly on many libs such as, codecs like x264, measurements tools like VMAF among others.
I'll leave some links down below, so you can explore this amazing command line/library/converter/everything related to media.
https://developers.google.com/media/vp9/live-encoding#example_adaptive_bitrate_set
Software Engineer @ Avenue | Go | Backend | Content Creator at @laislima_dev | Microsoft MVP
8 个月Thanks for this article, you explain like it was simple ?? I always read your ffmpeg tutorial while I’m studying about FFMPEG and streaming
Travel Advisor | People to opportunity connector
11 个月Thank you, Leandro, for the article. I came across your exceptional FFMPEG tutorial on GitHub while searching for tutorials. It has been incredibly helpful. It would be greatly appreciated if you could also provide further insights into FFMPEG with audio streams.