怎样获取不同视频文件的类型

linyang0106linyang 2006-01-04 03:08:58
我想获取不同视频文件的类型,比如以avi为扩展名的文件,就有好几种格式,我怎样来获取它的格式呢?再比如wmv的有wmv3,wmv9的,怎样来取得呢?
...全文
68 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
DentistryDoctor 2006-01-07
  • 打赏
  • 举报
回复
IFileSourceFilter::GetCurFile
The GetCurFile method retrieves the name and media type of the current file.

Syntax

HRESULT GetCurFile(
LPOLESTR *ppszFileName,
AM_MEDIA_TYPE *pmt
);

Parameters

ppszFileName

[out] Address of a pointer that receives the name of the file, as an OLESTR type.

pmt

[out] Pointer to an AM_MEDIA_TYPE structure that receives the media type. This parameter can by NULL, in which case the method does not return the media type.

Return Values
蒋晟 2006-01-05
  • 打赏
  • 举报
回复
你可以用DirectShow的File Source Filter来取Media Type

7,540

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧