如何准确地分割长GOP视频(H264 / XDCAM ...)与FFMPEG? [英] How to split accurately a LONG GOP video (h264/XDCAM...) with FFMPEG?

查看:2799
本文介绍了如何准确地分割长GOP视频(H264 / XDCAM ...)与FFMPEG?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标是分割XDCAM或H264视频,精确到帧,与ffmpeg的。
我想,这个问题来自于它的长GOP结构,但是我正在寻找一种方式,而不重新编码它分割视频。
我申请的偏移量为en code只有视频的特定部分(让说从10秒到媒体的结尾)
任何想法?

My goal is to split a XDCAM or a H264 video, frame-accurately, with ffmpeg. I guess that the problem comes from its long GOP structure, but I'm looking for a way to split the video without re-encoding it. I apply an offset to encode only a specific section of the video (let say from the 10th second to the end of the media) Any ideas ?

推荐答案

我真的不知道,如果有可能通过1通与ffmpeg的事,但2-3

I`m not sure if it possible to do by 1 pass with ffmpeg, but 2-3

第1次:你刚才转储原始帧到文件
第2次:你会发现与指数&LT封闭的GOP(mxdcam)/ IDR帧(H264);要启动帧=指数

1st pass: you just dump raw frames to file 2nd pass: you find closed gop(mxdcam)/idr frame (h264) with index <= index of frame you want to start

如果索引等于你就可以开始复用。否则,你需要从封闭的GOP / IDR帧去code sequense下一关GOP你想/ IDR帧和连接code起始帧

in case indexes equal you can start mux. otherwise you need to decode sequense from closed gop/idr frame to next closed gop/idr frame and encode starting frame you want

这篇关于如何准确地分割长GOP视频(H264 / XDCAM ...)与FFMPEG?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆