-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FFmpegFrameRecorder encoding problem frame #2269
Comments
Maybe this class can help? |
if i get byte array directly from frame and push where getFormatPreview = 17 (ImageFormat.NV21) i have this result according to this documentation The default is ImageFormat.YUV_420_888. if i must use this class : http://bytedeco.org/javacv/apidocs/org/bytedeco/javacv/AndroidFrameConverter.html thanks |
请问您的这个问题解决了吗?或许我们能讨论一下 |
my problem is not resolved |
My situation is similar to yours, it seems to be due to compatibility issues with the front-end decoder. But I don't quite understand how FFmpeg.grabAVPacket is converted into H264 stream and Frame is converted into H264 stream. What's the difference? |
Hello
what is the format to encode a frame
i use the otaliastudios camera preview plugin for android
i get the frame in the addFrameProcessor function
the format of the frame is : 17
i get the bitmapbytes : final byte[] mdata = frame.getData();
and i put it directly the buffer
((ByteBuffer)yuvImage.image[0].position(0)).put(mdata);
but the video is black
i set the recorder with this parameters
recorder.setFormat("mp4");
recorder.setVideoCodecName("libopenh264");
i tried also to change
recorder.setPixelFormat();
thanks for your help
The text was updated successfully, but these errors were encountered: