Well not being able to play the demuxed file was the fault of media player HC. However I was still getting bad aac files, just not the one in the job folder. It happens when you select normalize. Here is the log file for when the error occurs.
It's working great as long as I dont try to normalize the audio.
Here's the source test file I was using just in case.
http://www.mediafire.com/?ypd1ng4p76mgs1b
C:\>"M:\someone\My Videos\Apps\RipBot264\tools\bepipe\bepipe.exe" --script "import(^C:\Temp\RipBot264temp\job1\job1.avs^)" | "M:\someone\My Videos\Apps\RipBot264\Tools\fhgaacenc\fhgaacenc.exe" --profile lc --cbr 128 --adts --ignorelength - "C:\Temp\RipBot264temp\audio.aac"
***************************************
BePipe by dimzon
***************************************
Script used:
# BEGIN
import("C:\Temp\RipBot264temp\job1\job1.avs")
# END
Scanning for Audio Stream...
Found Audio Stream
Channels=2, BitsPerSample=16, SampleRate=48000Hz
Writing Header...
Writing Data...
0%ERROR: AVIStreamRead returned error.
C:\>"M:\someone\My Videos\Apps\RipBot264\tools\avs2yuv\avs2yuv.exe" "C:\Temp\RipBot264temp\job1\job1.avs" -o - | "M:\someone\My Videos\Apps\RipBot264\tools\x264\x264_x64.exe" --crf 26 --stats "C:\Temp\RipBot264temp\job1\job1.stats" --fps 24000/1001 --force-cfr --min-keyint 24 --keyint 240 --frames 722 --sar 1:1 --profile baseline --level 3.0 --aud --nal-hrd vbr --vbv-bufsize 1500 --vbv-maxrate 2500 --no-cabac --filter 0,0 --ref 3 --bframes 0 --b-adapt 0 --no-weightb --weightp 0 --b-pyramid none --subme 7 --aq-mode 1 --trellis 0 --partitions p8x8,b8x8,i4x4,p4x4 --no-8x8dct --me umh --stdin y4m --output "C:\Temp\RipBot264temp\video.264" -
y4m [info]: 160x90p 1:1 @ 10000000/417083 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile Constrained Baseline, level 3.0
C:\Temp\RipBot264temp\job1\job1.avs: 160x90, 10000000/417083 fps, 722 frames
x264 [info]: frame I:5 Avg QP:27.02 size: 2688
x264 [info]: frame P:717 Avg QP:30.61 size: 465
x264 [info]: mb I I16..4: 16.3% 0.0% 83.7%
x264 [info]: mb P I16..4: 0.3% 0.0% 2.0% P16..4: 33.0% 21.9% 3.1% 0.1% 2.3% skip:37.2%
x264 [info]: coded y,uvDC,uvAC intra: 81.0% 89.7% 81.2% inter: 21.5% 16.0% 7.7%
x264 [info]: i16 v,h,dc,p: 2% 80% 2% 17%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 8% 29% 15% 6% 8% 6% 11% 5% 11%
x264 [info]: i8c dc,h,v,p: 50% 30% 9% 11%
x264 [info]: ref P L0: 82.6% 9.5% 8.0%
x264 [info]: kb/s:92.09
encoded 722 frames, 61.18 fps, 92.09 kb/s
C:\>"M:\someone\My Videos\Apps\RipBot264\tools\mp4box\mp4box.exe" -tmp "C:\Temp\RipBot264temp" -add "C:\Temp\RipBot264temp\video.264":name="Boundin (2003) BDrip 1080p_002" -fps 23.976 -add "C:\Temp\RipBot264temp\audio.aac":lang=eng -mpeg4 -new "d:\Boundin (2003) BDrip 1080p_002.mp4"
AVC-H264 import - frame size 160 x 90 at 23.976 FPS
AVC Import results: 722 samples - Slices: 5 I 717 P 0 B - 728 SEI - 5 IDR
AAC import - sample rate 48000 - MPEG-4 audio - 2 channels
Saving d:\Boundin (2003) BDrip 1080p_002.mp4: 0.500 secs Interleaving
-------------------------
Elapsed Time: 00h:00m:17s