Is this conversion possible from MPEG2 input buffer to MPEG4 input buffer?

  android, c++, multimedia

I am working on DVB AOSP project, I am getting the data in MPEG2 format from satellite, I want to convert this MPEG input buffer to MPEG4 format.
Is this conversion possible?
I heard about FFMPEG API.
But I am not sure will it helpful for me and how to use it.
I would be very grateful, If anyone can help for the same.
Thanks in advance.

Source: Windows Questions C++