use question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

use question

Vuerstaek, Maarten (EC)
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
[hidden email]<mailto:[hidden email]>


_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

image001.png (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: use question

Adi Marvillo


Am 2018-03-08 um 14:33 schrieb Vuerstaek, Maarten (EC):

> 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
> [hidden email]<mailto:[hidden email]>
>
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
I do not exactly understand what you want to do, but echo-ing or
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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: use question

Jim Shupert, Jr.-2
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

)
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".