H.264编码的视频 [英] H.264 encoded videos

查看:166
本文介绍了H.264编码的视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何以编程方式检测H.264编码的视频?


谢谢.....

Hi All,

How to detect H.264 encoded video programmatically?


Thanks.....

推荐答案

我不使用H.264,但是您可以结合使用一些工具/技术来获得想要的东西:

[方法0:辛苦]
读取文件的起始字节(可能类似于BOM表,并将其与H.264签名进行比较)

[方法1:简单]
FFMPEG command "ffmpeg -i yourfile"使用您喜欢的编程语言获取输出,并在输出中搜索视频格式.
I don''t use H.264 but you can combine between some tools/techniques to get what you want:

[Method-0 : hard]
you read start bytes of file (maybe this like BOM, and compare it with H.264 signature)

[Method-1 : easy]
you FFMPEG command "ffmpeg -i yourfile" get output by using your preferred programming language, and search for video format in output.


这篇关于H.264编码的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆