Page 1 of 1
need script to convert webm to wav
Posted: 21 Oct 2024 13:04
by swan_x
hi there,
i need script to convert webm audio file from current folder to wav with ffmpeg (already on env path)
i've tried this command, but xy can't find webm file. suggestion ?
Code: Select all
run("cmd /c for %f in (*.webm) do ffmpeg -i "%f" "%~nf.wav\"");
Re: need script to convert webm to wav
Posted: 21 Oct 2024 13:21
by highend
Then change into the root folder within that command prompt before executing the loop?
There is no escaping of double quotes via a backslash^^
No clue why there is no syntax checking used...
Re: need script to convert webm to wav
Posted: 21 Oct 2024 14:32
by swan_x
please you can provide an example ?
Re: need script to convert webm to wav
Posted: 21 Oct 2024 17:21
by swan_x
and i've bat file for that, but need script for xy too
Re: need script to convert webm to wav
Posted: 21 Oct 2024 20:22
by swan_x
work fine with simple coomand:
Code: Select all
run "cmd /c ffmpeg -i 22.webm 22.wav"
but need use generic file name, working for all webm files
Re: need script to convert webm to wav
Posted: 22 Oct 2024 00:35
by RalphM
I assume your %f reference is not parsed correctly.
Switch on script step mode to see what the script actually tries to process and then based on this correct the script accordingly.
Re: need script to convert webm to wav
Posted: 22 Oct 2024 10:04
by swan_x
dude, thanks for your explanation, but you can't do it and share right code here?
Re: need script to convert webm to wav
Posted: 22 Oct 2024 10:43
by RalphM
Hey "dude", if that is your approach to solve your problems, I will stop wasting my time in trying to help you.
Good luck finding a willing slave to do your work for you!

Re: need script to convert webm to wav
Posted: 22 Oct 2024 14:36
by swan_x
sorry, for me 'dude' is only a friendly approach, like 'mate'
nobody here wants help me, sad