一种视频文件的编辑方法和装置制造方法及图纸

技术编号:4176734 阅读:159 留言:0更新日期:2012-04-11 18:40
本发明专利技术公开了一种视频文件的编辑方法,包括:对采集到的视频采样Sample和音频Sample分别进行缓存;根据缓存的视频Sample和音频Sample中的开始时间戳,对缓存的视频Sample和音频Sample进行同步;从中取出同步的视频Sample和音频Sample进行解码预览,同时配置文件头,生成片段文件,将同步的视频Sample和音频Sample连续写入所述片段文件;根据片段文件中的视频Sample是否为关键帧的信息,确定片段文件的切分点,向正在写入同步视频Sample和音频Sample的片段文件添加索引信息,生成完整的片段文件;本发明专利技术还提供了一种视频文件的编辑装置,基于该方法和装置,能在对视频片段文件进行实时编辑的同时生成最终用于发布的视频片段文件,缩短了发布的流程,提高了编辑效率。

Method and device for editing video file

The invention discloses a video file editing method, including: the collected video audio sampling Sample and Sample respectively according to the cache; the starting timestamp of the cached video Sample and audio Sample, video and audio to the cache Sample Sample synchronization; remove the synchronization of video and audio Sample from Sample in at the same time decoding Preview, configuration file, file will generate fragments, synchronized video and audio Sample Sample write the fragment file; according to the video clip file is Sample key frame information, determine the fragment file segmentation points, to writing synchronous video and audio Sample chip Sample Add the index segment file, generate complete fragment files; the invention also provides a device for editing the video file, the method and device based on in real-time editing of video files at the same time for video file to generate the final release, shorten the publishing process, improve the efficiency of editing.

【技术实现步骤摘要】

【技术保护点】
一种视频文件的编辑方法,其特征在于,该方法包括: A、对采集到的视频采样Sample和音频Sample分别进行缓存; B、根据缓存的视频Sample和音频Sample中的开始时间戳,对所述缓存的视频Sample和音频Sample进行同步 ; C、从缓存中取出所述同步的视频Sample和音频Sample进行解码预览,同时配置文件头,生成片段文件,将所述同步的视频Sample和音频Sample连续写入所述片段文件; D、根据所述片段文件中的视频Sample是否为关键帧的信息 ,确定所述片段文件的切分点,向所述正在写入同步视频Sample和音频Sample的片段文件添加索引信息,生成完整...

【技术特征摘要】

【专利技术属性】
技术研发人员:张磊王常波周期律
申请(专利权)人:北大方正集团有限公司北京大学北京北大方正电子有限公司
类型:发明
国别省市:11[中国|北京]

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1
相关领域技术
  • 暂无相关专利