-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathencode_1280x720.cmd
22 lines (19 loc) · 1.35 KB
/
encode_1280x720.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
::@echo off
set VIDEO="%~s1"
::set OUTPUT="%~d1%~p1%~n1_youtube_720p.mp4"
set OUTPUT="%~s1_youtube_720p.mp4"
::call ffmpeg -threads 8 -i %VIDEO% -g 6 -vsync 2 -async 1 -vf "yadif=0:0:1,crop=in_h*16/9:in_h,scale=1280:720" -c:v libx264 -preset slow -crf 18 -c:a libvorbis -q:a 5 -pix_fmt yuv420p %OUTPUT%
::call ffmpeg -threads 8 -i %VIDEO% -bt 50M -vf "yadif=0:0:1,crop=in_h*16/9:in_h,scale=1280:720" -vsync 2 -async 1 -c:v libx264 -preset ultrafast -crf 18 -c:a libvorbis -pix_fmt yuv420p %OUTPUT%
::pause
call ffmpeg -y -hide_banner ^
-i "%VIDEO%" ^
-pix_fmt yuv420p ^
-crf 21 -preset ultrafast ^
-bt 50M ^
-vf "mpdecimate,setpts=N/FRAME_RATE/TB,scale='1280:720'" ^
-vsync 2 -async 1 ^
-profile:v "baseline" -level "3.0" ^
-tune zerolatency -movflags "+faststart" ^
"%OUTPUT%"
pause
::-crf 21 -preset veryslow ^