FFMPEG PC tiffs to MP4 and photoJPG mov formats


PC:  https://ffmpeg.zeranoe.com/builds/
Select the Version, Architecture and Static Linking
Select Download Build
Save the file to your Downloads folder
Right mouse over the zip file, select Extract All...
Move the ffmpeg-....-static folder to your C:\Program Files folder

Set up an Environment Variable Path to the FFMPEG program:
Be careful not to override previous paths. Copy and paste any prior path data before doing this. Sometimes paths are separated by a semi-colon, depending on the OS.
Type env in the search
Select Edit Environment variables for your account
The Environment Variables window will pop up.
     Highlight  Path
for User variables
          Select Edit...  
     Input the entire path of the ffmpeg program, including bin after the last Path, separate with a semi-colon.
          Your path will be similar to this: C:\Program Files\ffmpeg-...-win64-static\bin

Unzip the file in your Downloads folder
Drag the ffmpeg program into you Applications folder

Scripts for running from .bat file on PC
::If you prefer to run from a cmd.exe window use inputname.%04d.tif

MP4 h.264 from a tiff sequence
Works with the internet and Unity
ffmpeg -y -framerate 30 -start_number 1 -i inputname.%%04d.tif -c:v libx264 -x264-params bitrate=8000:vbv-bufsize=8000:vbv-maxrate=10000 -pix_fmt yuv420p -movflags +faststart -vframes 500 -vf setsar=1 -f mp4 name.mp4

MP4 h.265 2 pass from a tiff sequence

set dt="%USERPROFILE%\Desktop"
set loopend=500
set tiffs=-framerate 30 -start_number 1 -i filename.%%04d.tif -pix_fmt argb
set codec1=-vcodec libx265 -x265-params bitrate=40000:vbv-bufsize=8000:vbv-maxrate=60000 -pass 1 -pix_fmt yuv420p -movflags +faststart
set codec2=-vcodec libx265 -x265-params bitrate=40000:vbv-bufsize=8000:vbv-maxrate=60000 -pass 2 -pix_fmt yuv420p -movflags +faststart
ffmpeg.exe -y %tiffs%  -frames %loopend%  %codec1% -f mp4 NUL
ffmpeg.exe -y %tiffs%  -frames %loopend%  %codec2% -f mp4 %dt%\filename.mp4