Log in

View Full Version : help whit ffmpeg in Terminal


tola5
16th December 2015, 20:50
Hi got a lot video files I like to set to encode to X265 on my Windows pc I use Hybrid whit

x265 --preset ultrafast --pmode --pme --input - --input-res 1920x1080 --fps 24000/1001 --no-high-tier --limit-modes --no-open-gop --crf 22.000 --qpfile GENERATED_QP_FILE --range full --colormatrix bt709 --output OUTPUTFILE
for one of my blu-ray as a example
are there som there can help me make it so I can use that with ffmpeg for all files in a folder I have google and try what
I could find but it dont work for me it are
probably a small thing ?

for %%F in (*.*) do ( ffmpeg -i "%%F" -c:v libx265 -preset ultrafast -x265-params crf=22 -c:a aac "Gear/%%F" )


hope som will help me so it can encode all files in a folder and the settings like I use in hybrid just no upscaling or other thing in the new codec and
quality hope you can read my tekst I are not the best to
write

StainlessS
16th December 2015, 23:36
Here batch file to convert all to UT_Video AVI, PCM audio, perhaps you can mod for x265 output.


setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get input file, No terminating Backslash, "." = current directory (ie same as dir .bat file)
set INDIR="."


REM Where to place output file, No terminating Backslash. "." would be same as .bat file
set OUTDIR="D:


FOR %%A IN (*.264 *.vob *.wmv *.mpg *.m2v *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM *.mkv *.TS *.y4m *.yuv *.webm) DO (
%FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI"
)

Pause

Selur
19th December 2015, 14:00
if your input is a blu-ray (on your hdd) you should use an ffmpeg version with libbluray support and use the .mpls file which indicates the streams you want as input

tola5
22nd December 2015, 06:16
thx for the help all