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[中国|北京]
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。