News:

--

Main Menu

BUG: Problems with AMR-NB audio codec

Started by Rhotax, December 28, 2013, 11:55:12 PM

Previous topic - Next topic

Rhotax

So I have *.3gp file (from mobile phone). I can play that file in VLC media player with sound.
I want to cut-out some parts without decompression.
I choose COPY for Video and Audio.
As result I get video file but...without sound (in VLC media player).

The input audio codec is AMR-NB.
Here http://en.wikipedia.org/wiki/Avidemux#Supported_formats you can read that Avidemux supports AMR-NB as input but not as output. So maybe this is the problem ?

So I set Audio Output as MP3, PCM...and then every time when I click SAVE....avidemux crash and quits.
I try to "Save audio" only as mp3 or pcm - and once again - crash.


styrol

And selected container format is AVI? Bad idea.

Try:

Video: "Copy"
Audio: "AAC" ("Copy" may work too)
Container: MP4 ("mp4v2")

mean

I fixed something in the nightlies that might help
Could you provide a sample ?

Rhotax

Quote from: styrol on December 29, 2013, 01:12:06 AM
Video: "Copy"
Audio: "AAC" ("Copy" may work too)
Container: MP4 ("mp4v2")
I'd try MP4 and AAC this is the result (check attached image)

Quote from: mean on December 29, 2013, 07:39:01 AM
[..]Could you provide a sample ?
https://www.mediafire.com/?9u8r12ozal0ichl
It's some other file but from this same phone, this same format, codec,etc. It's just smallest/shortest I've found :)

mean

Do you have sound when playing it inside avidemux ?
For the error above, try adding the resample filter to 44.1 khz

Rhotax

#5
Well It's another important thing that I forget to mention ââ,¬â€ when I hit PLAY on this 3gp file ââ,¬â€ avidemux quits without any error message.
Also when I PLAY output file (this file without sound hearing) in avidemux ââ,¬â€ quits without any error message.

And with filter to 44.1 khz ââ,¬â€ avidemux quits but with this Windows XP error message like "...do you want send information about this error to microsoft".

AQUAR

It will work with avidemux 2.5.6.
So try that version of avidemux (whilst mean looks into the support issue for that audio!).

styrol

Quote from: Rhotax on December 30, 2013, 11:52:24 AM
And with filter to 44.1 khz ââ,¬â€ avidemux quits

You also have to set the number of channels to "Stereo" in the filter settings to make the audio track more compatible (to encoder and decoder software) and it should work (it works on my machine). So try the following settings using the nightly version of Avidemux:

Video: Copy
Audio: AAC (lav): Configure "Bitrate= 56kbps"; Filters "Remix=Stereo" and "Sample Rate= 44khz"
Container: MP4 ("mp4v2")

To mean: On my Homebrew built OS X version of Avidemux 2.6svn:

AAC (faac): Resampling to 44kHz works (otherwise it crashes)
AAC (lav): If you don't change any settings the following meaningful message appears
Quote"Cannot setup audio encoder, make sure your stream is compatible with audio encoder (number of channels, bitrate, format)"
I have sound playing the source and the output file by Avidemux. The output file is compliant to the MP4 file format ââ,¬â€œ QuickTime Player (good for testing) is able to play it.

AQUAR

Those settings still crash 6.7 on save or play.

styrol

Quote from: AQUAR on December 31, 2013, 03:32:25 AM
Those settings still crash 6.7 on save or play.
A part of the issue seems to be a Windows specific problem then.

AQUAR

I don't even get the message from the audio encoder.
So maybe its an issue with compiling the audio encoder for windows?   

Rhotax

Quote from: AQUAR on December 30, 2013, 12:28:21 PM
It will work with avidemux 2.5.6.
On 2.5.6 everything works fine :)
I mean the sound is missing with the video but you can correct it with the "Shift" option (for me it's about -800 ms)
Thank you very much.

mean