Cut an H264 video on non-key frames

2

I would like to extract a scene of a video (audio codec: AAC, video codec: H264). The problem is that the scene doesn't begin on a I key-frame. The software, I have tried (Avidemux, Handbrake or VLC) allow to cut a video only on key-frames. Does anyone have a tips to solve this issue?

Thanks'

MarAja

Posted 2013-06-27T15:07:51.087

Reputation: 291

Answers

1

No way IMHO, for h.264 you have to cut at keyframes (Intra frames = I frames).

http://en.wikipedia.org/wiki/Key_frame

In video compression, a keyframe, also known as an Intra Frame, is a frame in which a complete image is stored in the data stream. In video compression, only changes that occur from one frame to the next are stored in the data stream, in order to greatly reduce the amount of information that must be stored. This technique capitalizes on the fact that most video sources (such as a typical movie) have only small changes in the image from one frame to the next. Whenever a drastic change to the image occurs, such as when switching from one camera shot to another, or at a scene change, a keyframe must be created.

duDE

Posted 2013-06-27T15:07:51.087

Reputation: 14 097

4Unless you re-encode, which will take a lot longer and potentially introduce a decrease in quality. – Scott Chamberlain – 2013-06-27T15:19:49.090