How to packet encoded AAC data to flv file with ffmpeg API?

538 views Asked by At

I have captured the Audio data from Android Microphone and encoded them by MediaCodec.

My question is:

How to packet encoded AAC data to flv with ffmpeg ?

1

There are 1 answers

0
Ely On

If you only want to packet audio into flv :

ffmpeg -i input.aac -c copy out.flv

If you have a video track to go with :

ffmpeg -i input.mp4 -i input.aac -c copy out.flv