Opened 4 years ago

Closed 4 years ago

#4600 closed enhancement (fixed)

Support for MKVMerge's --cropping function

Reported by: e.mote Owned by: fenrir
Priority: normal Milestone: 2.0 feature freeze
Component: Core: Video output Version: master git
Severity: normal Keywords: mkvmerge mkvtoolnix crop cropping
Cc: Difficulty: unknown
Platform(s): all Work status: Not started

Description

MKVToolnix version used: 4.5.0 VLC versions used: 1.1.7 for Windows (latest official as of 20/03/11), nightly build 1.2.0-git-20110320, default settings

I'm trying to use MKVMerge's cropping function, per below

mkvmerge --cropping 1:72,0,72,0 300trailer.mkv -o 300trailer_cropped.mkv

This should crop 72 pixels on left & right side of the video. However, VLC (both versions) doesn't properly recognize it, and all 144 pixels are cropped from the righthand side. The cropped trailer is here,

http://www.sendspace.com/file/ht0d74

Change History (5)

comment:1 Changed 4 years ago by jb

  • Component changed from Unknown to Demuxers
  • Milestone changed from Bugs paradize to Features paradize
  • Owner changed from courmisch to fenrir
  • Platform(s) changed from Win32 to all
  • Summary changed from MKVMerge's --cropping function not recognized to Support for MKVMerge's --cropping function
  • Type changed from defect to enhancement

comment:2 Changed 4 years ago by jb

[0x82953cc] mkv demux debug: |   |   |   |   + width=848
[0x82953cc] mkv demux debug: |   |   |   |   + height=352
[0x82953cc] mkv demux debug: |   |   |   |   + display width=848
[0x82953cc] mkv demux debug: |   |   |   |   + display height=352
[0x82953cc] mkv demux debug: |   |   |   |   + crop pixel left=72
[0x82953cc] mkv demux debug: |   |   |   |   + crop pixel right=72

means it is correctly detected at the demuxer stage

comment:3 Changed 4 years ago by jb

  • Component changed from Demuxers to Core: Video output

comment:4 Changed 4 years ago by jb

Usefull info

[0x862b9c4] main demux debug: looking for demux module: 55 candidates
[0x862b9c4] mkv demux debug: |   + Seek head
[0x862b9c4] mkv demux debug: |   |   + Seek
[0x862b9c4] mkv demux debug: |   - info at 4151
[0x862b9c4] mkv demux debug: |   + Information
[0x862b9c4] mkv demux debug: |   |   + TimecodeScale=1000000
[0x862b9c4] mkv demux debug: |   |   + Muxing Application=libebml v1.2.0 + libmatroska v1.1.0
[0x862b9c4] mkv demux debug: |   |   + Writing Application=mkvmerge v4.5.0 ('Speed of Light') built on Feb  1 2011 02:10:32
[0x862b9c4] mkv demux debug: |   |   + Duration=106155
[0x862b9c4] mkv demux debug: |   |   + UID=2080844977
[0x862b9c4] mkv demux debug: |   |   + Seek
[0x862b9c4] mkv demux debug: |   - tracks at 4306
[0x862b9c4] mkv demux debug: |   + Tracks
[0x862b9c4] mkv demux debug: |   |   + Track Entry
[0x862b9c4] mkv demux debug: |   |   |   + Track Number=1
[0x862b9c4] mkv demux debug: |   |   |   + Track UID=1
[0x862b9c4] mkv demux debug: |   |   |   + Track Type=video
[0x862b9c4] mkv demux debug: |   |   |   + Track Lacing=0
[0x862b9c4] mkv demux debug: |   |   |   + Track MinCache=1
[0x862b9c4] mkv demux debug: |   |   |   + Track CodecId=V_MPEG4/ISO/AVC
[0x862b9c4] mkv demux debug: |   |   |   + Track CodecPrivate size=40
[0x862b9c4] mkv demux debug: |   |   |   + Track Default Duration=41708375
[0x862b9c4] mkv demux debug: |   |   |   + Track Video
[0x862b9c4] mkv demux debug: |   |   |   |   + width=848
[0x862b9c4] mkv demux debug: |   |   |   |   + height=352
[0x862b9c4] mkv demux debug: |   |   |   |   + display width=848
[0x862b9c4] mkv demux debug: |   |   |   |   + display height=352
[0x862b9c4] mkv demux debug: |   |   |   |   + crop pixel left=72
[0x862b9c4] mkv demux debug: |   |   |   |   + crop pixel right=72
[0x862b9c4] mkv demux debug: 848 704 72 72
[0x862b9c4] mkv demux debug: |   |   |   + Content Encodings
[0x862b9c4] mkv demux debug: |   |   |   |   + Content Encoding
[0x862b9c4] mkv demux debug: |   |   |   |   |   + Content Compression
[0x862b9c4] mkv demux debug: |   |   |   |   |   |   + Compression Algorithm: 3
[0x862b9c4] mkv demux debug: |   |   + Track Entry
[0x862b9c4] mkv demux debug: |   |   |   + Track Number=2
[0x862b9c4] mkv demux debug: |   |   |   + Track UID=741593737
[0x862b9c4] mkv demux debug: |   |   |   + Track Type=audio
[0x862b9c4] mkv demux debug: |   |   |   + Track CodecId=A_AAC
[0x862b9c4] mkv demux debug: |   |   |   + Track CodecPrivate size=2
[0x862b9c4] mkv demux debug: |   |   |   + Track Default Duration=21333333
[0x862b9c4] mkv demux debug: |   |   |   + Track Language=`und'
[0x862b9c4] mkv demux debug: |   |   |   + Track Audio
[0x862b9c4] mkv demux debug: |   |   |   |   + afreq=48000
[0x862b9c4] mkv demux debug: |   |   |   |   + achan=6
[0x862b9c4] mkv demux debug: |   |   + Seek
[0x862b9c4] mkv demux debug: |   |   + Unknown (N7libebml8EbmlVoidE)
[0x862b9c4] mkv demux debug: |   - cues at 25069002
[0x862b9c4] mkv demux debug: |   + Cues
MKV/Ebml Parser: m_el[mi_level] == NULL
MKV/Ebml Parser: Up cannot escape itself
[0x862b9c4] mkv demux debug: |   - loading cues done.
[0x862b9c4] mkv demux debug: |   + Void
[0x862b9c4] mkv demux debug: |   + Information
[0x862b9c4] mkv demux debug: |   + Tracks
[0x862b9c4] mkv demux debug: |   + Void
[0x862b9c4] mkv demux debug: |   + Cluster
[0x862b9c4] mkv demux debug: found 2 es
[0xb305a484] main input debug: selecting program id=0

[...]

[0x864a0f4] main video output debug: Deinterlacing available
[0x864a0f4] main video output debug: deinterlace 0, mode blend, is_needed 0
[0x864a0f4] main video output debug: Opening vout display wrapper

[...]

[0x87466d4] main generic debug: VoutDisplayEvent 'fullscreen' 0
[0x87466d4] main generic debug: VoutDisplayEvent 'resize' 704x352 window
[0x87466d4] main generic debug: using vout display module "xcb_xv"
[0x87466d4] main generic debug: TIMER module_need() : 137.063 ms - Total 137.063 ms / 1 intvls (Avg 137.063 ms)
[0x864a0f4] main video output debug: original format sz 848x352, of (0,0), vsz 704x352, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
[0x87466d4] main generic debug: SOURCE  sz 848x352, of (0,0), vsz 704x352, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
[0x87466d4] main generic debug: CROPPED sz 848x352, of (0,0), vsz 704x352, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0

Maybe it should be CROPPED sz 848x352, of (72,0), vsz 704x352, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0

comment:5 Changed 4 years ago by jb

  • Milestone changed from Features paradize to 1.2 feature freeze
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.