View Full Version : Encoding to vorbis with producer
Sirber
28th August 2004, 00:18
Hi
How can I control the encoding of vorbis with producer?
karl_lillevold
28th August 2004, 00:28
Save the audience below as vorbis.rpad, run producer as
producer -i input.wav -o test.ogg -ad vorbis.rpad
<?xml version="1.0" encoding="UTF-8"?>
<audience xmlns="http://ns.real.com/tools/audience.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ns.real.com/tools/audience.2.0
http://ns.real.com/tools/audience.2.0.xsd">
<streams>
<stream xsi:type="audioStream">
<pluginName type="string">rn-audiocodec-vorbis</pluginName>
<codecName type="string">vorbis</codecName>
<codecFlavor type="uint">6</codecFlavor>
<quality type="uint">35</quality>
<streamContext type="bag">
<presentationType type="string">audio-only</presentationType>
<audioMode type="string">music</audioMode>
</streamContext>
</stream>
</streams>
</audience>
Bitrate
To change the bitrate, change the quality. I think 0-100 is mapped to 0-10, so in this case 35 corresponds to 3, which will give you around 128 kbps. CodecFlavor 6 is stereo at 44.1 kHz.
The other codec flavors are
# Channels Sample Rate Codec Name Flavor
1 (mono) 8 kHz vorbis 0
1 (mono) 22.05 kHz vorbis 1
1 (mono) 44.1 kHz vorbis 2
1 (mono) 48 kHz vorbis 3
2 (stereo) 8 kHz vorbis 4
2 (stereo) 22.05 kHz vorbis 5
2 (stereo) 44.1 kHz vorbis 6
2 (stereo) 48 kHz vorbis 7
We also have a theora encoder plugin, by aaronc. If you want to encode an Ogg stream with Vorbis for audio and Theora for video, producer is one of the easiest methods to achieve this. This is not yet released in binary form, I will check with aaronc about this.
For playback the Xiph project on helixcommunity has plugins for the latest RealPlayer, that supports both Vorbis and Theora in Ogg:
https://helixcommunity.org/project/showfiles.php?group_id=7
Sirber
28th August 2004, 00:44
What if the hz differ from the source and the requested hz?
Also, which DLL do I need to add?
Also also, should I force 44kHz or 48kHz?
[edit]
Error: Load library call failed for dll vorbis.dll.
Error: Load library call failed for dll vorbis.dll.
I have the file:
vorbisfile.dll
vorbisenc.dll
vorbis.dll
vorbisfile_d.dll
vorbisenc_d.dll
vorbis_d.dll
ogg_d.dll
ogg.dll
:confused:
karl_lillevold
28th August 2004, 02:56
you need
ogg.dll
vorbis.dll
vorbisenc.dll
in the same folder as producer.exe
Sirber
28th August 2004, 03:16
Bitrate range is from 80 (Q1) to 500 (Q100). I cannot do 64kbps (Q0) :(
Sirber
30th August 2004, 02:53
Would it be possible to output vorbis to ogg container with "rmvb" extension? It's such a pain to use ".ogg" :(
damrod
31st August 2004, 00:10
you can call the cmdline vorbis encoder exe ...and you can choose the bitrate ;-))
producer.exe can be usefull for encoding ogg only if you can output to rmvb...
btw can it be possible to mux ra & rmvb into another rmvb file?
Sirber
31st August 2004, 00:59
Can't. I'll have to use producer.
damrod
31st August 2004, 20:56
i wonder how the rmeditor works...
Sirber
31st August 2004, 21:25
it uses inputs and produce an output :p
damrod
1st September 2004, 00:34
it can take as many rmvb files as you want and concat all in one files....so i was wondering if it "binary-concat" the files like with the >> method in unix shell....
or if it demux all the files tracks to mux all in one files after....
(euh en bref si ca colle tout bout a bout ou si ca demux tout pour coller les pistes videos ensemble, de meme pour l'audio, puis remuxer les deux pistes restantes ds un rmvb...c peut etre plus clair que mon anglais ;))
Sirber
1st September 2004, 00:49
It rewrite the headers. It's not just cut and paste :)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.