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

限于喜欢 提交于 2019-12-24 14:28:44

问题


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:


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


来源:https://stackoverflow.com/questions/31160039/how-to-packet-encoded-aac-data-to-flv-file-with-ffmpeg-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!