Author Topic: H264 encode: Insert black frames at the end of the video  (Read 642 times)

Offline Sakura90

  • Member
  • Posts: 523
  • Got panties? ♥
H264 encode: Insert black frames at the end of the video
« on: July 01, 2010, 09:57:26 PM »
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 :(
Quote from: Youko@TF
What does "[sic]" mean? I don't think anyone got sick in the article so why is it in there? Should I start writing and post "[dump]" when I leave to go take a shit then return?

Offline Daiz

  • Member
  • Posts: 297
  • 10-bit Librarian
    • Underwater
Re: H264 encode: Insert black frames at the end of the video
« Reply #1 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.

Offline Sakura90

  • Member
  • Posts: 523
  • Got panties? ♥
Re: H264 encode: Insert black frames at the end of the video
« Reply #2 on: July 02, 2010, 02:01:30 AM »
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.
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?
Quote from: Youko@TF
What does "[sic]" mean? I don't think anyone got sick in the article so why is it in there? Should I start writing and post "[dump]" when I leave to go take a shit then return?

Offline hilander72

  • Member
  • Posts: 190
  • meow!
Re: H264 encode: Insert black frames at the end of the video
« Reply #3 on: July 02, 2010, 03:04:36 AM »
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.
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?

Google is your friend... ;)

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