I want to play FLV files in Android. So I decided to convert the FLV file to mp4 or 3gp (for which there is a decoder in Android). OpenCore can be used for conversion. I looked at the opencore code, there is a class in opencore "/ android / external / opencore / fileformats / mp4 / composer" to create the mp4 file. It has apis like
AddTrack AddSampleToTrack
I have to provide the input as frames, but in Flv I get the sound frame of Sorenson Video and Mp3 (after doing some trivial string operations to remove the headers). Can I use them directly as input in apis above or is there a good way to convert flv to mp4? I also looked at "/ android / external / opencore / nodes / pvmp4ffcomposernode", but it reads from ports that cannot send input to this class.
Let me know your thoughts.
Vinay source share