Código
ECHO+ ECHO: This script will convert the source video file ECHO: to a MP4 video compatible with Sony Vegas. ECHO+ ECHO: YOU MUST DROP A MKV FILE TO THIS BATCH-FILE. ECHO+ ECHO+ Exit /B 1 ) ECHO: Output file: "%~dpn1_VEGAS.mp4" ECHO+ CHOICE /C YN /M "Continue?" Exit /B 1 CLS ) ECHO+ Exit /B 1 ) ::::::::::::::::::::::::::::::::::::::::::::::::::::::: REM How to encode Vegas-compatible H.264 file using FFmpeg: REM http://www.konstantindmitriev.ru/blog/2014/03/02/how-to-encode-vegas-compatible-h-264-file-using-ffmpeg/ ECHO+Choose a encoding preset: ECHO+ ECHO+ [1] ultrafast ECHO+ [2] superfast ECHO+ [3] veryfast ECHO+ [4] faster ECHO+ [5] fast ECHO+ [6] medium – default preset ECHO+ [7] slow ECHO+ [8] slower ECHO+ [9] veryslow ECHO+ ECHO+ CHOICE /C "0123456789" /M "" :: SET "forcedFPS=-r 23.976" CLS "%~dp0ffmpeg.exe" %forcedFPS% -y -loglevel info -i "%~1" -c:v libx264 -preset %preset% -crf 23 -c:a aac -strict experimental -tune fastdecode -pix_fmt yuv420p -b:a 192k -ar 48000 %forcedFPS% "%~n1_VEGAS.mp4" CLS Color A Echo+ Echo+ Exit /B 0 Color C Echo+ Echo+ Exit /B 1 )