FFMpeg学习记录:FFProbe

本文详细记录了使用FFProbe查看媒体文件信息、帧信息和包信息的步骤。从视频文件格式到音频帧的采样点,通过实例展示了如何使用FFProbe命令获取这些信息,包括视频帧的pkt_pts、pkt_dts、pkt_duration等关键参数,以及音频帧的采样率和采样点数量。
摘要由CSDN通过智能技术生成

一、查看媒体文件信息

1.1 查看视频文件格式信息

查询视频文件格式的命令为:

ffprobe -show_format input.mp4

ffprobe version 4.2.2-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 2007-2019 the FFmpeg developers
# 省略一些没用的

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/***/Desktop/***.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2020-06-23T02:09:34.000000Z
    com.apple.quicktime.make: Apple
    com.apple.quicktime.model: MacBookPro13,1
    com.apple.quicktime.software: Mac OS X 10.15.5 (19F101)
    com.apple.quicktime.creationdate: 2020-06-23T10:04:45+0800
  Duration: 00:02:21.52, start: 0.000000, bitrate: 19417 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 2880x1800 [SAR 1:1 DAR 8:5], 19403 kb/s, 59.94 fps, 60 tbr, 6k tbn, 12k tbc (default)
    Metadata:
      creation_time   : 2020-06-23T02:09:34.000000Z
      handler_name    : Core Media Video
      encoder         : H.264
[FORMAT]
filename=/Users/***/Desktop/***.mov
nb_streams=1
nb_programs=0
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=141.515000
size=343474749
bit_rate=19417008
probe_score=100
TAG:major_brand=qt  
TAG:minor_version=0
TAG:compatible_brands=qt  
TAG:creation_time=2020-06-23T02:09:34.000000Z
TAG:com.apple.quicktime.make
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值