OtherCrashOverride / hello_video_cx

Demonstrates using the hardware video codec in Odroid C0/C1(+)/C2.
0 stars 1 forks source link

Save frame to jpeg #1

Open hongson23 opened 6 years ago

hongson23 commented 6 years ago

Hello OtherCrashOverride, Thank you very much for your example. It is very useful for me. So, I would like to save frame after decode to jpeg, can you tell me how to make it? Thank alots

OtherCrashOverride commented 6 years ago

You will need to use amvideocap (or similar) to gain access to the video data. Then you can encode that data to a jpeg using libjpegturbo or using hardware as illustrated here: https://github.com/OtherCrashOverride/c2jpegenc

hongson23 commented 6 years ago

Hello OtherCrashOverride, Thank you for your reply, I am using S905X and installed Ubuntu Mate on it. Right now, I working on detection object project and input file is .h264 video. My project base on opencv framework to decode video and take frame for recognition but it just only decode with very slow fps (<=5). I would like to use AVE in S905X to decoding performance and after that i found your example which demonstrate how to use amcodec to decoding video. Thank you again for it :) I will try to use amvideocap to get frame follow your suggestion.