I am trying to write audio encoded packets into a MP4 container.I have followed this sample code and instead of creating dummy frame, I am feeding real G.711 PCMU encoded frame into ffmpeg. The writing seems working and file size is increasing, but the mp4 is not playing using ffplay
or in VLC player.
Thanks in advance!
G.711 PCM encoded data is not supported by mp4
container. So I used mov
multimedia container instead. And for mp4
, I transcoded PCM into AAC which is supported by mp4
. See this for details.