[root@iZ8vb59gsqaa2gjbi6n8g6Z chapter06]# ffmpeg -h filter=fps
ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 10 (GCC)
configuration: –prefix=/usr/local/ffmpeg –enable-shared –disable-static –disable-doc –enable-zlib –enable-libx264 –enable-libx265 –enable-libxavs2 –enable-libdavs2 –enable-libmp3lame –enable-iconv –enable-gpl –enable-nonfree
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Filter fps
Force constant framerate.
Inputs:
#0: default (video)
Outputs:
#0: default (video)
fps AVOptions:
fps <string> ..FV……. A string describing desired output framerate (default “25”)
start_time <double> ..FV……. Assume the first PTS should be this value. (from -DBL_MAX to DBL_MAX) (default DBL_MAX)
round <int> ..FV……. set rounding method for timestamps (from 0 to 5) (default near)
zero 0 ..FV……. round towards 0
inf 1 ..FV……. round away from 0
down 2 ..FV……. round towards -infty
up 3 ..FV……. round towards +infty
near 5 ..FV……. round to nearest
eof_action <int> ..FV……. action performed for last frame (from 0 to 1) (default round)
round 0 ..FV……. round similar to other frames
pass 1 ..FV……. pass through last frame
[root@iZ8vb59gsqaa2gjbi6n8g6Z chapter06]# ffmpeg -h filter=trim
ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 10 (GCC)
configuration: –prefix=/usr/local/ffmpeg –enable-shared –disable-static –disable-doc –enable-zlib –enable-libx264 –enable-libx265 –enable-libxavs2 –enable-libdavs2 –enable-libmp3lame –enable-iconv –enable-gpl –enable-nonfree
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Filter trim
Pick one continuous section from the input, drop the rest.
Inputs:
#0: default (video)
Outputs:
#0: default (video)
trim AVOptions:
start <duration> ..FV……. Timestamp of the first frame that should be passed (default INT64_MAX)
starti <duration> ..FV……. Timestamp of the first frame that should be passed (default INT64_MAX)
end <duration> ..FV……. Timestamp of the first frame that should be dropped again (default INT64_MAX)
endi <duration> ..FV……. Timestamp of the first frame that should be dropped again (default INT64_MAX)
start_pts <int64> ..FV……. Timestamp of the first frame that should be passed (from I64_MIN to I64_MAX) (default I64_MIN)
end_pts <int64> ..FV……. Timestamp of the first frame that should be dropped again (from I64_MIN to I64_MAX) (default I64_MIN)
duration <duration> ..FV……. Maximum duration of the output (default 0)
durationi <duration> ..FV……. Maximum duration of the output (default 0)
start_frame <int64> ..FV……. Number of the first frame that should be passed to the output (from -1 to I64_MAX) (default -1)
end_frame <int64> ..FV……. Number of the first frame that should be dropped again (from 0 to I64_MAX) (default I64_MAX)