Streaming to service like facebook

For the developers that use FFmpeg in their software.
Post Reply
BasV
Posts: 1
Joined: Mon May 21, 2018 3:50 pm

Streaming to service like facebook

Post by BasV » Mon May 21, 2018 3:56 pm

Dear community,

I'm creating video frames in a (C++) program that I'd like to stream to facebook. I've seen ways to do this using the ffmpeg executable, but I wish to do it from my own code, so I've loaded the ffmpeg dll and I wish to call the correct functions to get this to work. However, I have no experience with rtmp, which is used by facebook, and I have no clue what to do with the info I've been given from facebook.

I'm trying to start a stream on my own facebook page, and facebook gives me:
- a server URL (rtmp://live-api.facebook.com:80/rtmp/
- a stream key

How do I connect to this rtmp url, and how do I send frames to it? I know how to encode my frames to H264 with ffmpeg, but I have no idea what format RTMP expects. Can the ffmpeg library do this for me?

Cheers!

Post Reply