文件名称:FLV-MergeVideo
- 所属分类:
- 流媒体/Mpeg4
- 资源属性:
- [Windows] [Visual C] [Basic/ASP] [源码]
- 上传时间:
- 2013-05-08
- 文件大小:
- 12kb
- 下载次数:
- 0次
- 提 供 者:
- 老*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
这是一个可以将从网上下载的零碎小片断的FLV视频,合并成一个文件的小程序。
合并FLV文件的注意事项最重要的有三点:
1.只有第一个FLV文件才需要保留脚本标签,删除后面的FLV文件的脚本标签。
2.更改第一个FLV文件脚本标签中的持续时间值(把后面的FLV文件的持续时间值累加上去)。这里要注意的是:FLV文件与VB的双精度值的字节顺序是相反的。
3.后面的FLV文件中,所有视频标签和音频标签中的时间戳,要加上第一个FLV文件中的“持续时间”这个元素值,再加上56(视频标签时间戳)或26(音频标签时间戳,加26是因为FLV的音频类型基本上都是mp3,而mp3每帧的时长都是26ms)。
附件中的程序代码已经做了适当的注释,不过,想要完全弄明白,请参阅笔者写的《FLV文件数据结构》一文。-This is a can be downloaded from the Internet the small fragments of the FLV video, merged into one document small program.
Notes with FLV files is the most important of the three point:
1 only the first FLV file only needs to retain the scr ipt tag, delete the back FLV file scr ipt tags.
2 change the duration of the first FLV file scr ipt tag value (the last time behind the FLV file values accumulated.). It should be noted here is: sequential byte double precision FLV file and the value of VB is the opposite of.
After the 3 FLV files, all video and audio timestamp tag label, with the first FLV file in the "duration" of the element value, plus 56 (video label timestamp) or 26 (audio tags timestamp, plus 26 is because the FLV audio types on the basis of are MP3 and MP3, each fr a me duration is 26ms).
In the annex to the program code has to do the appropriate annotations, however, want to fully understand, please refer to the author to write "FLV" a text file data structure.
合并FLV文件的注意事项最重要的有三点:
1.只有第一个FLV文件才需要保留脚本标签,删除后面的FLV文件的脚本标签。
2.更改第一个FLV文件脚本标签中的持续时间值(把后面的FLV文件的持续时间值累加上去)。这里要注意的是:FLV文件与VB的双精度值的字节顺序是相反的。
3.后面的FLV文件中,所有视频标签和音频标签中的时间戳,要加上第一个FLV文件中的“持续时间”这个元素值,再加上56(视频标签时间戳)或26(音频标签时间戳,加26是因为FLV的音频类型基本上都是mp3,而mp3每帧的时长都是26ms)。
附件中的程序代码已经做了适当的注释,不过,想要完全弄明白,请参阅笔者写的《FLV文件数据结构》一文。-This is a can be downloaded from the Internet the small fragments of the FLV video, merged into one document small program.
Notes with FLV files is the most important of the three point:
1 only the first FLV file only needs to retain the scr ipt tag, delete the back FLV file scr ipt tags.
2 change the duration of the first FLV file scr ipt tag value (the last time behind the FLV file values accumulated.). It should be noted here is: sequential byte double precision FLV file and the value of VB is the opposite of.
After the 3 FLV files, all video and audio timestamp tag label, with the first FLV file in the "duration" of the element value, plus 56 (video label timestamp) or 26 (audio tags timestamp, plus 26 is because the FLV audio types on the basis of are MP3 and MP3, each fr a me duration is 26ms).
In the annex to the program code has to do the appropriate annotations, however, want to fully understand, please refer to the author to write "FLV" a text file data structure.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FLV视频合并\FLV.ico
...........\FLV文件数据结构以及读取其脚本信息的代码.txt
...........\Form6.frm
...........\Form6.frx
...........\工程1.vbp
...........\工程1.vbw
FLV视频合并