BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.25k stars 4.61k forks source link

Output filtered sample buffer for encode h264 #2291

Open hotuy opened 8 years ago

hotuy commented 8 years ago

Hi everybody,

I'm trying to filter my video for live streaming Rtmp. I had success to filter my video and preview output my view, but i want to get buffer filtered, then encode it to h264 and push to my Wowza server by Rmtp.

//Already filted and view output

[self processVideoSampleBuffer:sampleBuffer];

//Continue, i want to get sampleBuffer had filtered to encode and push to my server

if (! [h264Encoder encodeSampleBuffer:sampleBuffer]) { dispatch_async(dispatch_get_main_queue(), ^{ [self stop]; }); }

Who can help me? Thank you very much!

larrytin commented 8 years ago

Hope helps you: GDLiveStreaming