Followers

Monday, 2 October 2017

How to modify & save Windows ffmpeg batch file to execute on Debian GNU/Linux system via Windows SSH client?

Source: superuser.com --- Monday, October 02, 2017
Still very new to linux commands & specifying folder paths/wildcards correctly, so apologies on any incorrect terminology-syntax descriptions. Question: (2 related parts, please see a & b, clarifications) a) How do I modify the following Windows ffmpeg batch file to execute in a Debian GNU/Linux system via Windows SSH Client? (for multiple files within a specified folder) ffmpeg is already installed to ~/bin/ffmpeg & I can execute single file conversions with success. for %%a in ("c:\ffmpeg\bin\toconvert\*.wmv") do ffmpeg -i "%%a" -preset veryfast -crf 18 -c:a aac "converted\%%~na.mp4" In the batch command line above on Windows & ffmpeg , ffmpeg.exe is located in the "bin" folder and I have the .bat file saved there as well. All the "wmv" files I want to work with are in the "toconvert" folder. I also have a folder created within "bin" called "converted" where the new mp4 files are sent to (original filenames preserved) On the Debian GNU/Linux system & ffmpeg to work with, (please see system/version clarifications at the bottom) I would like the all the .wmv files located in a folder named To Convert (has one space between) to be sent into a folder named converted with the original filenames preserved + new format extension mp4 Folder paths on the Debian GNU/Linux system: "To Convert" folder path = ~/files/video/To Convert (location of files to convert) "converted" folder path = ~files/new/converted (this destination folder is al ...



from Windows http://ift.tt/2yRPVf4

No comments:

Post a Comment