[Cin] ffprobe cutter

Andrew Randrianasulu randrianasulu at gmail.com
Wed Nov 2 17:42:32 CET 2022


Sadly kfrm.sh just displayed if frame was keyframe or not, without
timestamps

but this forum post provided some ideas

https://forum.videohelp.com/threads/359491-Just-an-idea-ffmpeg-based-key-frame-accurate-cutting#post2479262

~ $ ffprobe -hide_banner -skip_frame nokey -show_frames -select_streams v
20200101_000443A.mp4 | grep best_effort
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '20200101_000443A.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
  Duration: 00:00:13.27, start: 0.000000, bitrate: 23664 kb/s
  Stream #0:0[0x1](eng): Video: h264 (Main) (avc1 / 0x31637661),
yuv420p(tv, bt470bg/bt470bg/smpte170m, progressive), 3840x2160, 23087 kb/s,
30.08 fps, 30 tbr, 1k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
mono, fltp, 2 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
best_effort_timestamp=0
best_effort_timestamp_time=0.000000
best_effort_timestamp=1433
best_effort_timestamp_time=1.433000
best_effort_timestamp=2799
best_effort_timestamp_time=2.799000
best_effort_timestamp=4166
best_effort_timestamp_time=4.166000
best_effort_timestamp=5533
best_effort_timestamp_time=5.533000
best_effort_timestamp=6899
best_effort_timestamp_time=6.899000
best_effort_timestamp=8266
best_effort_timestamp_time=8.266000
best_effort_timestamp=9633
best_effort_timestamp_time=9.633000
best_effort_timestamp=10999
best_effort_timestamp_time=10.999000
best_effort_timestamp=12366
best_effort_timestamp_time=12.366000
~ $

so it gives you some timelist ... turning it into cut-friendly format
probably was done somehow )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20221102/a8c564a9/attachment.htm>


More information about the Cin mailing list