首页 > 解决方案 > FLV 到 MP4 的转换保持 PTS 一致

问题描述

输入文件具有以下视频设置,但在媒体播放器中以 29.97 FPS 播放

Video
Format                      : AVC
Format/Info                 : Advanced Video Codec
Format profile              : Baseline@L2.1
Format settings             : 2 Ref Frames
Format settings, CABAC      : No
Format settings, ReFrames   : 2 frames
Codec ID                    : 7
Duration                    : 1 min 30 s
Width                       : 480 pixels
Height                      : 360 pixels
Display aspect ratio        : 4:3
Frame rate mode             : Constant
Frame rate                  : 14.985 (15000/1001) FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Color range                 : Limited
Color primaries             : BT.601 NTSC
Transfer characteristics    : BT.709
Matrix coefficients         : BT.601

但是,另一个编码应用程序将不接受该文件,因为有效文件帧速率仅为 NTSC 或 PAL 如何在不更改剪辑持续时间的情况下强制将帧速率显示为 29.97?

标签: ffmpeg

解决方案


推荐阅读