为什么我用摄像头捕捉到的画面,存放在一个AVI文件里,回放时却不能更改播放速率??

gxmacc 2005-03-01 03:17:04
为什么我用摄像头捕捉到的画面,存放在一个AVI文件里,回放时却不能更改播放速率??我是使用:
IMediaSeeking->SetRate();来设置回放速率的。但不管我怎么设值(<1 or >1),它都是以标准速率播放。请问我该怎么做才能实现更改速率啊?? 谢谢!!!!!!
...全文
148 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
hanshujiang 2005-03-21
  • 打赏
  • 举报
回复
http://www.websamba.com/dxmylove,dxmylove@yahoo.com.cn,qq:171833017
联系我,我会
eyes4 2005-03-04
  • 打赏
  • 举报
回复
可能是AVI文件本身有问题:
1.可能是AVI文件没有index
2.AVI文件没有标记关键帧
gxmacc 2005-03-01
  • 打赏
  • 举报
回复
用Pause停止了,其他AVI都没有问题,就是用摄像头捕捉的文件播放出来就有问题。
我是先 Pause,然后SetRate()。 然后继续Run()。思路没有错误啊。现在很郁闷的,实在不行我就只好想办法一帧一帧的播放了。
yyhzpk 2005-03-01
  • 打赏
  • 举报
回复
1 Calls the GetCurrentPosition method. This call returns the current position as calculated by the filter graph manager.
2 Stops the filter graph (if the graph is paused or running).
3 Calls the SetPositions method on the filters, with the current position as the start time. This has the effect of resetting the stream time to zero.
4 Calls the SetRate method on the filters, with the new rate.
Resumes the filter graph, if it was paused or running.

是不是因为你没有把GRAPH停下来

2,543

社区成员

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

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