all options in seperate config file?

Any other question that don't fit into the other support categorizes.
Post Reply
ChemicalNRG
Posts: 1
Joined: Wed May 04, 2016 9:36 pm

all options in seperate config file?

Post by ChemicalNRG » Thu May 05, 2016 5:56 am

Hello,

is it possible to put all options in a config or preset file?
i know there are preset files for codecs and also i saw a -fpre options (never saw anyone using it).
for me the main problem is the output code with variables.

my code is:

Code: Select all

ffmpeg -f dshow -video_size 960x540 -framerate 15 -pixel_format yuyv422 -rtbufsize 702000k -i video="HD WebCam" -b:v 512k -bufsize 512k -vcodec libx264 -tune zerolatency -preset ultrafast -vf "scale=704x576, drawtext=fontfile=/Windows/Fonts/arial.ttf:fontcolor=white:fontsize=14:x=70:y=50:box=1:[email protected]:boxborderw=2:r=25:expansion=strftime:text='%d-%m-%Y_%H\:%M\:%S'" -r 15 -f tee -map 0:v "[f=mpegts]udp://localhost:1234/|[f=segment:strftime=1:segment_time=1800:segment_format=mp4] %d-%m-%Y_%H.%M.mp4"
if i run this in CMD everything is fine now.
but i want to make it a service and whatever program i use its not working cause there are so many variables in it.
i also tried to make a batch file and also an exe with winautomation and actionaz but that didnt work either.

and with srvstart it is running but gives an error on the output:

Code: Select all

%d-%m-%Y_%H.%M.mp4
and also on the text with strftime

so long story short, if it is possible to put all options in a file, that ffmpeg can read, all problems with passing the parameters to ffmpeg are gone.

Thanks in advance

Post Reply