-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
to tiff rgb8b lzw.bat
51 lines (46 loc) · 2.54 KB
/
to tiff rgb8b lzw.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@ECHO OFF
REM SendTo_FFmpeg is an FFmpeg based set of batch scripts for transcoding
REM Download from https://github.com/keerah/SendTo_FFmpeg
REM tiff compatible preset
REM === compression settings =======================================================================
SET "wset.out.video.compress=lzw"
REM Tiff supported compression algos: packbits, raw, lzw, deflate
SET "wset.out.video.fps="
REM Output framerate in Hz. 1 is to output 1 frame per second. Leave empty for no change. Set to negative value to override input framerate to the Abs(fps), this is useful for Gifs to presere all frames but change speed
SET "wset.out.video.scale.x="
REM Leave empty to disable scaling. -1 is to scale proportionally, -2 to also keep it to multiple of 2
SET "wset.out.video.scale.y="
REM Leave empty to disable scaling. -1 is to scale proportionally, -2 to also keep it to multiple of 2
SET "wset.out.video.scale.algo=lanczos"
REM bilinear, bicubic, bicublin, gauss, sinc, lanczos, spline and more https://ffmpeg.org/ffmpeg-scaler.html
SET "wset.out.format=.tiff"
SET "wset.out.video.codec=tiff"
SET "wset.out.video.sampling=rgb24"
REM png supports: rgb24 rgb48le pal8 rgba rgba64le gray ya8 gray16le ya16le monob monow yuv420p yuv422p yuv440p yuv444p yuv410p yuv411p
SET "wset.out.params=-hide_banner -stats"
SET "wset.out.sequence=1"
REM === color management settings ==================================================================
SET "wset.in.cm.space="
SET "wset.in.cm.primaries="
SET "wset.in.cm.transfer="
SET "wset.in.cm.range="
SET "wset.out.cm.space="
SET "wset.out.cm.primaries="
SET "wset.out.cm.transfer="
SET "wset.out.cm.range="
REM Leave the cm.space empty to disable management for input/output. Color spaces: rgb, bt709, fcc, bt470bg, bt2020nc, bt2020c, smpte170m, smpte240m. Ranges: pc, tv, mpeg, jpeg. Primaries: bt709, bt470m, bt470bg, bt2020, film, smpte170m, smpte240m. Transforms: bt709, gamma22, gamma28, linear, log, log_sqrt, bt2020_10, bt2020_12, smpte170m, smpte240m. For full list refer to https://ffmpeg.org/ffmpeg-codecs.html
REM ================================================================================================
COLOR 0F
SETLOCAL ENABLEDELAYEDEXPANSION
SET /A stf.result=0
SET /A stf.pause=1
IF EXIST "%~dp0sendtoffmpeg_run.cmd" (
SET "wset.out.type=09"
CALL "%~dp0sendtoffmpeg_run.cmd" %*
) ELSE (
SET /A stf.result=5
ECHO [31mSorry, the [01m[30m[41msendtoffmpeg_run.cmd[0m[31m module is unreacheable. Unable to continue^^![0m
)
IF %stf.result% GTR 0 ECHO [31mResult code is %stf.result%[0m
ECHO.
if NOT %stf.pause% == 0 PAUSE