Opened 11 years ago
Last modified 3 years ago
#3087 open defect
Suspicion that valid random access point is not marked as keyframe in AVCHD samples from Panasonic Lumix GH1 (1080i material)
Reported by: | rmk | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | git-master | Keywords: | h264 bounty |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
This is a follow-up to #3083.
The issue is very similar here, that I-frames that work as random access points (checked by cutting off the beginning of the file until the packet start of such a frame and it decodes fine) are not marked as keyframes by the parser.
The heuristic introduced to fix #3083
if(h->sps.ref_frame_count <= 1 && h->pps.ref_count[0] <= 1 && s->pict_type == AV_PICTURE_TYPE_I)
s->key_frame = 1;
fails here because both, h->sps.ref_frame_count and h->pps.ref_count[0] are 2.
I understand too little of h264 internals to say how that may be changed but maybe the heuristic does not cover the interlaced case.
I don't know if it has anything to do with it but this material is progressive segmented frame (i.e. progressively scanned but encoded as field pictures).
Attachments (1)
Change History (12)
by , 11 years ago
Attachment: | gh1_1080i_first2p5m.mts added |
---|
follow-up: 3 comment:1 by , 11 years ago
comment:2 by , 11 years ago
Keywords: | h264 added |
---|---|
Version: | unspecified → git-master |
follow-up: 4 comment:3 by , 11 years ago
comment:4 by , 11 years ago
comment:5 by , 11 years ago
comment:6 by , 11 years ago
Could you confirm that ticket #3063 is fixed? Preferably there in the ticket?
Thanks.
comment:7 by , 11 years ago
comment:8 by , 11 years ago
Component: | undetermined → avcodec |
---|
comment:9 by , 9 years ago
I am offering a bounty of 200 Euro for a committed fix (I need an invoice though).
comment:10 by , 9 years ago
Keywords: | bounty added |
---|---|
Status: | new → open |
comment:11 by , 3 years ago
checked by cutting off the beginning of the file until the packet start of such a frame and it decodes fine
How can you be sure that it decodes fine? Does it decode BITPERFECT? Then it is not a recovery point, recovery point does not usually decode bitperct, just very close.
I don't know if it has anything to do with it but this material is progressive segmented frame (i.e. progressively scanned but encoded as field pictures).
This is just the same as soft telecine, PsF that is. Yet I think only HEVC has such a concept reintroduced, no? Anyway, we do not support such hevc files. Full stop. Someone recheck the avc spec.
Isn't this a duplicate of ticket #3063?