Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

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

Closed
shiv71 opened this issue Sep 29, 2020 · 4 comments

Comments

@shiv71
Copy link

shiv71 commented Sep 29, 2020

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
Copy link

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

@Krutika-chotara
Copy link

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

@github-actions
Copy link

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
Copy link

xeroxoid commented Mar 8, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants