Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Thread Tools Search this Thread Display Modes
Old 21st March 2019, 14:22   #1  |  Link
Registered User
Join Date: Sep 2004
Posts: 147
How to force I-frames during x264 encoding?

I encode to h264 using megui, avisynth, avs-script.

Is it possible to encode definite frames as I-frames? For example, frames N 15123, 17234, 30123 must be encoded as I-frames.
I want to make chapters start exact at these frames.
This was discussed in 2008 year, but there was no solution for the problem. May be now it's possible?

I also wander how to view type of frames in h264 (how to find I-frames). For avi-xvid there is virtualdub, where I can jump on keyframes holding shift key.

alexVS is offline   Reply With Quote
Old 21st March 2019, 15:12   #2  |  Link
Registered User
Join Date: Dec 2002
Posts: 5,565
You can specify a qpfile via the advanced x264 settings ("Misc" tab).

For example to make the 3 frames you listed into IDR frames create a text file as follows:
15123 I
17234 I
30123 I
(counting starts from 0)

Last edited by sneaker_ger; 21st March 2019 at 15:48.
sneaker_ger is offline   Reply With Quote
Old 22nd March 2019, 17:38   #3  |  Link
Registered User
Join Date: Sep 2004
Posts: 147
Thanks! It works fine!
alexVS is offline   Reply With Quote

encoding, h264, keyframes, megui

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 19:23.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.