怎样更新AVI文件的fps?

smellteen 2005-08-09 05:29:27
怎样更新AVI文件的fps?
一个已经创建好的AVI文件,通过AVIStreamWrite写数据,最后写好后怎样怎样更新AVI文件的fps?
谢谢。
...全文
124 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
httpaspjspphp 2005-08-11
  • 打赏
  • 举报
回复
使文件函数就可以阿
smellteen 2005-08-11
  • 打赏
  • 举报
回复
AVIFileWriteData
这个么?

该函数第2个参数应该怎么设置,我用了几次都没有达到修改的目的。
smellteen 2005-08-10
  • 打赏
  • 举报
回复
这位老兄:

我这样得到信息:

AVIFILEINFO x;
AVIFileInfo(pfile, &x, sizeof(x));

然后做更改
x.dwScale = value;

然后怎么把更改了的信息写回去呀?
用哪个函数?

谢谢。
windows_editor 2005-08-10
  • 打赏
  • 举报
回复
typedef struct _avistreamheader {
FOURCC fcc;
DWORD cb;
FOURCC fccType;
FOURCC fccHandler;
DWORD dwFlags;
WORD wPriority;
WORD wLanguage;
DWORD dwInitialFrames;
DWORD dwScale;
DWORD dwRate;
DWORD dwStart;
DWORD dwLength;
DWORD dwSuggestedBufferSize;
DWORD dwQuality;
DWORD dwSampleSize;
struct {
short int left;
short int top;
short int right;
short int bottom;
} rcFrame;
} AVISTREAMHEADER;

dwScale

Used with dwRate to specify the time scale that this stream will use. Dividing dwRate by dwScale gives the number of samples per second. For video streams, this is the frame rate. For audio streams, this rate corresponds to the time needed to play nBlockAlign bytes of audio, which for PCM audio is the just the sample rate.

dwRate

See dwScale.

2,543

社区成员

发帖
与我相关
我的任务
社区描述
专题开发/技术/项目 多媒体/流媒体开发
社区管理员
  • 多媒体/流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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