Hi,
I want to convert an mp4 file from iTunes to MP3 using ffmpeg.
For on certain file I get error:
~~~
Program: c:\Program Files\ffmpeg-20180121-78e884f-win64-shared\bin\ffmpeg.exe
File: ../../src/lame-3.100/libmp3lame/vbrquantize.c, Line 783
Expression: vbrsf[sfb] >= vbrsfmin[sfb]
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
~~~*
As the report lists you vbrquantice.c file I take it you can better tell me what's the issue, than the ffmpeg guy could.
Thanks,
Bernhard Döbler
Can you reproduce the problem with lame.exe too? Therefore you have to convert the mp4 file into a PCM (int or float wave) file first, LAME can't read mp4 format.
To investigate this issue, I would need a test sample and the command line settings which triggers that assert.
I call ffmpeg like
-vn -c:a libmp3lame -q:a 2 -compression_level 0 -cutoff 19500
and the exception is thrown. There's no exception without the cutoff argument, however.
I cannot reproduce this behaviour with the lame.exe (v3.100; x64) provided by http://www.rarewares.org/files/mp3/?C=M;O=D
Hey guys, just checking in - has anybody had a chance to look into it by any chance ?
I am seeing this issue too, and I am also doing encoding through FFMPEG.
I don't have a way to test it with all builds, but I know for sure that FFMPEG 3.3.4 did not have this issue, and FFMPEG 3.4.0 already had the issue. Could not test anything in between - I am using win64 static buids from zeranoe and they don't have any versions in between. Not exactly sure which version of lame libs is being used there, but I can dig into that if you think I would do better job doing it.
Here is the last part of the output from FFMPEG that might have some clues:
Stream mapping:
Stream #0:1 -> #0:0 (aac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to 'C:\Temp\edited.mp3':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
TSSE : Lavf57.83.100
Stream #0:0(und): Audio: mp3 (libmp3lame), 8000 Hz, stereo, fltp (default)
Metadata:
handler_name : SoundHandler
encoder : Lavc57.107.100 libmp3lame
Assertion failed!
Program: C:\Edited\ffmpeg.exe
File: ../../src/lame-3.100/libmp3lame/vbrquantize.c, Line 783
Expression: vbrsf[sfb] >= vbrsfmin[sfb]
Btw, thank you very much oh the wonderful person who is willing to spend time on this! No rush, there is a workaround (downgrade of ffmpeg or other options) and it's all opensource :) If you happen to fix the issue, please know - at least few (possibly many) people will be very happy and greatful :)
Unfortunately I am not a C guy, and cannot contribute on a necessary level. But if you happen to need help with anything from .NET world - would be glad to help.
I'm seeing this same issue happening to fre:ac users occasionally. See my post to the mailing list for more details and a proposed patch.