Discussion Forums > Technology

H264 encode: Insert black frames at the end of the video

(1/1)

Sakura90:
Hi!

I have to encode an OP and ED from an episode. I have the MKV with the H264 inside and the timeframes of the OP/ED. Like:

OP
From 1056 to 3208.

ED
From 31885 to 34042.


I can make the cuts with MeGUI's AVS Cutter. The thing is that I need to insert a certain number of black frames at the end of each cut. For example: the OP has 2153 frames and I need to add 100 black frames at the end, so 2154 to 2254 would be just black video. I use MeGUI and I didn't find an option to do that. Any ideas? (be it with MeGUI or with anything else)


Thanks :)


PS: I searched Google and I didn't find anything :(

Daiz:
To save some time, you could just:

1. Cut the OP & ED out of the video with mkvmerge
2. Encode 100 frames of black with the same resolution and settings that the video is encoded at
3. Append this black sequence to both the OP & ED.

That way you won't degrade the quality at all.

Sakura90:

--- Quote from: Daiz on July 01, 2010, 10:16:40 PM ---To save some time, you could just:

1. Cut the OP & ED out of the video with mkvmerge
2. Encode 100 frames of black with the same resolution and settings that the video is encoded at
3. Append this black sequence to both the OP & ED.

That way you won't degrade the quality at all.

--- End quote ---
That's nice. But I have to see if the frames I want to cut are I-frames. If not I could look for an episode where they do match (most likely where the OP/ED start and end abruptly). And how do I encode 100 frames of black? What do I use as source for the black?

hilander72:

--- Quote from: Sakura90 on July 02, 2010, 02:01:30 AM ---
--- Quote from: Daiz on July 01, 2010, 10:16:40 PM ---To save some time, you could just:

1. Cut the OP & ED out of the video with mkvmerge
2. Encode 100 frames of black with the same resolution and settings that the video is encoded at
3. Append this black sequence to both the OP & ED.

That way you won't degrade the quality at all.

--- End quote ---
That's nice. But I have to see if the frames I want to cut are I-frames. If not I could look for an episode where they do match (most likely where the OP/ED start and end abruptly). And how do I encode 100 frames of black? What do I use as source for the black?

--- End quote ---

Google is your friend... ;)

http://www.google.com/search?q=avisynth+blankclip

Navigation

[0] Message Index

Go to full version