PDA

View Full Version : How to just encode audio? Omit <stream xsi:type="videoStream"> in audience or jobfil


hellfred
13th January 2004, 21:56
Hi newbies, high Hi Karl_lillevold and co
I had trouble with audio-only encode using the helix producer and was half way through this post when i found a solution to my problem.
So if any other newbie has trouble converting WAVs into AAC or HE AAC, this is how it is working. Write yourself another Audience file "HE_AAC.rpad" or "AAC.rpad" and place it into the audience folder of the producer.
Important is that it may only contain one <stream xsi:type="audioStream"> section and NO <stream xsi:type="videoStream"> section in its <streams> section, or MPC will not be able to play the file.

So a HE_AAC.rpad file containing this specifications should work fine for you, too.

<audience xmlns="http://ns.real.com/tools/audience.2.0">
<avgBitrate type="uint">1000000</avgBitrate>
<maxBitrate type="uint">4000000</maxBitrate>
<streams>
<stream xsi:type="audiostream">
<pluginName type="string">rn-audiocodec-realaudio</pluginName>
<codecName type="string">racp</codecName>
<codecFlavor type="uint">2</codecFlavor>
<streamContext type="bag">
<presentationType type="string">audio-only</presentationType>
<audioMode type="string">music</audioMode>
</streamContext>
</stream>
</streams>
</audience>

In the commandline you can then type
producer.exe -i "C:Path\File.wav" -o "C:\Path\File.rm" -ad "HE_AAC"
And you are done.
-td is gets you rid of the warning dissableTwoPass.
File.ra as output works, too.

Is there a way to get higher bitrates for a HE AAC stereo encode than 128 Kbps (=racp with codecFlavor 2)?

This is what i was just about to post here:

Hi Karl_lillevold and co
Lately i am really enjoying using the helix producer. Thanks for that wonderful tool. At the moment I am especially curious about the AAC-encoding.
So I've downloaded the Helix Producer Plus 10 preview from www.helixcommunity.org and provided it with everything necessary to encode AAC und HE AAC (producersdk-aac-addon and rnaudiocodec.zip)
Now I am able to encode any .avi file to a .rm file with stereo AAC or HE AAC audiotrack. After installing CoreAAC I can play them back in the latest MPC and confirm that both sound is encoded and HE AAC is actually working, too.
Now i wanted to encode some WAV-Files to compare HE AAC with ogg-vorbis, but i cant get them to work. Please help me:

I wrote a batch file that contained a commandline like this:
producer.exe -i "e:\mp3\EAC\Daft Punk - Discovery WAVs\*" -o "e:\mp3\EAC\Daft Punk - Discovery WAVs\" -ad "HE_AAC" + various parameters

For the contents of the audience file see end of my mail.
I experimented with no video -vd
and audio mode -am music
I get an *.rm, but MPC just says Cannot render file

Audiance file HHE_AAC.rpad
<audience xmlns="http://ns.real.com/tools/audience.2.0">
<avgBitrate type="uint">1000000</avgBitrate>
<maxBitrate type="uint">4000000</maxBitrate>
<streams>
<stream xsi:type="videoStream">
<pluginName type="string">rn-videocodec-realvideo</pluginName>
<codecName type="string">rv9</codecName>
<codecProperties type="bag">
<encoderComplexity type="uint">65</encoderComplexity>
<customPacketSize type="uint">16000</customPacketSize>
<noisyEdgeFilter type="bool">false</noisyEdgeFilter>
<calcPSNR type="bool">false</calcPSNR>
<!-- Pattern Adaptivity Only if used -->
<!-- Scaling Factor Only if used -->
</codecProperties>
<encodingType type="string">vbrBitrate</encodingType>
<quality type="uint">100</quality>
<maxStartupLatency type="double">60</maxStartupLatency>
<maxFrameRate type="double">25</maxFrameRate>
<maxKeyFrameInterval type="double">10</maxKeyFrameInterval>
<enableLossProtection type="bool">false</enableLossProtection>
</stream>
<stream xsi:type="audiostream">
<pluginName type="string">rn-audiocodec-realaudio</pluginName>
<codecName type="string">racp</codecName>
<codecFlavor type="uint">2</codecFlavor>
<streamContext type="bag">
<presentationType type="string">audio-only</presentationType>
<audioMode type="string">music</audioMode>
</streamContext>
</stream>
</streams>
</audience>

Thanks for all of you who contiributed to the real products and threats.

Yours hellfred

Sirber
14th January 2004, 02:03
Originally posted by hellfred
Thanks for all of you who contiributed to the real products and threats.By threats, do you mean the XviD fan club? ;) :D

hellfred
14th January 2004, 08:45
You got me there.
Actually i wanted to thank you for all those threads in this forum that give a newbie like me the chance to soon get the maximum quality out of the producer.
Yours hellfred

Sirber
14th January 2004, 14:43
Yeah I know :D

About your question, you have to set this: <stream xsi:type="audioStream">
<codecFlavor type="uint">[codecFlavor]</codecFlavor>
<codecName type="string">[codecName]</codecName>
<pluginName type="string">rn-audiocodec-realaudio</pluginName>
<streamContext type="bag">
<audioMode type="string">[audioMode]</audioMode>
<presentationType type="string">audio-only</presentationType>
</streamContext>
</stream>IIRC

[edit]

SOrry for the [], this was taken from RealAnime job template :D

hellfred
15th January 2004, 15:27
Here a small side-note:
Encoding single files via
producer -i "x:\path\file.wav" -o "x:\path\file.rm" -ad "HE_AAC"
works fine.
But a encode with multiple inputs using a wildcard
(see included producer documentation CommandLine.htm#-i) for multiple wav files in the same folder does not work.
producer -i "x:\path\*.wav" -o "x:\path\file.rm" -ad "HE_AAC"
or
producer -i "x:\path\*" -o "x:\path\file.rm" -ad "HE_AAC"

Looks like producer first starts to encode the audio (output says "audio-only encode"), but then tries to merge not existing video information into the file, making them nearly three times as large as the working ones produced with the first command. The files are unplayable by MediaPlayerClassic. I did not install the RealPlayer10 so i cannot confirm that the later one is unable to play them, too.
I think i will write to an appropriate Mailing List on helixcommunity.org

Yours hellfred