(i'm French, sorry for my english).
I was created a software for cut and convert videos TS (h264 and mpeg-2) to mp4. It work very well in Mpeg-2 but in h264 i have some artefacts at the location of the cuts. I cut out this video on frames that contains SPS or PPS (codes in hexa are 00 00 01 67 (SPS) and 00 00 01 68 (PPS).
Some cuts are very perfect but some cuts have artefacts so i think all this frame are not key frames.
On the web i have found codes like (00 00 01 X) for IDR-frame wich X is 25 ,45 or 65 but my h264 vidéos does not contains any codes like that so i'm not sure to cut on the right frame.
Do you know how to find h264 keys frames and what are the codes to find ?
Thank you very much for your help.
+ Reply to Thread
Results 1 to 5 of 5
Thread: how to find key frames in h264
someone to help me please ?
I discovered a little by accident today, the command line version of ffms index can write the location of keyframes to a text file when it's indexing. You might be able to use it to help you work out how to identify them. Or it mightn't help at all, but I thought I'd point it out.
Thank You very much, i'm going to try that.