Created
May 26, 2020 23:59
-
-
Save xenophy/61f06224a7525b82076e7b7ac44ed863 to your computer and use it in GitHub Desktop.
ffmpegを使って、動画ファイルをドラッグアンドドロップでTIFFシーケンスに分割するバッチファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
REM ffmpegパス設定 | |
set BIN_PATH=C:\ffmpeg-3.4.2-win64-static\bin | |
REM 出力先ディレクトリ指定 | |
set DEST_DIR=D:\01_Movie\80_Sequence | |
REM 日付取得 | |
set yyyy=%date:~0,4% | |
set mm=%date:~5,2% | |
set dd=%date:~8,2% | |
REM 時刻取得 | |
set time2=%time: =0% | |
set hh=%time2:~0,2% | |
set mn=%time2:~3,2% | |
set ss=%time2:~6,2% | |
REM 出力先ディレクトリ作成 | |
md %DEST_DIR%\%~n1_%yyyy%%mm%%dd%%hh%%mn%%ss% | |
REM TIFFファイル分割出力 | |
%BIN_PATH%\ffmpeg -i %1 -vcodec tiff "%DEST_DIR%\%~n1_%yyyy%%mm%%dd%%hh%%mn%%ss%\%~n1_seq%%06d.tif" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment