You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
your project is the best I can find for implementing CVPixelBuffer and FPV extensions. I'm trying to use LFLiveKit to pass the CVPixelBuffer along to an RTMP destination. In your code, where would be the right place to pass the CVPixelBuffer frames to? I'm attempting this:
func videoProcessFrame(_ frame:UnsafeMutablePointer<VideoFrameYUV>!){
// let resolution = CGSize(width: CGFloat(frame.pointee.width), height: CGFloat(frame.pointee.height))
if frame.pointee.cv_pixelbuffer_fastupload !=nil{
// cv_pixelbuffer_fastupload to CVPixelBuffer
letcvBuf=unsafeBitCast(frame.pointee.cv_pixelbuffer_fastupload, to:CVPixelBuffer.self)
pixelBuffer = cvBuf
print("pushed video1")}else{
// create CVPixelBuffer by your own, createPixelBuffer() is an extension function for VideoFrameYUV
pixelBuffer =createPixelBuffer(fromFrame: frame.pointee)guardlet cvBuf = pixelBuffer else{return}print("pushed video2")}
session?.pushVideo(pixelBuffer)}
The stream technically starts as I'm getting an error on my server, but I don't know if I'm calling pushVideo in the right spot to continuously push the CVPixelBuffer frames along.
The text was updated successfully, but these errors were encountered:
not so much an error now - actually have the streaming working as I dropped LFLiveKit and used the built in DJIRTMPMuxer class, but I'm getting heavy intermittent distortion of the video (locally, too). I'm going to try testing some changes to videoFeed + videoProcessFrame functionality but not sure if you've seen this:
your project is the best I can find for implementing
CVPixelBuffer
and FPV extensions. I'm trying to use LFLiveKit to pass theCVPixelBuffer
along to an RTMP destination. In your code, where would be the right place to pass theCVPixelBuffer
frames to? I'm attempting this:The stream technically starts as I'm getting an error on my server, but I don't know if I'm calling
pushVideo
in the right spot to continuously push theCVPixelBuffer
frames along.The text was updated successfully, but these errors were encountered: