Page 2 of 3

Re: Multiple files with one ffmpeg command?

Posted: 07 Aug 2017, 18:46
by Xx123456xX
I'm typing this into Windows Powershell. The single-file command works fine, but I don't know what's happening with the multi-file command.

Re: Multiple files with one ffmpeg command?

Posted: 07 Aug 2017, 19:47
by RealNC
It's for cmd.exe, not powershell.

Re: Multiple files with one ffmpeg command?

Posted: 08 Aug 2017, 07:17
by Xx123456xX
I'm still quite new when it comes to CLIs and "advanced"/"deep" computer stuff.

Unfortunately with the Creator's Update, I'm no longer able to access cmd.exe from the right-click context menu, and I don't trust myself putting it back.
Conversely, when I search for the Powershell "equivalent" to the given command, all I see is a hodgepodge of Lovecraftian chaos.

Unless someone can dumb-down this "chaos" to a form I can comprehend, or if I'm given the exact command to enter, it seems as if I'm limited to entering the "basic" command 109 times.

Re: Multiple files with one ffmpeg command?

Posted: 08 Aug 2017, 08:31
by RealNC
You press Winkey+R the "run" dialog pops up. You enter "cmd.exe" and hit enter. This gives you a cmd console.

Put your 1-78 videos in C:\videos. Then type:

Code: Select all

cd c:\videos
Then you can run the command I gave you:

Code: Select all

for /l %x in (1, 1, 78) do ffmpeg -i a%x.mov -r 120 -vf "setpts=(1/5)*PTS" -an b%x.mov
Wait it to finish. This will produce the resulting b*.mov files in C:\videos. Then, put your 79-109 videos in C:\videos and run this command:

Code: Select all

for /l %x in (79, 1, 109) do ffmpeg -i a%x.mov -r 120 -vf "setpts=(1/5)*PTS" -an b%x.mov
Wait for it to finish and again you'll find the resulting b*.mov files in C:\videos.

Re: Multiple files with one ffmpeg command?

Posted: 08 Aug 2017, 09:36
by Xx123456xX
Do press enter when I type cd c:\videos? Because it says it can't find the path.

Re: Multiple files with one ffmpeg command?

Posted: 08 Aug 2017, 09:41
by RealNC
Did you create the C:\videos folder? You obviously need to create it.

Re: Multiple files with one ffmpeg command?

Posted: 08 Aug 2017, 09:44
by Xx123456xX
I'm using the one already there. Do I need to create a new one? If so in which location?

Re: Multiple files with one ffmpeg command?

Posted: 08 Aug 2017, 09:50
by RealNC
It's just a temporary directory. It can be c:\bazagazabooba if you want to. Just a place to put your videos and convert them.

Re: Multiple files with one ffmpeg command?

Posted: 08 Aug 2017, 10:09
by Xx123456xX
When I open the command prompt it displays:

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\Users\jacob>

Re: Multiple files with one ffmpeg command?

Posted: 08 Aug 2017, 10:19
by RealNC
Change to the directory first to the directory you've put your videos in. The "cd" command is used for that. So if you create a C:\videos folder, change to that with "cd c:\videos" (yes, press enter to enter commands.) Then you can run the previous commands I posted.