tanersener / mobile-ffmpeg

FFmpeg for Android, iOS and tvOS. Not maintained anymore. Superseded by FFmpegKit.
https://tanersener.github.io/mobile-ffmpeg
GNU General Public License v3.0
3.85k stars 787 forks source link

Could not find tag for codec amr_nb in stream #1, codec not currently supported in container #560

Closed shiv71 closed 3 years ago

shiv71 commented 3 years ago

I am getting this issue in android emulatror api level 28,29,30

E/mobile-ffmpeg: [mp4 @ 0xe61aa710] Could not find tag for codec amr_nb in stream #1, codec not currently supported in container E/mobile-ffmpeg: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

Aditya94A commented 3 years ago

Were you able to find a solution for this? This seemed to be have worked well with bravobit library..

Krutika-chotara commented 3 years ago

Did you found any solution? I am also facing same issue in emulator with api level 30.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

xeroxoid commented 3 years ago

The problem seems to be that MP4 containers do not support the amr_nb codec.

To fix this we just re-encoded the audio of the file using the -acodec aac flag instead of -acodec copy. Mind you the flag can also be written as the aliased versions -c:a aac and -c:a copy