View Full Version : Qestions about variables in rpjf file & others
Memory_X
1st October 2004, 19:40
<Qestion A>
Can I use variables in job files so that all the settings I need to change can be grouped together, I mean,
==for example: There was a (hypothetical) section in the .rpjf==
<Declare variables>
<variable #1 type="string">xInputfile</variable #1>
<variable #2 type="unit">xTargetsize</variable #2>
xInputfile="x:\abc\efg.avs"
xTargetsize=100000
</Declare variables>
.
.
.
<inputs>
.........
<filename type="string">xInputfile</filename>
.........
</inputs>
.
.
.
<audiences>
.........
<rcTargetVideoSize type="uint">Targetsize</rcTargetVideoSize>
.........
</audiences>
====================end====================
If its possible, please tell me how.
Memory_X
1st October 2004, 19:57
<Question B>
I just wasted 7 hours "encoding" a file because after the encoding is finished Producer said something like "Error: can't update the header of the temp file..." It happened because the partition set as the tempdir in the Producer.pref had no enough space to hold the .tmp file. (this setting was NOT set by me manually but by some RV front-end and I didn't know about this setting until now)
Now the question is can I make producer ALWAYS write the .tmp file to the folder same as that of the output file. (here I assume the output file is just the renamed & slightly-modified .tmp file, right?). I mean you MUST KNOW that there is enough space in the specified output partition but you do not necessorily know that the partition set previously in the .pref file has enough space to hold the .tmp file.
Alternatively can I set the temp file path in the .rpjf file or as a command-line option?
damrod
1st October 2004, 21:43
%OUTPUT% in producer.pref for tmp directory tag value
karl_lillevold
1st October 2004, 22:09
A: I don't know, probably not.
B: It is not possible to set the temp location in job file or via cmd line, but you can certainly change the producer.pref file. For instance %TEMP% will use your system's TEMP folder, instead of output folder. You can also specify a path to any other folder. tempDir support in the job file or command line would have to be filed as a feature requestion.
For reference, here is Producer's Job file documentation:
https://producerapps.helixcommunity.org/cmdproducer/docs/JobFile.html
karl_lillevold
1st October 2004, 22:14
Originally posted by damrod
%OUTPUT% in producer.pref for tmp directory tag value
Almost... It's actually %OUTPUTDIR%
<preferences version="0.5">
<paths audiences=".\audiences\" servers=".\servers\" tempDir="%OUTPUTDIR%"/>
...
Dark-Cracker
1st October 2004, 22:29
A)
u can't use variable in the XML audience file, the DTD files are not supported by the producer parser, i think the only solution (who doesn't really look like what u want to do) is to use the XSL/XSLT u have the example in the producer audience sample on how create the xml file using the xsl transformation. if i righ remember i have succeded to use variable to generate the xml file but i have despair to use this way because it much more anoying.
++
Memory_X
2nd October 2004, 00:55
damrod, kar_lillevold, dark-cracker
Thank you for your answers.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.