使用FFmpeg获取视频每一帧的信息
2021/12/30 23:09:34
本文主要是介绍使用FFmpeg获取视频每一帧的信息,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
FFmpeg给我提供了非常好的视频信息分析的办法,使用ffprobe对音视频流的结构的分析非常方便。
首先,可以通过ffprobe --help来查看一些详细的参数的意义
usage: ffprobe [OPTIONS] [INPUT_FILE]
Main options: -L show license -h topic show help -? topic show help -help topic show help --help topic show help -version show version -buildconf show build configuration -formats show available formats -muxers show available muxers -demuxers show available demuxers -devices show available devices -codecs show available codecs -decoders show available decoders -encoders show available encoders -bsfs show available bit stream filters -protocols show available protocols -filters show available filters -pix_fmts show available pixel formats -layouts show standard channel layouts -sample_fmts show available audio sample formats -colors show available color names -loglevel loglevel set logging level -v loglevel set logging level -report generate a report -max_alloc bytes set maximum size of a single allocated block -cpuflags flags force specific cpu flags -hide_banner hide_banner do not show program banner -sources device list sources of the input device -sinks device list sinks of the output device -f format force format -unit show unit of the displayed values -prefix use SI prefixes for the displayed values -byte_binary_prefix use binary prefixes for byte units -sexagesimal use sexagesimal format HOURS:MM:SS.MICROSECONDS for time units -pretty prettify the format of displayed values, make it more human readable -print_format format set the output printing format (available formats are: default, compact, csv, flat, ini, json, xml) -of format alias for -print_format -select_streams stream_specifier select the specified streams -sections print sections structure and section information, and exit -show_data show packets data -show_data_hash show packets data hash -show_error show probing error -show_format show format/container info -show_frames show frames info -show_format_entry entry show a particular entry from the format/container info -show_entries entry_list show a set of specified entries -show_log show log -show_packets show packets info -show_programs show programs info -show_streams show streams info -show_chapters show chapters info -count_frames count the number of frames per stream -count_packets count the number of packets per stream -show_program_version show ffprobe version -show_library_versions show library versions -show_versions show program and library versions -show_pixel_formats show pixel format descriptions -show_private_data show private data -private same as show_private_data -bitexact force bitexact output -read_intervals read_intervals set read intervals -default generic catch all option -i input_file read specified file -find_stream_info read and decode the streams to fill missing information with heuristics
选择一个视频文件,导出视频帧的信息到outframe.info的文件
查看视频的frame信息:
这篇关于使用FFmpeg获取视频每一帧的信息的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-07-04TiDB 资源管控的对撞测试以及最佳实践架构
- 2024-07-03万字长文聊聊Web3的组成架构
- 2024-07-02springboot项目无法注册到nacos-icode9专业技术文章分享
- 2024-06-26结对编程到底难不难?答案在这里
- 2024-06-19《2023版Java工程师》课程升级公告
- 2024-06-15matplotlib作图不显示3D图,怎么办?
- 2024-06-1503-Loki 日志监控
- 2024-06-1504-让LLM理解知识 -Prompt
- 2024-06-05做软件测试需要懂代码吗?
- 2024-06-0514-ShardingSphere的分布式主键实现