This may not be the correct forum but I do use this information to cut and merge so...
I have a video I am editing and it has several scene changes that report from FFPROBE the frame is not listed as a key frame but the frame type is 'I'. There are other scene changes that report as a key frame with a type of 'I'
The sequence of one problem? are is, in sequences - Frame #, Frame type, Key_Frame, coded/display picture number:
40 P 0 40
41 P 0 41
42 P 0 42
43 P 0 43
44 P 0 44
45 I 0 45
46 P 0 46
47 P 0 47
The video does not contain the Format settings (Cabac, Ref, etc.) so I can assume it has been cut mid-stream from another video. Does this mean it is an Open GOP?
Can it be safely cut at frame 45?
The coded/decoded number are in sequence so nothing after frame 45 needs to be decoded or displayed before frame 45. I need This information to adjust my program when determining scene changes and authenticating them that are or are not actually a scene change.
I appreciate any help .
Thank You
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
I assume you are dealing with MPEG-4 AVC or HEVC and the question is whether it's an IDR or I frame.
iirc ffrobe would report:
Code:pict_type=I key_frame=1
Code:pict_type=I key_frame=0
So that frame would be a normal I-frame and in an H.264 or H.265 stream you can run into problems if you cut there. You might be lucky if non of the following frame actually references to the I-frame, but according to the specification you might get undecodable content if you cut there.
Can it be safely cut at frame 45?
Cu Selurusers currently on my ignore list: deadrats, Stears555 -
-
Selur... perfect explanation. ProWo... great article. You both have helped me tune my cut/merge program. I guess i had unknowingly had it programmed correctly by recognising only correct,complete I frames as valid cut points.
Thank you both for the great help!
Similar Threads
-
ffmpeg "Missing key frame while searching for timestamp" message
By the_steve_randolph in forum Newbie / General discussionsReplies: 0Last Post: 19th Aug 2021, 15:38 -
Video Key frame and I frame
By symoon2021 in forum Newbie / General discussionsReplies: 5Last Post: 12th Apr 2021, 11:31 -
Workable Key frame cutting/copying test
By Budman1 in forum Video ConversionReplies: 3Last Post: 2nd Jun 2018, 15:52 -
iffmpeg all key frame option
By bohitomi in forum MacReplies: 2Last Post: 15th Jul 2017, 12:44 -
Just an idea: ffmpeg based key frame accurate cutting,...
By Selur in forum Newbie / General discussionsReplies: 30Last Post: 21st Mar 2017, 04:56