Opened 10 years ago
Last modified 4 weeks ago
#4489 new enhancement
mkv cropping
Reported by: | Carl Eugen Hoyos | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | undetermined |
Version: | git-master | Keywords: | videolan mkv cropping |
Cc: | nfxjfg@googlemail.com, dave@dericed.com | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
(videolan ticket 13982)
I will attach a sample that has cropping defined in its mkv headers.
$ ffmpeg -i Matroska\ Crop_cut.mkv ffmpeg version N-71483-g8768f8f Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.7 (SUSE Linux) configuration: --enable-gpl libavutil 54. 22.101 / 54. 22.101 libavcodec 56. 34.100 / 56. 34.100 libavformat 56. 30.100 / 56. 30.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 14.100 / 5. 14.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, matroska,webm, from 'Matroska Crop_cut.mkv': Metadata: encoder : libebml v1.2.2 + libmatroska v1.3.0 creation_time : 2012-08-03 22:48:21 Duration: 00:03:42.12, start: 0.000000, bitrate: 92 kb/s Stream #0:0(eng): Audio: aac (LC), 44100 Hz, stereo, fltp (default) Stream #0:1: Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default) At least one output file must be specified
Attachments (1)
Change History (6)
by , 10 years ago
Attachment: | Matroska Crop_cut.mkv added |
---|
comment:1 by , 10 years ago
Cc: | added |
---|
comment:2 by , 9 years ago
Adding another sample file. This mkv uses a PixelCropLeft and PixelCropRight of 240 on each side. http://archive.org/download/BBC_Top_of_the_Pops_1979_12_25/BBC_Top_of_the_Pops_1979_12_25.mkv to mask pillarboxing (the pillarboxing doesn't actually start until about 30 seconds in).
comment:3 by , 9 years ago
Cc: | added |
---|
comment:5 by , 4 weeks ago
seems like https://trac.ffmpeg.org/ticket/7437 was closed as cropped via the clap atom was implemented in mov. Would love to see this cropping support in mkv too. :D
Note:
See TracTickets
for help on using tickets.
This is impossible to implement correctly without adding cropping hints to AVFrame. (Think about hardware decoding.)