Log in

View Full Version : Can't get Matroska's "--cropping" CLI option to work properly


yukichigai
13th April 2007, 22:32
I've got some FLV4 video that contains 8-pixel strips of "dummy" (repeated) pixels on the bottom and right of the image. If you crop away the pixels the resultant image is perfect aspect ratio, but the height/width are no longer factorable by 16. (Hence why the dummy pixels are there in the first place) Now I can solve the problem with AviSynth fairly easily, but it was brought to my attention that Matroska supposedly has a built-in method to crop a video stream. I checked the command line reference and dug up the appropriate command line option I'm supposed to add to mkvmerge. (--cropping 0:0,0,8,8) The problem is that even though mkvmerge says it works fine, on playback the video still shows the dummy pixels on the bottom and right. I'm using the latest Haali's Media Splitter, so I'm fairly certain that shouldn't be the issue. What am I doing wrong?

Haali
14th April 2007, 10:48
Cropping is supported only when using H.264 codec atm, because it's implemented by patching bitstream/codecprivate in the splitter.

yukichigai
14th April 2007, 19:02
Well that explains it. I didn't see that noted in the documentation though; did I just miss it or is it not there?

Any idea when cropping might be available for other video codecs?

dukey
1st August 2007, 00:27
Well that explains it. I didn't see that noted in the documentation though; did I just miss it or is it not there?

Any idea when cropping might be available for other video codecs?

Been wondering this too. Just been trying to crop some mpeg2 video and it doesn't work.