u/Vast_Environment_917

▲ 4 r/ffmpeg

-map 0 not working for me

I'm not sure what's going on when trying to encode a makemkv source file to an x265 file while retaining all the audio, subtitles and attachments. For some reason it's just copying those and not encoding the video to x265. Here's my script:

for %%i in (*.mkv) do ffmpeg -i "%%i" -map 0 -c:v libx265 -preset slow -crf 22 -pix_fmt yuv420p10le -x265-params aq-mode=3:aq-strength=1.0:psy-rd=1:psy-rdoq=1.0:deblock=1,1:no-sao=1:qp-adaptation-range=1.0:merange=32:ref=4 -c:a copy -c:s copy -c:t copy -max_interleave_delta 0 "%%~ni_x265.mkv"

pause

I must have something backwards maybe? Any help is appeciated.

reddit.com
u/Vast_Environment_917 — 3 days ago
▲ 4 r/ffmpeg

A little help cleaning / updating script

I'm in the process of encoding my 4k collection ripped with makemkv for use with jellyfin. Mainly trying to get the sizes down to save disk space while preserving hdr dv grain. Tools I'm using are ffmpeg and ddvt.

Here's my ffmpeg script:

for %%i in (*.mkv) do ffmpeg -i "%%i" -map 0 -c:v libx265 -preset slow -crf 20 -pix_fmt yuv420p10le -x265-params aq-mode=3:aq-strength=1.0:psy-rd=1:psy-rdoq=1.0:deblock=1,1:no-sao=1:qp-adaptation-range=1.0:merange=32:ref=4 -c:a copy -c:s copy "%%~ni_x265.mkv"

pause

Does this look good? Anything outdated or to be deleted / added?

reddit.com
u/Vast_Environment_917 — 17 days ago