[FFmpeg-devel] [RFC] support for Cam_PAL_D1_inter_Field_25fps_2.5MBS.mp4

Reimar Döffinger Reimar.Doeffinger
Wed Mar 26 09:57:35 CET 2008


Hello,
On Wed, Mar 26, 2008 at 03:46:59AM +0100, Michael Niedermayer wrote:
> On Fri, Mar 21, 2008 at 01:50:47PM +0100, Reimar D?ffinger wrote:
> > @@ -7600,6 +7614,10 @@
> >               * NAL unit stuff to context 0 and restart. Note that
> >               * rbsp_buffer is not transfered, but since we no longer
> >               * run in parallel mode this should not be an issue. */
> > +            if(context_count) {
> > +                execute_decode_slices(h, context_count);
> > +                context_count = 0;
> > +            }
> 
> What values do context_count and h->max_contexts have here? and why
> does the 
> if(context_count == h->max_contexts) {
> above not trigger?
> 
> max_contexts should be 1 and context_count should be 1 as well i think

In this case yes, but my idea was that the code should also work and
decode in parallel if each field is coded into multiple slices.
Since I have no actual file to test that, I could have done nonsense I
admit...

> and could you dump the NAL unit types each frame has? 
> (debug= FF_DEBUG_STARTCODE IIRC)

Mostly 1 and 6, here is part of the output:

[h264 @ 0x7b13c0]NAL 7 at 2/25 length 22
[h264 @ 0x7b13c0]NAL 8 at 2/6 length 3
[h264 @ 0x7b13c0]NAL 6 at 4/18168 length 263
[h264 @ 0x7b13c0]NAL 8 at 312/18168 length 3
[h264 @ 0x7b13c0]NAL 5 at 320/18168 length 15673
[h264 @ 0x7b13c0]NAL 1 at 15998/18168 length 2169
[h264 @ 0x7b13c0]NAL 6 at 4/5177 length 71
[h264 @ 0x7b13c0]NAL 8 at 85/5177 length 3
[h264 @ 0x7b13c0]NAL 1 at 93/5177 length 2698
[h264 @ 0x7b13c0]NAL 1 at 2796/5177 length 2380
[h264 @ 0x7b13c0]NAL 6 at 4/4373 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/4373 length 2109
[h264 @ 0x7b13c0]NAL 1 at 2194/4373 length 2178
[h264 @ 0x7b13c0]NAL 6 at 4/6156 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/6156 length 2794
[h264 @ 0x7b13c0]NAL 1 at 2879/6156 length 3276
[h264 @ 0x7b13c0]NAL 6 at 4/6271 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/6271 length 3020
[h264 @ 0x7b13c0]NAL 1 at 3105/6271 length 3165
[h264 @ 0x7b13c0]NAL 6 at 4/8790 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/8790 length 4279
[h264 @ 0x7b13c0]NAL 1 at 4364/8790 length 4425
[h264 @ 0x7b13c0]NAL 6 at 4/7957 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/7957 length 3890
[h264 @ 0x7b13c0]NAL 1 at 3975/7957 length 3981
[h264 @ 0x7b13c0]NAL 6 at 4/7532 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/7532 length 3892
[h264 @ 0x7b13c0]NAL 1 at 3977/7532 length 3554
[h264 @ 0x7b13c0]NAL 6 at 4/7521 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/7521 length 3630
[h264 @ 0x7b13c0]NAL 1 at 3715/7521 length 3805
[h264 @ 0x7b13c0]NAL 6 at 4/10637 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/10637 length 5248
[h264 @ 0x7b13c0]NAL 1 at 5333/10637 length 5303
[h264 @ 0x7b13c0]NAL 6 at 4/10749 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/10749 length 5553
[h264 @ 0x7b13c0]NAL 1 at 5638/10749 length 5110
[h264 @ 0x7b13c0]NAL 6 at 4/11459 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/11459 length 5337
[h264 @ 0x7b13c0]NAL 1 at 5422/11459 length 6036
[h264 @ 0x7b13c0]NAL 6 at 4/12485 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/12485 length 5723
[h264 @ 0x7b13c0]NAL 1 at 5808/12485 length 6676
[h264 @ 0x7b13c0]NAL 6 at 4/11825 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/11825 length 5695
[h264 @ 0x7b13c0]NAL 1 at 5780/11825 length 6044
[h264 @ 0x7b13c0]NAL 6 at 4/12106 length 71
[h264 @ 0x7b13c0]NAL 1 at 80/12106 length 5709
[h264 @ 0x7b13c0]NAL 1 at 5794/12106 length 6311
[h264 @ 0x7b13c0]NAL 6 at 4/34772 length 71
[h264 @ 0x7b13c0]NAL 8 at 80/34772 length 3
[h264 @ 0x7b13c0]NAL 5 at 88/34772 length 25285
[h264 @ 0x7b13c0]NAL 1 at 25378/34772 length 9393
[h264 @ 0x7b13c0]NAL 6 at 4/12884 length 71
[h264 @ 0x7b13c0]NAL 8 at 80/12884 length 3




More information about the ffmpeg-devel mailing list