![]() Download ffmpeg.exe and place it in the same directory as the script and run the script from PowerShell. If you want to get ffmpeg for Windows, I suggest downloading it from here, it's a lot easier than building it yourself. A PowerShell based script that utilizes FFMPEG to convert a video to MP4. The loop continues, adding 180 (3 minutes in seconds) to $vstart every time, and updating the counter, until it reaches the end of the file. The number of zeros after the colon sets how many leading zeros appear in the file name. ![]() Here's how you could do it using Powershell on Windows: $vidLength = įfmpeg -ss $vstart -t 180 -i inputvid.mp4 -c:v v210 -c:a pcms16le ("output_.avi" -f $c) this uses powershell string formatting to produce files named output_0000.avi, output_0001.avi…`. FFMPEG can do it, with a bit of shell scripting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |