rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: mysoogal on June 17, 2009, 07:31:58 AM

Title: CLI video encoding through HFS uploader ?
Post by: mysoogal on June 17, 2009, 07:31:58 AM
i'm wondering is it possible for hfs to also encode a video when its uploading?

im thinking to use dr divx or ffmpeg or avidmux CLI

has anybody play'd with this ? 

 ;D just a idea
Title: Re: CLI video encoding through HFS uploader ?
Post by: Mars on June 17, 2009, 05:19:48 PM
you can use a macro {.exec| encoder file.... .} in the [upload completed] event when the uploaded file is complete
Title: Re: CLI video encoding through HFS uploader ?
Post by: mysoogal. on June 17, 2009, 07:00:13 PM
thanks for telling me  ;D

is there examples of this being used here ?  ;D

where can i find more information and how to use it.
Title: Re: CLI video encoding through HFS uploader ?
Post by: mysoogal on June 17, 2009, 07:22:17 PM
i need help  ;D i want to use mencoder or ffmpeg to convert video through hfs uploader

how is ok, ? where do i put this macro ? :)

{.exec|C:\wamp\www\encoder\mencoder.exe 'input.*' -o 'output.mp4' -af volume=10 -aspect 16:9 -of avi -noodml -ovc x264 -x264encopts bitrate=500:level_idc=41:bframes=3:frameref=2: nopsnr: nossim: pass=1: threads=auto -oac mp3lame -s localhost -t }
Title: Re: CLI video encoding through HFS uploader ?
Post by: Mars on June 17, 2009, 07:52:22 PM
It is necessary to know at first which is the line of typical command which you wish to use (as a dos command)
by example

[upload completed]
{.if|%item-ext%=mp3|
{.exec|C:\wamp\www\encoder\mencoder.exe '%item-resource%' -o '%item-name%.mp4' -af volume=10 -aspect 16:9 -of avi -noodml -ovc x264 -x264encopts bitrate=500:level_idc=41:bframes=3:frameref=2: nopsnr: nossim: pass=1: threads=auto -oac mp3lame -s localhost -t .}
/if.}

Title: Re: CLI video encoding through HFS uploader ?
Post by: mysoogal on June 19, 2009, 01:55:47 PM
It is necessary to know at first which is the line of typical command which you wish to use (as a dos command)
by example

[upload completed]
{.if|%item-ext%=mp3|
{.exec|C:\wamp\www\encoder\mencoder.exe '%item-resource%' -o '%item-name%.mp4' -af volume=10 -aspect 16:9 -of avi -noodml -ovc x264 -x264encopts bitrate=500:level_idc=41:bframes=3:frameref=2: nopsnr: nossim: pass=1: threads=auto -oac mp3lame -s localhost -t .}
/if.}




do i put this into the template ? or somewhere else ? so this works on the upload page ?, so when i upload a file it will start the encoding after upload has completed and put the file in the same uploaded directory ?
Title: Re: CLI video encoding through HFS uploader ?
Post by: SilentPliz on June 19, 2009, 02:08:55 PM
       
You put your code in a section [upload completed] in a file named hfs.events that you drop in the folder of hfs.exe

eg of content of file hfs.events:

[upload completed]
your code
Title: Re: CLI video encoding through HFS uploader ?
Post by: rejetto on June 19, 2009, 02:36:31 PM
already discussed
http://www.rejetto.com/forum/index.php?topic=6964.0