FFMPEG PC tiffs to photoJPG mov format

smallarrows.GIF

Download ffmeg from: https://ffmpeg.org/download.html  look for the latest PC version, you might need a 7z extractor.
Extract the files, place the ffmpeg folder in your C:/Programs Files/
Add to paths:
     From the desktop, select the Start menu, right-click Computer and click Properties.
     In the System Control Panel, click on Advanced system settings, click the Environment Variables... button.
     In the Environment Variables window highlight the PATH variable in the User Variabes section and click the Edit... button.
     Add to the end of the path lines with the paths you wish the computer to access under Variable value:.
     Each different directory is separated with a semicolon. Such as ;C:\Program Files (x86)\sox-14-4-2;C:\Program Files\ffmpeg-20160404-git-54c9146-win64-static\bin;

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

:: 300 frame, 30 fps tiff sequence PhotoJPG best for PC display
ffmpeg -y -framerate 30 -start_number 1  -i inputname.%%04d.tif -pix_fmt yuvj420p -vframes 300 -vcodec mjpeg -q:v 7 -s 1920x1080 -vf setsar=1 -f mov outputname.mov


:: 300 frame, 30 fps tiff sequence that Oscillates, creates 2 uncompressed movies and then 1 PhotoJPG movie
::for loopseconds take the number of frames divided by the framerate
set loopseconds=10
set /a f_loopend=300-2
set    r_loopend=300
set project=glimpse_1920x1080
set output=%movie_path%\%project%.mov
ffmpeg.exe -y -framerate 30 -start_number 2 -i inputname.%%04d.tif -pix_fmt rgb24 -frames %f_loopend% -vcodec qtrle -s 1920x1080 -vf setsar=1 -f mov forward.mov
ffmpeg.exe -y -framerate 30                         -i inputname.%%04d.tif -pix_fmt rgb24 -frames %r_loopend% -vcodec qtrle -s 1920x1080 -vf "setsar=1,trim=end=%loopseconds%,reverse" reverse.mov
ffmpeg -y -i forward.mov -i reverse.mov -filter_complex concat=n=2:v=1 -vcodec mjpeg -q:v 7 -f mov outputname.mov
del /F /Q forward.mov reverse.mov


::PhotoJPG with audio, 300 frames, rate 29.97
ffmpeg -y -framerate 29.97 -start_number 1 -i inputname.%%04d.tif -i audio.wav -pix_fmt yuvj420p -vframes 300 -vcodec mjpeg -q:v 7 -acodec pcm_s16be -ar 48000 -ac 2 -s 1920x1080 -vf setsar=1 -f mov name.mov


MP4
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 ?? -vf setsar=1 -f mp4 name.mp4