Hi all,
I have several MKVs with hard-encoded black bars. When I watch on my Apple Vision Pro with Plex + Plexi, this obviously doesn't result in the best experience.
I would prefer not to re-encode the files to remove the black bars with Handbrake. I understand you can add metadata via a ffmpeg script that should force Plex to ignore the bars.
The script I'm using for a 4K file with an extra couple of pixels on the left, is:
Instead of eliminating the bars, the end result was 528 pixels cropped from the bottom (only!) and none from the left. Nothing cropped from the top, either.Code:ffmpeg -i <input>.mkv -map 0 -c:s copy -c:v copy -c:a copy -bsf:v hevc_metadata=crop_top=280:crop_bottom=280:crop_left=2 <output>.mkv
Do I have the correct script syntax and Plex isn't responding correctly? Is my only option a re-encode?
+ Reply to Thread
Results 1 to 12 of 12
-
-
Not sure if your HW supports it, but you can in MKVtoolnix choose video track and then set crop in crop line. So remux only. Just not sure it will work.
-
Thanks for the suggestion. I was able to download/run MKVToolNix and use the Crop setting with a value of 2,280,0,280 and ran a Multiplex.
Unless I did something wrong, it had no effect in Plex. The muxing took about 1 min to run the entire file, I assume I did it correctly. -
That's it. Muxing is fast because it isn't encoding. And mkvtoolnix changes just some header-values. But nearly all player ignore these and take the real pixel or resolution values. That mkvtoolnix has done something you can see with mediainfo tool.
-
I couldn't get crop_left to work at all, anything specified other than 0, the output would not open in Vdub2, nor
display the selected crop in wmplayer - although it played. Top, right and bottom worked OK
Code:ffmpeg -i "c:\users\davex\desktop\bc265.mkv" -bsf:v hevc_metadata=crop_left=0:crop_right=132:crop_top=96:crop_bottom=20 -c copy -y bcoutm.mkv
-
-
-
I think it is matter of video renderers. Tested and automatically chosen in Potplayer is working great (EVR custom preset) and some others as well. Some other do not work as expected.
Probably still actual
MKVtoolnix crop i got on mind.Last edited by Bernix; 16th Dec 2024 at 05:39. Reason: Software used
Similar Threads
-
Cropping Black Bars from 1080p video files
By Bridgy in forum EditingReplies: 10Last Post: 10th Sep 2024, 02:42 -
Metadata for MKV files does not appear in Windows Explorer
By naoto89 in forum Software PlayingReplies: 6Last Post: 27th Oct 2023, 16:12 -
[FFMPEG BATCH SCRIPT] Remux MP4 to MKV removing all details data!
By Cauptain in forum Video ConversionReplies: 3Last Post: 12th Aug 2021, 03:38 -
Can't get FFMPEG Script to Remux to MP4 with Wav, It instead remuxes to MKV
By VideoFanatic in forum Video ConversionReplies: 3Last Post: 1st Aug 2021, 02:32 -
How to crop Black Bars using FFmpeg while keeping the standard width.
By Wizard in forum Video ConversionReplies: 4Last Post: 26th May 2021, 12:38