need script to convert webm to wav

Discuss and share scripts and script files...
Post Reply
swan_x
Posts: 331
Joined: 08 Oct 2009 12:27

need script to convert webm to wav

Post 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\"");
Last edited by swan_x on 23 Oct 2024 09:10, edited 2 times in total.

highend
Posts: 14427
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: need script to convert webm to wav

Post 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...
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 331
Joined: 08 Oct 2009 12:27

Re: need script to convert webm to wav

Post by swan_x »

please you can provide an example ?
Last edited by swan_x on 23 Oct 2024 09:11, edited 1 time in total.

swan_x
Posts: 331
Joined: 08 Oct 2009 12:27

Re: need script to convert webm to wav

Post by swan_x »

and i've bat file for that, but need script for xy too
Last edited by swan_x on 23 Oct 2024 09:12, edited 1 time in total.

swan_x
Posts: 331
Joined: 08 Oct 2009 12:27

Re: need script to convert webm to wav

Post 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
Last edited by swan_x on 23 Oct 2024 09:13, edited 1 time in total.

RalphM
Posts: 2028
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: need script to convert webm to wav

Post 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.
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

swan_x
Posts: 331
Joined: 08 Oct 2009 12:27

Re: need script to convert webm to wav

Post by swan_x »

dude, thanks for your explanation, but you can't do it and share right code here?
Last edited by swan_x on 23 Oct 2024 09:14, edited 1 time in total.

RalphM
Posts: 2028
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: need script to convert webm to wav

Post 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! :naughty:
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

swan_x
Posts: 331
Joined: 08 Oct 2009 12:27

Re: need script to convert webm to wav

Post by swan_x »

sorry, for me 'dude' is only a friendly approach, like 'mate'
nobody here wants help me, sad

Post Reply