Welcome to the wiki talking about FFmpeg on Windows.

FFEncoder VideoHookEvent

HookInfo

  PHookInfo = ^THookInfo;
  THookInfo = record
    TaskIndex: Integer;     // index of converting tasks
    Bitmap: {$IFDEF ACTIVEX}PBitmap{$ELSE}TBitmap{$ENDIF};
                            // bitmap filled with the original video picture, you can save it,
                            //  or change it by drawing text or image on bitmap.Canvas,
                            //  but you must NOT change the size and the PixelFormat of the bitmap!
    FrameNumber: Integer;   // frame index number, first is 1 not 0
    PTS: Int64;             // presentation time stamp of current picture, in microseconds
    Update: Boolean;        // whether update the bitmap back to original video picture, default True
    StopHook: Boolean;      // whether stop video hook, if true then VideoHook event will not
                            //  be triggered with this file, default False
  end;

VideoHookEvent

  // only triggered with OutputOptions.VideoInputHook/VideoOutputHook = True
  TVideoHookEvent = procedure(Sender: TObject; AHookInfo: PHookInfo) of object;
Print/export