View Full Version : BeHappy: help creating a new extension
buzzqw
8th April 2008, 10:03
i need to pass to encoder the avs created by behappy (or selected as input) . Something like
-input FILE.AVS -output {5} ...
how i can set the file.avs ? is a variable ?
thanks
BHH
tebasuna51
8th April 2008, 11:54
I can't understand you very well.
I hope this help:
- BeHappy can open .avs files: AviSynth Source
- To use the .avs created by BeHappy in command line you need Bepipe or Wavi to convert the .avs to uncompressed audio and send it to the encoder by STDOUT.
- If you have a encoder than accept like input a .avs file, you can't execute this inside BeHappy. From BeHappy you can write the .avs file or send the uncompressed audio to STDOUT but not send the .avs to other program.
Maybe we can add a option to do that, but I can't see the utility.
buzzqw
8th April 2008, 13:34
sorry, i have to explain better!
i have an encoder that accept as input avs (or wav) file BUT not have stdin support
so i ask if i can pass a parameter (like {5} or {2}..) that is the temporary avs created by BeHappy OR the avs file selected as input file
hope to be understud
BHH
tebasuna51
8th April 2008, 16:21
Actual command line arguments, to be passed to encoder:
{0} means output file name
{1} means samplerate in Hz
{2} means bits per sample
{3} means channel count
{4} means samplecount
{5} means size in bytes
But if the encoder not have stdin support, I think you can use BeHappy only to write the .avs, and not to execute the encoder.
buzzqw
8th April 2008, 16:36
what a shame :(
i would like to have a new parameter {6} that is "name of avs file" to pass to encoder
well if not possible.. it's a request :)
thanks anyway tebasuna51!
BHH
dimzon
8th April 2008, 16:39
witch encoder do you talking about?
buzzqw
8th April 2008, 16:50
wmcmd.vbs
it's the vbs script (made by Zambelli) that i use for encoding in WMA audio
BHH
dimzon
8th April 2008, 17:00
wmcmd.vbs
it's the vbs script (made by Zambelli) that i use for encoding in WMA audio
BHH
can you provide me this script?
buzzqw
8th April 2008, 17:37
here is the home page http://www.citizeninsomniac.com/WMV/
this is the script http://www.citizeninsomniac.com/WMV/WMCmd_20071011.zip
is lauched in this way (for example)
cscript.exe wmcmd.vbs -input audio.avs -output audio.wma -acodec wmapro -a_mode 0 -a_setting 96_44_2
thanks dimzon!
BHH
dimzon
8th April 2008, 17:42
Hmmm...
maybe the better way is to use Named Pipes in addition to STDIN...
in this case you can use \\.\pipe\pipename as input file name ;)
buzzqw
8th April 2008, 17:45
in this case you can use \\.\pipe\pipename as input file name
don't know :confused:
but whatever you propose and fuction is good :p
BHH
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.