Now BeHappy works Ok with wav header and without extrabytes at end.
I make a test with a source 5.1, 48 KHz (ac3) > 132 min. and BeHappy works Ok for wav > 4 GB and for a transcode to aac.
Relevant info of input.ac3
Code:
SampleRate 0 : 48000 KHz.
BitRate 15 : 448 Kb/s.
Audio coding mode (acmod) 7 : 3/2 - L, C, R, SL, SR
Low Frequency Effects channel 1 : Present
FileSize : 444358656 bytes.
Frames : 247968
Duration : 7934.976 seconds ( 2 h. 12 m. 14.976 s.)
Relevant info of output.wav
Code:
FileSize ....: 4570546220
RiffLength...: 4294967040 (= 0xFFFFFF00) Error: ... (always with > 4GB)
NumChannels .: 6
SampleRate ..: 48000
OffsetData ..: 44
DataLength ..: 4294967040 (= 0xFFFFFF00) Warning: assumed Datalength = 4570546176 (FileSize - 44)
Duration ...: 7934.976 sec., (2h. 12m. 14.976 s.)
For aac transcode I use:
behappy.extension.encoder.nero7aac.exe -o "D:\...\132.mp4"
-rr 48000 -rb 16 -rc 6 -vbr_streaming
-aacprofile_he -codecquality_high
Relevant info of output.mp4 (from Foobar2000 v0.8.3)
Code:
bitrate = 191
samplerate = 48000
channels = 6
aac_profile = HE AAC
codec = AAC
tool = Nero AAC Codec 4.2.1.0
samples = 380878848
FileSize = 189,944,318 Bytes (181.15 MB)
Length = 2:12:14.976
As you can see the duration is preserved exactly. Congratulations Dimzon.