ffmpeg ffplay porting - problem with display decoded RGB frame in native code

86 views
Skip to first unread message

android777

unread,
Jan 26, 2011, 4:01:45 PM1/26/11
to android-ndk
Hi,

I have been trying to port the ffmpeg to android. I am using the
ffplay from ffmpeg code. I call avcodec_decode_video2 to decode the
video and I think it will output the frame in native format. Now I
call sws_getContext and sws_scale to change the format of the frame to
PIX_FMT_RGB24, so that i can display an RGB image.

I get the frame, but I am not sure whether it is in RGB format or not.
And when I send it to java code through JNI, the result is nothing. I
don't understand how to display this frame?

Can somebody please help me how I can proceed with this? Also I need
to know whether the rgb frame that I get in native code is correct or
not?

alan

unread,
Jan 27, 2011, 4:31:11 AM1/27/11
to andro...@googlegroups.com
save the frame to a file then examine its contents

Krishna Shetty

unread,
Aug 8, 2011, 3:21:25 AM8/8/11
to andro...@googlegroups.com
Hi,
I just started my work on porting ffmpeg on Android.
Are you able to achieve this successfully?
What do you do for the ffplay? It works for me on Linux PC. I am not sure, how I can port this to Android.

thank you,
Krishna
Reply all
Reply to author
Forward
0 new messages