ffmpeg视频保持参考源帧

  • 本文关键字:参考 视频 ffmpeg ffmpeg
  • 更新时间 :
  • 英文 :


我喜欢保留源的一些ref帧(在这种情况下,ref=1(:

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3
Format settings                          : CABAC / 1 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 1 frame
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 6 min 19 s
Bit rate                                 : 388 kb/s
Width                                    : 640 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Variable
Frame rate                               : 9.479 FPS
Minimum frame rate                       : 3.750 FPS
Maximum frame rate                       : 30.030 FPS
Original frame rate                      : 30.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.133
Stream size                              : 17.5 MiB (74%)
Language                                 : English
Codec configuration box                  : avcC

这里是输出

ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3
Format settings                          : CABAC  2 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 2 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding

输出参考帧是2,但我喜欢保持为1或直接强制为1。

有办法吗?

谢谢!

对于编码器libx264,添加-refs 1 -bf 0

选项 描述
-refs 参考帧数
-bf b帧数

最新更新