Re: QAAC CLI Encoder errors.
I know very little about QAAC, does it accept data by standard in (that is what you have configured dBpoweramp to do) or by temp files?
Re: QAAC CLI Encoder errors.
It accepts data through a pipe. It's very odd, if I pass -o [outfile] -q2 -he -v 128 -
It will fail.
If I pass -o [outfile] -q2 -v 128 -
It will run. If I pass the failing argument in command line with a .wav. It works. It's very peculiar.
Re: QAAC CLI Encoder errors.
He mode possibly does not work at 128kbps
Re: QAAC CLI Encoder errors.
per the encoder it should apply HE to anything except tVBR. The HE encoding can and will be lower than the specified bitrate if over say... 160.
I'm curious, is there a way to enable debugging that i may see exactly what arguments dbpoweramp is giving the encoder?
Re: QAAC CLI Encoder errors.
Ok, i found the debug option.
[CODE]Splitting Command Line:Done
->-> [dBCoreConverter::ReaddBCommandFile]
<-<- [dBCoreConverter::ReaddBCommandFile]
Decodes [clDecoder::Get]
BatchID [clDecoder::Set]
->-> [cldBCodecHandler::LoadEncoder]
Loading Encoder 'C:\Program Files (x86)\Illustrate\dBpoweramp\encoder\CLI Encoder.DLL'
<-<- [cldBCodecHandler::LoadEncoder]
BatchID [clEncoder::Set]
->-> [dBCoreConverter::StripCoreConverterCmds]
<-<- [dBCoreConverter::StripCoreConverterCmds]
SendRawUnCompressed [clEncoder::Get]
Communicate [clDecoder::Get]
Communicate [clEncoder::Get]
NeedHQAudio [clEncoder::Get]
Decode As [clDecoder::Set]
->-> [clDecoder::Open]
Opening file 'Y:\Adele\2008-19\12-Hometown Glory.flac' for read access: Opened
Init FLAC:
Reading Meta Data:
Contains picture block, size (bytes): 22933 type: 3
contained 13 tags:
ALBUM: 19
ARTIST: Adele
Artistsort: Adele
ASIN: B000YIXBUO
Year: 2008
GENRE: soul
female vocalists
british
singer-songwriter
indie
ORGANIZATION: XL Recordings
TITLE: Hometown Glory
Track: 12
replaygain_album_gain: -7.80 dB
replaygain_album_peak: 1.000000
replaygain_track_gain: -8.83 dB
replaygain_track_peak: 0.994934
->-> [clDecoder::ReadIDTags]
<-<- [clDecoder::ReadIDTags]
->-> [clDecoder::FillAudioProps]
Encoder: FLAC reference libFLAC 1.2.1 20070917
Sample Count: 11,961,096
ID Tag: Vorbis Comments
Contains: Album Art, CRC, ReplayGain, ID Tag [Vorbis Comments]
<-<- [clDecoder::FillAudioProps]
->-> [clDecoder::FillAudioInfo]
Uncompressed WFX (sent to db): Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 44100 Bytes Per Second: 176400 Block Align: 4 CB Size: 0
Audio Length: 271226 mili-seconds 25556408 bytes 1411 kbps
<-<- [clDecoder::FillAudioInfo]
Creating Decode Buffers: Created
<-<- [clDecoder::Open]
SendOverReplayGainTags [clEncoder::Get]
->-> [clEncoder::BeginConversion]
Converting to 'd:\aacout\Adele\2008-19\12-Hometown Glory.m4a.tmp.m4a' encoder settings ' -cli_encoder="C:\Program Files (x86)\Illustrate\dBpoweramp\encoder\CLI Encoder\qaac.exe" -cli_cmd="-a 64000-he-o [outfile] --no-optimize -q2 -" -selection="1,5,1"'
Using Encoder 'C:\Program Files (x86)\Illustrate\dBpoweramp\encoder\CLI Encoder\qaac.exe'
Command Line '-a 64000-he-o d:\aacout\Adele\2008-19\12-HOM~4.M4A --no-optimize -q2 -'
Input Wave Format:Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 44100 Bytes Per Second: 176400 Block Align: 4 CB Size: 0
Output Wave Format:Format Tag: 1 Channels: 2 Bits per Sample: 16 Samples Per Second: 44100 Bytes Per Second: 176400 Block Align: 4 CB Size: 0
Passing Wave Header: Yes
Using StdInput Pipe: Yes
dBpoweramp Writing Tags: Yes
<-<- [clEncoder::BeginConversion]
Communicate [clDecoder::Get]
Communicate [clEncoder::Get]
Encoding To: CLI Encoder
Encoder Cmd Line: -cli_encoder="C:\Program Files (x86)\Illustrate\dBpoweramp\encoder\CLI Encoder\qaac.exe" -cli_cmd="-a 64000-he-o [outfile] --no-optimize -q2 -" -selection="1,5,1"
============= CONVERSION BEGIN =============
*** Error: Error writing audio data to StdIn Pipe [clEncoder::EncodeBlock]
============= CONVERSION END =============
Communicate [clDecoder::Get]
Communicate [clEncoder::Get]
->-> [dBCoreConverter::CloseDecoder]
->-> [clDecoder::Close]
<-<- [clDecoder::Close]
->-> [clEncoder::EndConversion]
<-<- [clEncoder::EndConversion]
File Size Check (before overwrite final): 0 bytes Filename: d:\aacout\Adele\2008-19\12-Hometown Glory.m4a.tmp.m4a
Communicate [clDecoder::Get]
Communicate [clEncoder::Get]
Conversion completed in 125 mili-seconds x2169 realtime encoding
File Size Check (core converter exit): 0 bytes Filename: d:\aacout\Adele\2008-19\12-Hometown Glory.m4a
->-> [clDecoder::Close]
<-<- [clDecoder::Close]
[/CODE]
TLDR
[CODE]Encoder Cmd Line: -cli_encoder="C:\Program Files (x86)\Illustrate\dBpoweramp\encoder\CLI Encoder\qaac.exe" -cli_cmd="-a 64000-he-o [outfile] --no-optimize -q2 -" -selection="1,5,1"[/CODE]
:)
*edit*
I've appended spaces to every line after arguments yet im still getting errors in the pipe. The same error that is.
Re: QAAC CLI Encoder errors.
Ok all problems seem to be fixed now. No stdin errors, HE encoding is working.
For HE encoding to work at maximum HE quality choose cVBR Highest Quality (-v0 or Slider all the way to the left)
[CODE][codec]
.m4a
qaac.exe
[msgifnoencoder]
Before using this encoder a seperate component must first be installed from https://sites.google.com/site/qaacpage/ .
[radio&slider]
4
24
292
1
10
0
Quality (tVBR)
5
Q4 (~40kbps)
-V 4
Q13 (~45kbps)
-V 13
Q22 (~75kbps)
-V 22
Q31 (~80kbps)
-V 31
Q40 (~95kbps)
-V 40
Q49 (~105kbps)
-V 49
Q58 (~115kbps)
-V 58
Q63 (~128kbps)
-V 63
Q68 (~135kbps)
-V 68
Q77 (~150kbps)
-V 77
Q86 (~165kbps)
-V 86
Q95 (~195kbps)
-V 95
Q104 (~225kbps)
-V 104
Q113 (~255kbps)
-V 113
Q122 (~285kbps)
-V 122
Q127 (~320kbps)
-V 127
Q0 (Highest Possible)
-V 0
[/sliderend]
80
0
Bit Rate (ABR)
9
Average Bit Rate: 16 Kbps
-a 16
Average Bit Rate: 24 Kbps
-a 24
Average Bit Rate: 32 Kbps
-a 32
Average Bit Rate: 48 Kbps
-a 48
Average Bit Rate: 56 Kbps
-a 56
Average Bit Rate: 64 Kbps
-a 64
Average Bit Rate: 80 Kbps
-a 80
Average Bit Rate: 96 Kbps
-a 96
Average Bit Rate: 128 Kbps
-a 128
Average Bit Rate: 144 Kbps
-a 144
Average Bit Rate: 160 Kbps
-a 160
Average Bit Rate: 192 Kbps
-a 192
Average Bit Rate: 224 Kbps
-a 224
Average Bit Rate: 256 Kbps
-a 256
Average Bit Rate: 320 Kbps
-a 320
Average Bit Rate: Highest Possible
-a 0
[/sliderend]
154
0
Bit Rate (cVBR)
9
Constrained Bit Rate: Auto
-v 0
Constrained Bit Rate: 16 Kbps
-v 16
Constrained Bit Rate: 24 Kbps
-v 24
Constrained Bit Rate: 32 Kbps
-v 32
Constrained Bit Rate: 48 Kbps
-v 48
Constrained Bit Rate: 56 Kbps
-v 56
Constrained Bit Rate: 64 Kbps
-v 64
Constrained Bit Rate: 80 Kbps
-v 80
Constrained Bit Rate: 96 Kbps
-v 96
Constrained Bit Rate: 128 Kbps
-v 128
Constrained Bit Rate: 144 Kbps
-v 144
Constrained Bit Rate: 160 Kbps
-v 160
Constrained Bit Rate: 192 Kbps
-v 192
Constrained Bit Rate: 224 Kbps
-v 224
Constrained Bit Rate: 256 Kbps
-v 256
Constrained Bit Rate: 320 Kbps
-v 320
Constrained Bit Rate: Highest Possible
-v 0
[/sliderend]
218
0
Constant (CBR)
Constant Bit Rate: 16 Kbps
-c 16
Constant Bit Rate: 24 Kbps
-c 24
Constant Bit Rate: 32 Kbps
-c 32
Constant Bit Rate: 48 Kbps
-c 48
Constant Bit Rate: 56 Kbps
-c 56
Constant Bit Rate: 64 Kbps
-c 64
Constant Bit Rate: 80 Kbps
-c 80
Constant Bit Rate: 96 Kbps
-c 96
Constant Bit Rate: 128 Kbps
-c 128
Constant Bit Rate: 144 Kbps
-c 144
Constant Bit Rate: 160 Kbps
-c 160
Constant Bit Rate: 192 Kbps
-c 192
Constant Bit Rate: 224 Kbps
-c 224
Constant Bit Rate: 256 Kbps
-c 256
Constant Bit Rate: 320 Kbps
-c 320
Constant Bit Rate: Highest Possible
-c 0
[/sliderend]
[label]
10
44
low quality (smaller file)
808080
[label]
216
44
high quality (larger file)
808080
[combo]
60
66
80
1
Force LC AAC
Force HE AAC (< 84 kbps)
--he
[clistring]
-o [outfile] --no-optimize -q2 -
[minfreq]
8000
[maxfreq]
96000
[maxchannels]
6[/CODE]
Thank you for the help guys! Where should i post this so people can easily find it if they want to use qaac?
Re: QAAC CLI Encoder errors.
How do I use this script with the CLI encoder? I want to try it!
Re: QAAC CLI Encoder errors.
Just overwrite everything in CLI Encoder\encoder.txt with my last post. Google qaac and download the latest qaac release and extract into the same folder.
Re: QAAC CLI Encoder errors.
[QUOTE=tscolin;131891]Just overwrite everything in CLI Encoder\encoder.txt with my last post. Google qaac and download the latest qaac release and extract into the same folder.[/QUOTE]
Alright now THAT IS COOL as heck. I was using a command line before but lost it, this script makes it SO MUCH easier OMG. WOW.
Re: QAAC CLI Encoder errors.
Thanks a lot for the script!
Re: QAAC CLI Encoder errors.
Thank you for the script, tscolin. Exactly what I was looking for.
Re: QAAC CLI Encoder errors.
This works great! Is there a way to make it use the 64 bit QAAC encoder with DB15?
Re: QAAC CLI Encoder errors.
The CLI Encoder has a 64 bit version it will work with the 64 bit version of QAAC.
Re: QAAC CLI Encoder errors.
[QUOTE=Spoon;146792]The CLI Encoder has a 64 bit version it will work with the 64 bit version of QAAC.[/QUOTE]
How do I modify the script posted in this thread to use the 64 bit encoder? Should I expect much performance benefit from the 64 bit encoder?