常见h264文件检查方法

it2026-01-15  11

 

1、ffmpeg 封装成其他可播放文件,如.mp4

ffmpeg  -i 1377.h264 -c:v libx264 -b:v 2048k -vf scale=4096:-1 -y ./jdkasd.mp4

2、mediainfo

mediainfo 1377.h264 General Complete name : 1377.h264 Format : AVC Format/Info : Advanced Video Codec File size : 11.8 MiB Video Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L5.1 Format settings, CABAC : No Format settings, ReFrames : 1 frame Format settings, GOP : M=1, N=25 Width : 4 096 pixels Height : 2 160 pixels Display aspect ratio : 1.896 Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Color range : Full Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709

 

3、直接使用ffplay播放

ffplay 1.h264

 

最新回复(0)