Opened 4 years ago

Last modified 3 weeks ago

#4489 new enhancement

mkv cropping

Reported by: cehoyos 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)

Matroska Crop_cut.mkv (2.4 MB) - added by cehoyos 4 years ago.

Change History (5)

Changed 4 years ago by cehoyos

comment:1 Changed 4 years ago by gjdfgh

  • Cc nfxjfg@googlemail.com added

This is impossible to implement correctly without adding cropping hints to AVFrame. (Think about hardware decoding.)

comment:2 Changed 3 years ago by dericed

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 Changed 3 years ago by dericed

  • Cc dave@dericed.com added

comment:4 Changed 3 weeks ago by kieranjol

Note: See TracTickets for help on using tickets.