<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello, <div><br></div><div>I have a use case that is conceptually pretty simple: I need to programmatically (i.e. in code using the ffmpeg libraries) capture video from a webcam, and stream it to a server. The devil's always in the details, here are mine: </div><div><br></div><div>1. I am capturing video from a webcam on Mac OS X using QTKit (already works, no problem there). </div><div>2. I need to feed the frames captured in 1 to ffmpeg, and transcode the video to flv format. </div><div>3. I need to push the flv video frames via RTMP to Wowza streaming server. </div><div><br></div><div>Now, I have proofed very near to this concept by successfully using the ffmpeg binary to transcode and stream to Wowza using the following command from the console: </div><div><br></div><div>ffmpeg -i ~/SampleVideo.mp4 -re -r 24 -b:v 1000k -f flv <a href="rtmp://localhost/live/SAMPLE_STREAM">rtmp://localhost/live/SAMPLE_STREAM</a></div><div><br></div><div>This works, and I can successfully consume this published video to Wowza in a video player, so that would seem to be a solid indication that ffmpeg can do what is being attempted. The guidance I need from all of you ffmpeg gurus on the list, is some guidance for how to convert the command line above to code, i.e. what libraries to use (and how to use them programmatically) to accomplish the same transcoding and streaming. </div><div><br></div><div>If anyone can lend some guidance, sample code, and/or maybe a good coffee to drink while figuring this out, I would be very appreciative. </div><div><br></div><div>Thanks in advance, </div><div><br></div><div apple-content-edited="true">
Brad<div><br></div><div>Brad O'Hearne</div><div>Founder/Lead Developer</div><div>Big Hill Software LLC</div><div><a href="http://www.bighillsoftware.com">http://www.bighillsoftware.com</a></div><div><br></div><br class="Apple-interchange-newline">

</div>
<br></body></html>