从视频中提取关键帧信息和字节偏移 ffmpeg/ffprobe
Extract keyframe info and byte offset from video ffmpeg/ffprobe
如何使用 ffmpeg/ffprobe.
从视频中检索每个关键帧信息
我已经阅读了很多与此相关的 Whosebug 问题和答案,但该命令仅 returns 关键帧持续时间。
我已经使用这个命令提取了关键帧持续时间
ffprobe -loglevel error -skip_frame nokey -select_streams v:0 -show_entries frame=pkt_pts_time -of csv "/var/www/html/YoutubeTesting/1080p.mp4"
但是我需要的每个关键帧的信息是
1- 视频字节大小的字节偏移量
2- 关键帧持续时间
谢谢!
使用
ffprobe -loglevel error -skip_frame nokey -select_streams v:0 -show_entries frame=pkt_duration_time,pkt_pos -of csv "video.mp4"
我刚刚发现自己要提取所有关于按键程序的信息。对某人有用。
只需在命令中添加 -skip_frame nokey
ffprobe -select_streams v -skip_frame nokey -show_frames -v quiet video.mp4
它将显示关键帧的信息,信息将包含时间、持续时间、偏移字节等
您可以使用以下命令获取关键帧偏移字节和帧编号。
ffprobe -skip_frame nokey -select_streams v:0 -count_frames -show_entries frame=pkt_pos,best_effort_timestamp_time -of csv INPUT
如何使用 ffmpeg/ffprobe.
从视频中检索每个关键帧信息我已经阅读了很多与此相关的 Whosebug 问题和答案,但该命令仅 returns 关键帧持续时间。
我已经使用这个命令提取了关键帧持续时间
ffprobe -loglevel error -skip_frame nokey -select_streams v:0 -show_entries frame=pkt_pts_time -of csv "/var/www/html/YoutubeTesting/1080p.mp4"
但是我需要的每个关键帧的信息是
1- 视频字节大小的字节偏移量
2- 关键帧持续时间
谢谢!
使用
ffprobe -loglevel error -skip_frame nokey -select_streams v:0 -show_entries frame=pkt_duration_time,pkt_pos -of csv "video.mp4"
我刚刚发现自己要提取所有关于按键程序的信息。对某人有用。
只需在命令中添加 -skip_frame nokey
ffprobe -select_streams v -skip_frame nokey -show_frames -v quiet video.mp4
它将显示关键帧的信息,信息将包含时间、持续时间、偏移字节等
您可以使用以下命令获取关键帧偏移字节和帧编号。
ffprobe -skip_frame nokey -select_streams v:0 -count_frames -show_entries frame=pkt_pos,best_effort_timestamp_time -of csv INPUT