[FFmpeg-user] Crop between 0:02 & 1:02 a MP4+AAC MKV with less processing

DynV Montrealer dynvec at gmail.com
Sat Dec 19 13:53:06 EET 2020


In a MP4 + AAC with a MKV wrapper video, which information is appended,
it's 1st 2 seconds contain sensitive information so it must be cropped. The
next minute is useless content, something that if it remained would almost
constantly be skipped. So the ideal beginning is 1:02, but as long as it's
neither 0:00 nor 0:01 I can live with it. With that considered, what's a
good cropping method amongst those that would take the least processing
possible? ie: Some search pattern would start from 1:02 going toward the
beginning, and when a point that would make cropping easier would be 1st
reached, the crop would happen there.

If something was unclear, please quote the precise section and I'll try to
rephrase it.

Thank you kindly

>From MediaInfo:

> General
> Unique ID                                :
> 44770505906429735175387722404957018575 (0x21AE7C5D10957DEAA4B80712D2A859CF)
> Complete name                            :
> C:\Users\MY_USER_NAME\Videos\2020-12-18 13-05-53.mkv
> Format                                   : Matroska
> Format version                           : Version 4
> File size                                : 188 MiB
> Duration                                 : 44 min 32 s
> Overall bit rate                         : 590 kb/s
> Writing application                      : Lavf58.29.100
> Writing library                          : Lavf58.29.100
> ErrorDetectionType                       : Per level 1
>
> Video
> ID                                       : 1
> Format                                   : AVC
> Format/Info                              : Advanced Video Codec
> Format profile                           : High at L3.1
> Format settings                          : CABAC / 4 Ref Frames
> Format settings, CABAC                   : Yes
> Format settings, Reference frames        : 4 frames
> Codec ID                                 : V_MPEG4/ISO/AVC
> Duration                                 : 44 min 32 s
> Width                                    : 1 280 pixels
> Height                                   : 720 pixels
> Display aspect ratio                     : 16:9
> Frame rate mode                          : Constant
> Frame rate                               : 30.000 FPS
> Color space                              : YUV
> Chroma subsampling                       : 4:2:0
> Bit depth                                : 8 bits
> Scan type                                : Progressive
> Writing library                          : x264 core 161 r3020 d198931
> Encoding settings                        : cabac=1 / ref=1 / deblock=1:0:0
> / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 /
> mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 /
> deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=6 /
> lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 /
> bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1
> / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 /
> keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf /
> mbtree=1 / crf=14.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 /
> ip_ratio=1.40 / aq=1:1.00
> Default                                  : Yes
> Forced                                   : No
> Color range                              : Limited
> Color primaries                          : BT.709
> Transfer characteristics                 : BT.709
> Matrix coefficients                      : BT.709
>
> Audio
> ID                                       : 2
> Format                                   : AAC LC
> Format/Info                              : Advanced Audio Codec Low
> Complexity
> Codec ID                                 : A_AAC-2
> Duration                                 : 44 min 32 s
> Channel(s)                               : 2 channels
> Channel layout                           : L R
> Sampling rate                            : 48.0 kHz
> Frame rate                               : 46.875 FPS (1024 SPF)
> Compression mode                         : Lossy
> Title                                    : simple_aac_recording
> Default                                  : Yes
> Forced                                   : No
>


More information about the ffmpeg-user mailing list