Ticket #6243 (closed patch: fixed)
Opened 4 years ago
Last modified 4 years ago
H.264 recording fixes
|Reported by:||jppoet@…||Owned by:||janne|
|Component:||MythTV - General||Version:||unknown|
Various fixes and clean up of H264Parser.
The detection of the start of a AU is now more correct, even though functionally the previous code produced the same results.
The first IDR will now be returned, instead of waiting for the next I-frame.
Technically, I-frames in H.264 are not keyframes. The HD-PVR only has an IDR every 128 frames, and does not seem to have any "recovery point" SEI NALs. That is a long time between keyframes, so I have left in the use of I-frames as keyframes. It is a #ifdef so can be removed easily.
Added parsing of "recovery point" SEI NALs, which should allow more accurate keyframe detection for BBC HD, and other streams without IDRs --- but I cannot test this. If someone in the UK could test this patch, and check their seektable to see if reasonable entries are being made there, I would appreciate it. This part is loosely based on recent patches to ffmpeg.
comment:1 Changed 4 years ago by mortalmatt
comment:2 Changed 4 years ago by jppoet@…
comment:3 Changed 4 years ago by Matthias "mortalmatt" Dahl <devel@…>
comment:4 Changed 4 years ago by Matthias "mortalmatt" Dahl <devel@…>
comment:5 Changed 4 years ago by jppoet@…
comment:6 Changed 4 years ago by janne
- Owner changed from ijr to janne
- Status changed from new to accepted
- Milestone changed from unknown to 0.22
comment:7 Changed 4 years ago by janne
- Status changed from accepted to closed
- Resolution set to fixed