1
Video Splitter / Bug? Mpeg-2 + h264: Frames get omitted when cutting on specific spots
« on: September 23, 2017, 12:00:54 AM »
Hello,
I stumbled upon the following bug, when cutting Mpeg-2 video:
I have TV-recordings, which have the following frame structure:
... I B B P B B P B B P B B I B B P B B P B B P B B I B B P B B P B B P B B I ...
When cutting before the I-Frame:
... I B B P B B P B B P B B I B B P B B P B B P B B I B B P B B P B B P B B I ...
^
The last two frames, which should be included (two B-Frames) get omitted.
Or when cutting before the B-Frame before the I-Frame:
... I B B P B B P B B P B B I B B P B B P B B P B B I B B P B B P B B P B B I ...
^
The last frame, which should be included (one B-Frames) gets omitted.
Also I had this strange inconsistent behaviour when cutting h264 TV-recordings:
When the output should have an even number of frames, then often the last frame gets omitted. But sometimes the last frame is there.
When the output should have an odd number of frames, then often all frames are there, but the last two or three frames have no audio.
I hope everything is understandable.
I stumbled upon the following bug, when cutting Mpeg-2 video:
I have TV-recordings, which have the following frame structure:
... I B B P B B P B B P B B I B B P B B P B B P B B I B B P B B P B B P B B I ...
When cutting before the I-Frame:
... I B B P B B P B B P B B I B B P B B P B B P B B I B B P B B P B B P B B I ...
^
The last two frames, which should be included (two B-Frames) get omitted.
Or when cutting before the B-Frame before the I-Frame:
... I B B P B B P B B P B B I B B P B B P B B P B B I B B P B B P B B P B B I ...
^
The last frame, which should be included (one B-Frames) gets omitted.
Also I had this strange inconsistent behaviour when cutting h264 TV-recordings:
When the output should have an even number of frames, then often the last frame gets omitted. But sometimes the last frame is there.
When the output should have an odd number of frames, then often all frames are there, but the last two or three frames have no audio.
I hope everything is understandable.