Jump to content

Batch Scripting : How to file name based on Increment int


Recommended Posts

Hi

First of all ,i`m new here so HI to everyone .

I'm having trouble on writing some code on a Batch Script ,so I'm using ffmpeg (a Software for Video Encoding/Transcoding),and than i plan to call that batch script on a C# Application .

So far i now a command which does that ,if i type it on Command Prompt ,but using a batch script that can not be done .

So here is my command :

ffmpeg -i video.mpg -r 1 -s 1024x720 -f image2 img-%03d.jpeg

So with that command i can save a single image for each frame of an input video ,and it will save images like image img-001.jpg ,img-002.jpg and so far ,but i need to do the came with a batch script or is there a way to send the command like it is on Terminal (command promt) because i can not understand as well what that mean ,i just now that is a C syntax .

Sory for the long post but i need to be clear

Best on advance

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy