Forgive me in advance for probably not using the right protocol when presenting my problem. So I am trying to make a batch script for FFMPEG conversion to TIFF, which is for a series of video clips which I have named in a numerical series. I am converting from mp4's to TIFF folders, and I have the proper command when entering it from the cmd console.
The command I am using is for instance:
ffmpeg -i 321.mp4 -compression_algo raw -pix_fmt rgb24 321-%3d.tiff
This works great when I just copy and paste into cmd. In order to do the series, I have just manipulated with excel to change the numerical file name, and reformatted in Notepad to just cut and paste for each clip conversion. BUT, when I simply put this in a batch script format, and try to run it, it doesn't convert, and gives me the following:
[Attachment 55117 - Click to enlarge]
This is just the first part of a script that I want to write to do all the operations I would like to do, involving copying, moving, and renaming files as necessary for my project, which I have worked out in separate batch scripts already, but I would like to combine into a large script where I can perform all of these actions sequentially on a 20 file block of clips.
Thanks in advance!!!
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 6 of 6
Thread
-
-
Syntax changes slightly in a .bat file vs command line: each "percent" sign (%) must be doubled (%%).
https://forum.videohelp.com/threads/398507-Top10-Commands-for-Lossless-Video-manipulat...e)#post2592949 -
The output has to use %03d for the syntax, for 3 digit padding
Code:321-%03d.tiff
321-001.tiff
321-002.tiff
321-003.tiff
.
.
.
Use -start_number 0 if you want to start at zero -
Thanks! That totally worked like a charm. Is there a resource that might entail these pitfalls when going from command line to batch script? I looked around for this for awhile before asking anyone for help, but it was a difficult search with a lot of trial and error...
-
@poisondeathray - I actually tried that before posting, but it did not solve my problem. It ended up being the %% vs %. Thanks for the start at 0 advice, it is good to know, but unnecessary in this instance. I am importing the tiffs into Davinci Resolve, and it doesn't care about the numbering, as long as they are in sequential order...
-
Similar Threads
-
Useful FFmpeg Windows Batch Script
By Guanadon in forum Newbie / General discussionsReplies: 0Last Post: 22nd Sep 2020, 10:48 -
FFMPEG Batch Script wanted for H265 Remux
By VideoFanatic in forum Video ConversionReplies: 5Last Post: 21st Jan 2018, 10:38 -
FFMPEG - Looking for simple batch script to convert entire folder
By steptoe in forum Video ConversionReplies: 6Last Post: 20th Mar 2017, 22:49 -
Need help with ffmpeg script to batch convert audio in MKV files
By mikeveli20 in forum AudioReplies: 5Last Post: 18th Nov 2016, 13:21 -
Batch stabilize script for ffmpeg
By racer-x in forum Video ConversionReplies: 20Last Post: 2nd Jun 2016, 17:10