2007.10.29 Jinq:
Bugfix: Reader released before EOF, cause OnTime() crash.
Stop reading when reach max duration.
2007.3.23 Jinq:
Change to support copy from any start position.
Usage: Usage: wmvcopy -i <INPUT_FILE> -o <OUTPUT_FILE> [-f <FROM>] -d <TIME> [-s]
-i <INPUT_FILE> = Input Windows Media file name
-o <OUTPUT_FILE> = Output Windows Media file name
-f <FROM> = from which position to copy, in seconds of the input file,
if omitted, copy from the head
-d <TIME> = specify the max duration in seconds of the output file,
-s = Move scripts in script stream to header
-----------------------------------------------------------
================================================================================
WIN32 Console Application : WMVCopy
================================================================================
This sample shows the necessary code to copy a WMV file.
It demonstrates how to read compressed samples, write compressed samples, read
header attributes and scripts, and modify header attributes.
Usage: wmvcopy -i <INPUT_FILE> -o <OUTPUT_FILE> -d <TIME> [-s]
-i <INPUT_FILE> = Input Windows Media file name
-o <OUTPUT_FILE> = Output Windows Media file name
-d <TIME> = specify the max duration in seconds of the output file
-s = Move scripts in script stream to header
Note: this program will not copy the image stream in the source file.
To build the sample, open the project file WMVCopy.dsp in Visual Studio and build
the project.
Important methods used in this sample:
- IWMReaderAdvanced::SetReceiveStreamSamples
- IWMReaderAdvanced::SetManualStreamSelection
- IWMReaderAdvanced::DeliverTime
- IWMReaderAdvanced::SetUserProvidedClock
- IWMReaderCallbackAdvanced::OnStreamSample
- IWMReaderCallbackAdvanced::OnTime
- IWMReaderCallbackAdvanced::OnStatus
- IWMWriter::BeginWriting
- IWMWriter::EndWriting
- IWMWriterAdvanced::WriteStreamSample
- IWMHeaderInfo::GetScript
- IWMHeaderInfo::AddScript
- IWMHeaderInfo::GetMarker
- IWMHeaderInfo::AddMarker
- IWMProfileManager::LoadSystemProfile
- IWMProfileManager::LoadProfileByData
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
wmvcopy.zip (6个子文件)
wmvcopy
ScriptList.h 6KB
main.cpp 7KB
WMVCopy.h 6KB
wmvcopy.dsp 4KB
WMVCopy.cpp 40KB
ReadMe.txt 2KB
共 6 条
- 1
资源评论
- 一魅2018-03-10简单易懂,很好的例子
- foow_liang2013-01-07跟msdn的说明对比了一下,基本上能理解该工作过程了
- coderBC2013-04-23简单易懂,很好的例子
金庆
- 粉丝: 1w+
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功