Pls halp me /g/
I've been trying to write a batch script to convert a directory of GIFs to WebMs.
So far I got:for %%F IN (*.gif) DO ffmpeg -i "%%F" -an -c:v libvpx -qmax 4 "%%F.webm"
So far it works but it renames the output files with .gif.webm
How do I force the output to be renamed to .webm only? I've been trying to find a solution on google for almost an hour but to no avail.
If they work just write another script to rename them.
Otherwise I'd say you need to tweak the last string of your script which is telling it to just append webm to the whole file name. I don't know or care enough about batch scripting to help you with that part though. Shouldn't be too hard though.
Bump, I've had this issue as well. Eventually I just gave up and renamed the output files manually. I'd love to see the solution to this.
#! /bin/sh
parallel -j 100% '
ffmpeg -i {} -pix_fmt yuv444p -f yuv4mpegpipe - 2>/dev/null |
vpxenc --codec=vp8 --webm --best --end-usage=cq --cq-level=4 --min-q=0 --max-q=8 -o {.}.webm - 2>/dev/null
printf "finished:\t{.}.webm\n"
' ::: $@
exit $?
>>51428618
I need the windows batch script not the bash one to do gif to webm.
>>51428701
way to pleb this thread up senpai
go back to /v/
Wait I think I got it.
for %%F IN (*.gif) do (
ffmpeg -i "%%~nf.gif" -an -c:v libvpx -qmax 4 "%%~nf.webm"
)
pause
Try that, this makes the script ignore the file extensions.
>>51428618
not sure but I think parallel defaults to -j 100%
and you don't need exit $?, that's default behavior
>>51428898
It doesn't work m8
>>51428985
lol, whoops forgot this shit is case sensitive.for %%f IN (*.gif) do (
ffmpeg -i "%%~nf.gif" -an -c:v libvpx -qmax 4 "%%~nf.webm"
)
pause
Try it now.
>>51429061
Holy shit it worked, it fucking worked! Thank you so much! I was about to fucking lose my mind here.
>>51429061
>~n
It was that fucking simple? Wow.
>>51428776
>thread was about a batch script
>shitposts his bash script on thread
Where did it all go wrong anon?
>>51429237
It's not a bash script it's a shell script.
Bash is not a language in and of itself, but rather a unix shell interpreter that supports some useless extensions.
>>51429299
Ergo, bash script.
>>51429205
interesting
Bump so other helpless anons can see.
Is there anything I can do for the below code to output on 1 line? The 1st to items are ok, but a newline is inserted for the 3rd item. Trying to make it appear like table columns.for %%x in (%server_farm%) do ECHO|SET /P="\\%%x Service1 " & (sc \\%%x query Service1 | FIND "STATE") & (sc \\%%x qc Service1 | FIND "START_TYPE")