Hi everyone, I'm trying to do something simple that I can't find the documentation for. I want to get all the video-files from a folder and cut them all into frames, all together in 1 folder. I am opening ffmpeg in powershell and using this command .\ffmpeg.exe -i C:\Users\VuerstaekM\Desktop\ffmpeg-20180307-5ab0ecf-win64-static\03072018\video.mp4 C:\Users\VuerstaekM\Desktop\ffmpeg-20180307-5ab0ecf-win64-static\pics2\frame%d.png Which works fine for a single video, but I have about a 100 a day, so I need a better solution. Thanks in advance guys! Maarten Vuerstaek IT Support [cid:image002.png@01D2F4AB.E232CA10] Avnet Logistics Limesweg 4 3700 Tongeren BELGIUM +32 12 242 888 IT-ISO-Tongeren@avnet.eu<mailto:IT-ISO-Tongeren@avnet.eu>
Hi everyone,
I'm trying to do something simple that I can't find the documentation for. I want to get all the video-files from a folder and cut them all into frames, all together in 1 folder. I am opening ffmpeg in powershell and using this command .\ffmpeg.exe -i C:\Users\VuerstaekM\Desktop\ffmpeg-20180307-5ab0ecf-win64-static\03072018\video.mp4 C:\Users\VuerstaekM\Desktop\ffmpeg-20180307-5ab0ecf-win64-static\pics2\frame%d.png
Which works fine for a single video, but I have about a 100 a day, so I need a better solution.
Thanks in advance guys! Maarten Vuerstaek IT Support [cid:image002.png@01D2F4AB.E232CA10] Avnet Logistics Limesweg 4 3700 Tongeren BELGIUM +32 12 242 888 IT-ISO-Tongeren@avnet.eu<mailto:IT-ISO-Tongeren@avnet.eu>
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe". I do not exactly understand what you want to do, but echo-ing or
Am 2018-03-08 um 14:33 schrieb Vuerstaek, Maarten (EC): performing a operation with all files in a directory runs like this in linux shell == powershell:
find . -name "*.mp4" -exec echo {} \; # "." after "find " means the actual directory find . -name "*.mp4" -exec ffmpeg -i{} blabla \;
Cheers
I see that you are a windows usr. 1st - i would suggest linux ( i could expand on the benefits ) 2nd- try something like this in a file.bat @echo off cd <path to your mp4> for /f %%a IN ('dir /b *.mp4') do ( <path to your ffmpeg.exe>ffmpeg.exe -i %%a -y < your ffmpeg cmd instructions of choice> <out>%%~na_frame%d.png )
participants (3)
-
Adi Marvillo -
Jim Shupert -
Vuerstaek, Maarten (EC)