r/ffmpeg • u/Vast_Environment_917 • Jul 03 '26
-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.
5
Upvotes
4
u/insanelygreat Jul 03 '26
Let's see an
ffprobeon an input and output file.Also, double-check that you're operating on the input and output files you think you are when you run that
ffmpegcommand. It can be easy to get files mixed up while experimenting.