I'm building an application in C++ that should use FFmpeg to send a live stream to Flash Media Server. For starters I would like to be able to send a .mp4 file. Using the FFmpeg .exe I can do it like this:
ffmpeg -re -i TEST.mp4 -vcodec libx264 -f flv rtmp://[host]/[application]/[stream]
How would you go about implementing something like that in code? I can only figure out how to read data, not write it. I have found functions to open input but nothing about how to connect to FMS. All write functions I can find seems to be how to write to file. Please advice.