Re: Resurrecting/Preserving the Helix MP3 encoder
Reply #355 – 2024-04-11 11:20:28
The newly supported Wave64, RF64, BW64 input formats aren't limited to 4 GB sizes, the ignore length option should not be used with these. It could only be useful in a very special circumstances where you write an invalid regular WAV file that's over 4 GB long and want to encode that without using pipes. Hmm, I get 3 h 22 min MP3 without -IL, whereas the source WAV RF64 is 3 h 56 min. Does it mean that FFMPEG writes invalid WAV RF64 here?$ mediainfo allegro.wav General Complete name : allegro.wav Format : Wave Format settings : PcmWaveformat File size : 47.7 MiB Duration : 4 min 43 s Overall bit rate mode : Constant Overall bit rate : 1 411 kb/s Producer : TASCAM HD-P2 Description : tTAPE=090228 Encoded date : 2009-02-28 21:21:29 Audio Format : PCM Format settings : Little / Signed Codec ID : 1 Duration : 4 min 43 s Bit rate mode : Constant Bit rate : 1 411.2 kb/s Channel(s) : 2 channels Sampling rate : 44.1 kHz Bit depth : 16 bits Stream size : 47.7 MiB (100%) $ ffmpeg -stream_loop 49 -i allegro.wav -f wav -acodec pcm_f32le -rf64 auto -write_bext 1 out.wav $ mediainfo out.wav General Complete name : out.wav Format : Wave Format profile : RF64 Format settings : WaveFormatEx File size : 4.66 GiB Duration : 3 h 56 min Overall bit rate mode : Constant Overall bit rate : 2 822 kb/s Encoded by : TASCAM HD-P2 Recorded date : 2009-02-28 Encoded date : Writing application : Lavf61.3.100 Comment : tTAPE=090228 Audio Format : PCM Format profile : Float Codec ID : 3 Codec ID/Hint : IEEE Duration : 3 h 56 min Bit rate mode : Constant Bit rate : 2 822 kb/s Channel(s) : 2 channels Sampling rate : 44.1 kHz Bit depth : 32 bits Stream size : 4.66 GiB (100%) $ hmp3case out.wav out.mp3 pcm file: channels = 2 bits = 32, rate = 44100 type = 3 Layer III mode 1 STEREO 44100Hz VBR-50 -------------------------------------------------------------------------------------- Frames | Bytes In / Bytes Out | Progress | Current/Average Bitrate 466038 | 4294967296 / 196657861 | 100% | 126.59 / 129.23 Kbps -------------------------------------------------------------------------------------- Compress Ratio 4.578798% $ mediainfo out.mp3 General Complete name : out.mp3 Format : MPEG Audio File size : 188 MiB Duration : 3 h 22 min Overall bit rate mode : Variable Overall bit rate : 129 kb/s Writing library : LAMEH5.22 Audio Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Format settings : Joint stereo / MS Stereo Duration : 3 h 22 min Bit rate mode : Variable Bit rate : 128 kb/s Channel(s) : 2 channels Sampling rate : 44.1 kHz Frame rate : 38.281 FPS (1152 SPF) Compression mode : Lossy Stream size : 188 MiB (100%) Writing library : LAMEH5.22 Encoding settings : -m -V 5 -q 0 -lowpass 15.8 $ hmp3case -IL out.wav out-il.mp3 pcm file: channels = 2 bits = 32, rate = 44100 type = 3 Layer III mode 1 STEREO 44100Hz VBR-50 -------------------------------------------------------------------------------------- Frames | Bytes In / Bytes Out | Progress | Current/Average Bitrate 542882 | 5003191296 / 229035869 | 100% | 63.72 / 129.20 Kbps -------------------------------------------------------------------------------------- Compress Ratio N/A $ mediainfo out-il.mp3 General Complete name : out-il.mp3 Format : MPEG Audio File size : 218 MiB Duration : 3 h 56 min Overall bit rate mode : Variable Overall bit rate : 129 kb/s Writing library : LAMEH5.22 Audio Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Format settings : Joint stereo / MS Stereo Duration : 3 h 56 min Bit rate mode : Variable Bit rate : 128 kb/s Channel(s) : 2 channels Sampling rate : 44.1 kHz Frame rate : 38.281 FPS (1152 SPF) Compression mode : Lossy Stream size : 218 MiB (100%) Writing library : LAMEH5.22 Encoding settings : -m -V 5 -q 0 -lowpass 15.8 However, W64 is encoded as expected without -IL, i.e. MP3 duration is the same as the source W64.$ ffmpeg -stream_loop 49 -i allegro.wav -f w64 -acodec pcm_f32le out.w64 $ mediainfo out.w64 General Complete name : out.w64 Format : Wave64 File size : 4.66 GiB Duration : 3 h 56 min Overall bit rate mode : Constant Overall bit rate : 2 822 kb/s Audio Format : PCM Format profile : Float Codec ID : 3 Codec ID/Hint : IEEE Duration : 3 h 56 min Bit rate mode : Constant Bit rate : 2 822 kb/s Channel(s) : 2 channels Sampling rate : 44.1 kHz Bit depth : 32 bits Stream size : 4.66 GiB (100%) $ hmp3case out.w64 out-w64.mp3 pcm file: channels = 2 bits = 32, rate = 44100 type = 3 Layer III mode 1 STEREO 44100Hz VBR-50 -------------------------------------------------------------------------------------- Frames | Bytes In / Bytes Out | Progress | Current/Average Bitrate 542882 | 5003160800 / 229035869 | 100% | 63.72 / 129.20 Kbps -------------------------------------------------------------------------------------- Compress Ratio 4.577823% $ mediainfo out-w64.mp3 General Complete name : out-w64.mp3 Format : MPEG Audio File size : 218 MiB Duration : 3 h 56 min Overall bit rate mode : Variable Overall bit rate : 129 kb/s Writing library : LAMEH5.22 Audio Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Format settings : Joint stereo / MS Stereo Duration : 3 h 56 min Bit rate mode : Variable Bit rate : 128 kb/s Channel(s) : 2 channels Sampling rate : 44.1 kHz Frame rate : 38.281 FPS (1152 SPF) Compression mode : Lossy Stream size : 218 MiB (100%) Writing library : LAMEH5.22 Encoding settings : -m -V 5 -q 0 -lowpass 15.8
• Join our efforts to make Helix MP3 encoder great again • Opus complexity & qAAC dependence on Apple is an aberration from Vorbis & Musepack breakthroughs • Let's pray that D. Bryant improve WavPack hybrid, C. Helmrich update FSLAC, M. van Beurden teach FLAC to handle non-audio data