-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid length -1 / unable to find correct codec #4
Comments
They are, but your audio codec is currently not. Find a way to tell the length of a amr_wb packet and untrunc can work with your file. See |
This is the output from ffprobe for the reference file:
I think there is a mistake in your post, did you mean to specify two different methods? |
Oh yes. I meant |
I tried some packet sizes as per the table in https://hal.archives-ouvertes.fr/hal-01319434/document and now the output file is not empty but the sound is garbled (it does slightly sound like voice though!). I guess the bitrate is variable and so the packet size, but I'm not sure. I attach a sample of this format just in case anyone can help: |
I fixed it by hand like this:
|
Also, this program should do the same procedure I mentioned above: https://github.com/golimarrrr/fix-3gp |
You are lucky that your two files have matching audio frames sizes. This allows you to simply replace the header. |
I looked at your file and apparently sawb uses 0x44 as identifier. For determining the length avcodec does the job. |
It works but the playing length of the fixed file will be too short (will be the same the healthy file) |
I have a broken .3gp audio file whose codec is (I think) amr_wb. I tried to run untrunc with the broken file against two different correct files from the same phone (one shorter and another longer) and I get a 670-byte output file only.
I tried with the standard libav package and also compiling the latest libav from source, selecting both the default 'amr' codec and also the 'opencore amr' codec, but the output is the same.
Are audio-only files also supported?
The text was updated successfully, but these errors were encountered: