Hello, I need to convert the code from a .sh file into a .bat file by changing the syntax accordingly.
Source
#!/bin/sh palette="/tmp/palette.png" run="`pwd`/ffmpeg/bin/ffmpeg.exe" filters="fps=25,scale=0:-1:flags=lanczos" $run -v warning -i $1 -vf "$filters,palettegen" -y $palette $run -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 what I myself tried to do by searching for a solution on the net
SET PALETTE = "/tmp/palette.png" SET RUN = "'%CD%'/ffmpeg/bin/ffmpeg.exe" SET FILTERS = "fps=25, scale=0:-1:flags=lanczos" %RUN% -v warning -i $1 -vf %FILTERS%" ,palettegen" -y %PALETTE% %RUN% -v warning -i $1 -i %PALETTE% -lavfi %FILTERS% " [x]; [x][1:v] paletteuse" -y $2 But my option does not work. Tell me where I was wrong.
"/tmp/palette.png"- there is no such way under Windows (and in principle there can be no file in a bat). Write the right way there. - KoVadim