Re: [Cin] Vulkan hevc hdr decode regression on ffmpeg master?

2025-05-21 Thread Andrew Randrianasulu via Cin
чт, 22 мая 2025 г., 00:33 Phyllis Smith :

> Just an update:
> Finally got the HP Intel laptop to compile CinGG (it was probably due to
> the accumulated dust since it had been awhile since I booted it and even
> though closed, dust accumulated inside).  But the graphics hardware for
> either vaapi or vdpau still replies "Decoder msmpeg4 does not support
> device type vaapi" or vdpau and still uses SW decode.  And I am kind of
> tired of watching the Fight.Club.Trailer.avi (downloaded from the site you
> mentioned in this thread) even if Brad Pitt is in it.  Mediainfo reports it
> as MPEG-4 Visual.
>
> But I see that I have support for DIVX4 so will try that.  Attaching my
> vainfo and vdpauinfo output.
>

Probably you can just drop this ball forn now - from attached files it
looks like your graphic  hw simply does not support decoding mpeg4 ASP ...

But at least lets hope laptop will be light usable now,after you dusted it
off .


> On Tue, May 20, 2025 at 4:35 PM Andrew Randrianasulu <
> randrianas...@gmail.com> wrote:
>
>>
>>
>> вт, 20 мая 2025 г., 22:15 Phyllis Smith :
>>
>>> Downloaded a msmpeg4 file and unfortunately my computers are AMD / vdpau
>>> hardware.  The one vaapi laptop will not compile CinGG anymore.
>>>
>>
>>
>> oh, what's error?
>>
>>
>>
>> So the AMD computers get the error::
>>>
 Decoder msmpeg4 does not support device type vaapi.
 HW device init failed, using SW decode.
 file:/root/Downloads/Fight.Club.Trailer.avi
   err: Operation not permitted

>>> But I will still test decoding and encoding using software -- my
>>> rationale is that if it decodes correctly, then the encode will match
>>> between ffmpeg version 7.0 and future 8.0.
>>>
>>> On Sun, May 18, 2025 at 6:21 PM Andrew Randrianasulu <
>>> randrianas...@gmail.com> wrote:
>>>


 пн, 19 мая 2025 г., 03:04 Phyllis Smith :

> Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
>> playback via some hw accelerated method? I'll try some files I have from
>> those old times ...
>>
> I loaded small h263 videos in ffmpeg 7.0 (current) which would run
> h263dec.c (I assume) and then encoded them using h264.mp4 format.  I then
> did the same thing in the ffmpeg.git version (future version 8.0) where
> patch8 was deleted.  Visually detected no problem and when I used the
> patchbay arithmetic subtract on the 2 versions of encoded files, they
> showed no anomalies.
>

 I am going by my understanding of context diff:



 --- a/libavcodec/h263dec.c
 +++ b/libavcodec/h263dec.c
 @@ -623,7 +623,7 @@
  if (CONFIG_MPEG4_DECODER && avctx->codec_id == AV_CODEC_ID_MPEG4)
  ff_mpeg4_frame_end(avctx, buf, buf_size);

 -if (!s->divx_packed && avctx->hwaccel)
 +if (s->divx_packed && avctx->hwaccel)
  ff_thread_finish_setup(avctx);


 yes, file named h263  but also serves (or served? if patch not
 applicable anymore) role in decoding

 DiVX type of codecs, old msmpeg4 was first of them, divx3/5/XVID
 followed

 So, *I think* you need to raid

 samples.mplayerhq.hu

 and get some "packed B frame" xvid (or may be just make one with
 Avidemux?) and then look if your vainfo/vdpauinfo shows MPEG4 decoding, set
 cingg to this decode accel, and play vid in both sw and hw decode mode ?

 Sorry still not moved myself to check it out .





> But I completely re-run make clean,  ./autogen.sh/configure/make dance
>>
> Finally, it compiled but I am not sure what made the difference as I
> always use "make clean" and then run "bld.sh" which includes "autogen.sh";
> i.e. -
>
>> #!/bin/bash
>> ...
>> ( ./autogen.sh
>>   ./configure --with-single-user --with-git-ffmpeg=
>> https://git.ffmpeg.org/ffmpeg.git
>>   make && make install ) 2>&1 | tee log
>> mv Makefile Makefile.cfg
>> cp Makefile.devel Makefile
>>
>
>
> On Sat, May 17, 2025 at 6:04 PM Andrew Randrianasulu <
> randrianas...@gmail.com> wrote:
>
>>
>>
>> вс, 18 мая 2025 г., 02:56 Phyllis Smith :
>>
>>> Checked into GIT the updated ffmpeg.git.patches for future potential
>>> upgrade to ffmpeg version 8.0.  And deleted ffmpeg.git.patch8 after
>>> attempting to determine what it was actually for and could find no
>>> information on that when included sometime in 2019 as patch7.  It is
>>> possible that it is no longer needed though - it may have been intended 
>>> as
>>> a speed improvement; but if some relevant error resurfaces, it can then 
>>> be
>>> revisited.
>>>
>>
>>
>> Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
>> playback via some hw accelerated method? I'll try some files I have from
>> those old times ...
>>
>>
>>
>>> Andrea, the failu

Re: [Cin] Vulkan hevc hdr decode regression on ffmpeg master?

2025-05-21 Thread Phyllis Smith via Cin
Just an update:
Finally got the HP Intel laptop to compile CinGG (it was probably due to
the accumulated dust since it had been awhile since I booted it and even
though closed, dust accumulated inside).  But the graphics hardware for
either vaapi or vdpau still replies "Decoder msmpeg4 does not support
device type vaapi" or vdpau and still uses SW decode.  And I am kind of
tired of watching the Fight.Club.Trailer.avi (downloaded from the site you
mentioned in this thread) even if Brad Pitt is in it.  Mediainfo reports it
as MPEG-4 Visual.

But I see that I have support for DIVX4 so will try that.  Attaching my
vainfo and vdpauinfo output.

On Tue, May 20, 2025 at 4:35 PM Andrew Randrianasulu <
randrianas...@gmail.com> wrote:

>
>
> вт, 20 мая 2025 г., 22:15 Phyllis Smith :
>
>> Downloaded a msmpeg4 file and unfortunately my computers are AMD / vdpau
>> hardware.  The one vaapi laptop will not compile CinGG anymore.
>>
>
>
> oh, what's error?
>
>
>
> So the AMD computers get the error::
>>
>>> Decoder msmpeg4 does not support device type vaapi.
>>> HW device init failed, using SW decode.
>>> file:/root/Downloads/Fight.Club.Trailer.avi
>>>   err: Operation not permitted
>>>
>> But I will still test decoding and encoding using software -- my
>> rationale is that if it decodes correctly, then the encode will match
>> between ffmpeg version 7.0 and future 8.0.
>>
>> On Sun, May 18, 2025 at 6:21 PM Andrew Randrianasulu <
>> randrianas...@gmail.com> wrote:
>>
>>>
>>>
>>> пн, 19 мая 2025 г., 03:04 Phyllis Smith :
>>>
 Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
> playback via some hw accelerated method? I'll try some files I have from
> those old times ...
>
 I loaded small h263 videos in ffmpeg 7.0 (current) which would run
 h263dec.c (I assume) and then encoded them using h264.mp4 format.  I then
 did the same thing in the ffmpeg.git version (future version 8.0) where
 patch8 was deleted.  Visually detected no problem and when I used the
 patchbay arithmetic subtract on the 2 versions of encoded files, they
 showed no anomalies.

>>>
>>> I am going by my understanding of context diff:
>>>
>>>
>>>
>>> --- a/libavcodec/h263dec.c
>>> +++ b/libavcodec/h263dec.c
>>> @@ -623,7 +623,7 @@
>>>  if (CONFIG_MPEG4_DECODER && avctx->codec_id == AV_CODEC_ID_MPEG4)
>>>  ff_mpeg4_frame_end(avctx, buf, buf_size);
>>>
>>> -if (!s->divx_packed && avctx->hwaccel)
>>> +if (s->divx_packed && avctx->hwaccel)
>>>  ff_thread_finish_setup(avctx);
>>>
>>>
>>> yes, file named h263  but also serves (or served? if patch not
>>> applicable anymore) role in decoding
>>>
>>> DiVX type of codecs, old msmpeg4 was first of them, divx3/5/XVID
>>> followed
>>>
>>> So, *I think* you need to raid
>>>
>>> samples.mplayerhq.hu
>>>
>>> and get some "packed B frame" xvid (or may be just make one with
>>> Avidemux?) and then look if your vainfo/vdpauinfo shows MPEG4 decoding, set
>>> cingg to this decode accel, and play vid in both sw and hw decode mode ?
>>>
>>> Sorry still not moved myself to check it out .
>>>
>>>
>>>
>>>
>>>
 But I completely re-run make clean,  ./autogen.sh/configure/make dance
>
 Finally, it compiled but I am not sure what made the difference as I
 always use "make clean" and then run "bld.sh" which includes "autogen.sh";
 i.e. -

> #!/bin/bash
> ...
> ( ./autogen.sh
>   ./configure --with-single-user --with-git-ffmpeg=
> https://git.ffmpeg.org/ffmpeg.git
>   make && make install ) 2>&1 | tee log
> mv Makefile Makefile.cfg
> cp Makefile.devel Makefile
>


 On Sat, May 17, 2025 at 6:04 PM Andrew Randrianasulu <
 randrianas...@gmail.com> wrote:

>
>
> вс, 18 мая 2025 г., 02:56 Phyllis Smith :
>
>> Checked into GIT the updated ffmpeg.git.patches for future potential
>> upgrade to ffmpeg version 8.0.  And deleted ffmpeg.git.patch8 after
>> attempting to determine what it was actually for and could find no
>> information on that when included sometime in 2019 as patch7.  It is
>> possible that it is no longer needed though - it may have been intended 
>> as
>> a speed improvement; but if some relevant error resurfaces, it can then 
>> be
>> revisited.
>>
>
>
> Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
> playback via some hw accelerated method? I'll try some files I have from
> those old times ...
>
>
>
>> Andrea, the failure in your last attached cin5.log as shown below
>> appears to be due to commenting out libpostproc.a in configure.ac
>> because that is needed by cinelerra-5.1/mpeg2enc build.
>>
>>> make[2]: *** [Makefile:75: x86_64/hveg2enc] Error 1
>>> make[2]: uscita dalla directory
>>> «/home/paz/cinelerra5/cinelerra-5.1/mpeg2enc»
>>>
>>
>
> For me deleting libpostproc.a from configure.ac worked 

Re: [Cin] Vulkan hevc hdr decode regression on ffmpeg master?

2025-05-20 Thread Andrew Randrianasulu via Cin
вт, 20 мая 2025 г., 22:15 Phyllis Smith :

> Downloaded a msmpeg4 file and unfortunately my computers are AMD / vdpau
> hardware.  The one vaapi laptop will not compile CinGG anymore.
>


oh, what's error?



So the AMD computers get the error::
>
>> Decoder msmpeg4 does not support device type vaapi.
>> HW device init failed, using SW decode.
>> file:/root/Downloads/Fight.Club.Trailer.avi
>>   err: Operation not permitted
>>
> But I will still test decoding and encoding using software -- my rationale
> is that if it decodes correctly, then the encode will match between ffmpeg
> version 7.0 and future 8.0.
>
> On Sun, May 18, 2025 at 6:21 PM Andrew Randrianasulu <
> randrianas...@gmail.com> wrote:
>
>>
>>
>> пн, 19 мая 2025 г., 03:04 Phyllis Smith :
>>
>>> Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
 playback via some hw accelerated method? I'll try some files I have from
 those old times ...

>>> I loaded small h263 videos in ffmpeg 7.0 (current) which would run
>>> h263dec.c (I assume) and then encoded them using h264.mp4 format.  I then
>>> did the same thing in the ffmpeg.git version (future version 8.0) where
>>> patch8 was deleted.  Visually detected no problem and when I used the
>>> patchbay arithmetic subtract on the 2 versions of encoded files, they
>>> showed no anomalies.
>>>
>>
>> I am going by my understanding of context diff:
>>
>>
>>
>> --- a/libavcodec/h263dec.c
>> +++ b/libavcodec/h263dec.c
>> @@ -623,7 +623,7 @@
>>  if (CONFIG_MPEG4_DECODER && avctx->codec_id == AV_CODEC_ID_MPEG4)
>>  ff_mpeg4_frame_end(avctx, buf, buf_size);
>>
>> -if (!s->divx_packed && avctx->hwaccel)
>> +if (s->divx_packed && avctx->hwaccel)
>>  ff_thread_finish_setup(avctx);
>>
>>
>> yes, file named h263  but also serves (or served? if patch not applicable
>> anymore) role in decoding
>>
>> DiVX type of codecs, old msmpeg4 was first of them, divx3/5/XVID followed
>>
>> So, *I think* you need to raid
>>
>> samples.mplayerhq.hu
>>
>> and get some "packed B frame" xvid (or may be just make one with
>> Avidemux?) and then look if your vainfo/vdpauinfo shows MPEG4 decoding, set
>> cingg to this decode accel, and play vid in both sw and hw decode mode ?
>>
>> Sorry still not moved myself to check it out .
>>
>>
>>
>>
>>
>>> But I completely re-run make clean,  ./autogen.sh/configure/make dance

>>> Finally, it compiled but I am not sure what made the difference as I
>>> always use "make clean" and then run "bld.sh" which includes "autogen.sh";
>>> i.e. -
>>>
 #!/bin/bash
 ...
 ( ./autogen.sh
   ./configure --with-single-user --with-git-ffmpeg=
 https://git.ffmpeg.org/ffmpeg.git
   make && make install ) 2>&1 | tee log
 mv Makefile Makefile.cfg
 cp Makefile.devel Makefile

>>>
>>>
>>> On Sat, May 17, 2025 at 6:04 PM Andrew Randrianasulu <
>>> randrianas...@gmail.com> wrote:
>>>


 вс, 18 мая 2025 г., 02:56 Phyllis Smith :

> Checked into GIT the updated ffmpeg.git.patches for future potential
> upgrade to ffmpeg version 8.0.  And deleted ffmpeg.git.patch8 after
> attempting to determine what it was actually for and could find no
> information on that when included sometime in 2019 as patch7.  It is
> possible that it is no longer needed though - it may have been intended as
> a speed improvement; but if some relevant error resurfaces, it can then be
> revisited.
>


 Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
 playback via some hw accelerated method? I'll try some files I have from
 those old times ...



> Andrea, the failure in your last attached cin5.log as shown below
> appears to be due to commenting out libpostproc.a in configure.ac
> because that is needed by cinelerra-5.1/mpeg2enc build.
>
>> make[2]: *** [Makefile:75: x86_64/hveg2enc] Error 1
>> make[2]: uscita dalla directory
>> «/home/paz/cinelerra5/cinelerra-5.1/mpeg2enc»
>>
>

 For me deleting libpostproc.a from configure.ac worked for compiling
 with ffmpeg.git

 But I completely re-run make clean,  ./autogen.sh/configure/make dance

 not sure why it did not work for you 
 make sure your user can rewrite global_config in the root of
 cinelerra's main src tree? (if you tried building from root and then from
 ordinary user)

>
>
> On Wed, May 14, 2025 at 7:49 AM Andrew Randrianasulu <
> randrianas...@gmail.com> wrote:
>
>> On Wed, May 14, 2025 at 1:31 PM Andrew Randrianasulu
>>  wrote:
>> >
>> > So I was experimenting  with Vulkan decoding in cinelerra-gg.
>> >
>> > After some fight I get build using ffmpeg git
>> >
>> > commit 038314bc6be2f35a82e9fba2228bcac2e4fee648 for ffmpeg
>> >
>> > here is bunch of errors like this:
>> >
>> > [hevc @ 0x6f7465c0] Could not find ref with POC 296
>> > [hevc 

Re: [Cin] Vulkan hevc hdr decode regression on ffmpeg master?

2025-05-20 Thread Phyllis Smith via Cin
Downloaded a msmpeg4 file and unfortunately my computers are AMD / vdpau
hardware.  The one vaapi laptop will not compile CinGG anymore. So the AMD
computers get the error::

> Decoder msmpeg4 does not support device type vaapi.
> HW device init failed, using SW decode.
> file:/root/Downloads/Fight.Club.Trailer.avi
>   err: Operation not permitted
>
But I will still test decoding and encoding using software -- my rationale
is that if it decodes correctly, then the encode will match between ffmpeg
version 7.0 and future 8.0.

On Sun, May 18, 2025 at 6:21 PM Andrew Randrianasulu <
randrianas...@gmail.com> wrote:

>
>
> пн, 19 мая 2025 г., 03:04 Phyllis Smith :
>
>> Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
>>> playback via some hw accelerated method? I'll try some files I have from
>>> those old times ...
>>>
>> I loaded small h263 videos in ffmpeg 7.0 (current) which would run
>> h263dec.c (I assume) and then encoded them using h264.mp4 format.  I then
>> did the same thing in the ffmpeg.git version (future version 8.0) where
>> patch8 was deleted.  Visually detected no problem and when I used the
>> patchbay arithmetic subtract on the 2 versions of encoded files, they
>> showed no anomalies.
>>
>
> I am going by my understanding of context diff:
>
>
>
> --- a/libavcodec/h263dec.c
> +++ b/libavcodec/h263dec.c
> @@ -623,7 +623,7 @@
>  if (CONFIG_MPEG4_DECODER && avctx->codec_id == AV_CODEC_ID_MPEG4)
>  ff_mpeg4_frame_end(avctx, buf, buf_size);
>
> -if (!s->divx_packed && avctx->hwaccel)
> +if (s->divx_packed && avctx->hwaccel)
>  ff_thread_finish_setup(avctx);
>
>
> yes, file named h263  but also serves (or served? if patch not applicable
> anymore) role in decoding
>
> DiVX type of codecs, old msmpeg4 was first of them, divx3/5/XVID followed
>
> So, *I think* you need to raid
>
> samples.mplayerhq.hu
>
> and get some "packed B frame" xvid (or may be just make one with
> Avidemux?) and then look if your vainfo/vdpauinfo shows MPEG4 decoding, set
> cingg to this decode accel, and play vid in both sw and hw decode mode ?
>
> Sorry still not moved myself to check it out .
>
>
>
>
>
>> But I completely re-run make clean,  ./autogen.sh/configure/make dance
>>>
>> Finally, it compiled but I am not sure what made the difference as I
>> always use "make clean" and then run "bld.sh" which includes "autogen.sh";
>> i.e. -
>>
>>> #!/bin/bash
>>> ...
>>> ( ./autogen.sh
>>>   ./configure --with-single-user --with-git-ffmpeg=
>>> https://git.ffmpeg.org/ffmpeg.git
>>>   make && make install ) 2>&1 | tee log
>>> mv Makefile Makefile.cfg
>>> cp Makefile.devel Makefile
>>>
>>
>>
>> On Sat, May 17, 2025 at 6:04 PM Andrew Randrianasulu <
>> randrianas...@gmail.com> wrote:
>>
>>>
>>>
>>> вс, 18 мая 2025 г., 02:56 Phyllis Smith :
>>>
 Checked into GIT the updated ffmpeg.git.patches for future potential
 upgrade to ffmpeg version 8.0.  And deleted ffmpeg.git.patch8 after
 attempting to determine what it was actually for and could find no
 information on that when included sometime in 2019 as patch7.  It is
 possible that it is no longer needed though - it may have been intended as
 a speed improvement; but if some relevant error resurfaces, it can then be
 revisited.

>>>
>>>
>>> Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
>>> playback via some hw accelerated method? I'll try some files I have from
>>> those old times ...
>>>
>>>
>>>
 Andrea, the failure in your last attached cin5.log as shown below
 appears to be due to commenting out libpostproc.a in configure.ac
 because that is needed by cinelerra-5.1/mpeg2enc build.

> make[2]: *** [Makefile:75: x86_64/hveg2enc] Error 1
> make[2]: uscita dalla directory
> «/home/paz/cinelerra5/cinelerra-5.1/mpeg2enc»
>

>>>
>>> For me deleting libpostproc.a from configure.ac worked for compiling
>>> with ffmpeg.git
>>>
>>> But I completely re-run make clean,  ./autogen.sh/configure/make dance
>>>
>>> not sure why it did not work for you 
>>> make sure your user can rewrite global_config in the root of cinelerra's
>>> main src tree? (if you tried building from root and then from ordinary user)
>>>


 On Wed, May 14, 2025 at 7:49 AM Andrew Randrianasulu <
 randrianas...@gmail.com> wrote:

> On Wed, May 14, 2025 at 1:31 PM Andrew Randrianasulu
>  wrote:
> >
> > So I was experimenting  with Vulkan decoding in cinelerra-gg.
> >
> > After some fight I get build using ffmpeg git
> >
> > commit 038314bc6be2f35a82e9fba2228bcac2e4fee648 for ffmpeg
> >
> > here is bunch of errors like this:
> >
> > [hevc @ 0x6f7465c0] Could not find ref with POC 296
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 9
> > [hevc @ 0x6f72ad00] Could not find ref with POC 296
> > [hevc @ 0x6f72ad00] Error constructing th

Re: [Cin] Vulkan hevc hdr decode regression on ffmpeg master?

2025-05-18 Thread Phyllis Smith via Cin
>
> Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
> playback via some hw accelerated method? I'll try some files I have from
> those old times ...
>
I loaded small h263 videos in ffmpeg 7.0 (current) which would run
h263dec.c (I assume) and then encoded them using h264.mp4 format.  I then
did the same thing in the ffmpeg.git version (future version 8.0) where
patch8 was deleted.  Visually detected no problem and when I used the
patchbay arithmetic subtract on the 2 versions of encoded files, they
showed no anomalies.

But I completely re-run make clean,  ./autogen.sh/configure/make dance
>
Finally, it compiled but I am not sure what made the difference as I always
use "make clean" and then run "bld.sh" which includes "autogen.sh"; i.e. -

> #!/bin/bash
> ...
> ( ./autogen.sh
>   ./configure --with-single-user --with-git-ffmpeg=
> https://git.ffmpeg.org/ffmpeg.git
>   make && make install ) 2>&1 | tee log
> mv Makefile Makefile.cfg
> cp Makefile.devel Makefile
>


On Sat, May 17, 2025 at 6:04 PM Andrew Randrianasulu <
randrianas...@gmail.com> wrote:

>
>
> вс, 18 мая 2025 г., 02:56 Phyllis Smith :
>
>> Checked into GIT the updated ffmpeg.git.patches for future potential
>> upgrade to ffmpeg version 8.0.  And deleted ffmpeg.git.patch8 after
>> attempting to determine what it was actually for and could find no
>> information on that when included sometime in 2019 as patch7.  It is
>> possible that it is no longer needed though - it may have been intended as
>> a speed improvement; but if some relevant error resurfaces, it can then be
>> revisited.
>>
>
>
> Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
> playback via some hw accelerated method? I'll try some files I have from
> those old times ...
>
>
>
>> Andrea, the failure in your last attached cin5.log as shown below appears
>> to be due to commenting out libpostproc.a in configure.ac because that
>> is needed by cinelerra-5.1/mpeg2enc build.
>>
>>> make[2]: *** [Makefile:75: x86_64/hveg2enc] Error 1
>>> make[2]: uscita dalla directory
>>> «/home/paz/cinelerra5/cinelerra-5.1/mpeg2enc»
>>>
>>
>
> For me deleting libpostproc.a from configure.ac worked for compiling with
> ffmpeg.git
>
> But I completely re-run make clean,  ./autogen.sh/configure/make dance
>
> not sure why it did not work for you 
> make sure your user can rewrite global_config in the root of cinelerra's
> main src tree? (if you tried building from root and then from ordinary user)
>
>>
>>
>> On Wed, May 14, 2025 at 7:49 AM Andrew Randrianasulu <
>> randrianas...@gmail.com> wrote:
>>
>>> On Wed, May 14, 2025 at 1:31 PM Andrew Randrianasulu
>>>  wrote:
>>> >
>>> > So I was experimenting  with Vulkan decoding in cinelerra-gg.
>>> >
>>> > After some fight I get build using ffmpeg git
>>> >
>>> > commit 038314bc6be2f35a82e9fba2228bcac2e4fee648 for ffmpeg
>>> >
>>> > here is bunch of errors like this:
>>> >
>>> > [hevc @ 0x6f7465c0] Could not find ref with POC 296
>>> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
>>> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 9
>>> > [hevc @ 0x6f72ad00] Could not find ref with POC 296
>>> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
>>> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 8
>>> > [hevc @ 0x6f77b3c0] Could not find ref with POC 298
>>> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
>>> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 8
>>> > [hevc @ 0x6f789480] Could not find ref with POC 300
>>> > [hevc @ 0x6f789480] Error constructing the frame RPS.
>>> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
>>> > [hevc @ 0x6f7465c0] Could not find ref with POC 300
>>> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
>>> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
>>> > [hevc @ 0x6f72ad00] Could not find ref with POC 300
>>> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
>>> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
>>> > [hevc @ 0x6f77b3c0] Could not find ref with POC 302
>>> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
>>> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
>>> > [hevc @ 0x6f789480] Could not find ref with POC 304
>>> > [hevc @ 0x6f789480] Error constructing the frame RPS.
>>> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
>>> > [hevc @ 0x6f7465c0] Could not find ref with POC 304
>>> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
>>> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
>>> > [hevc @ 0x6f72ad00] Could not find ref with POC 304
>>> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
>>> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
>>> > [hevc @ 0x6f77b3c0] Could not find ref with POC 306
>>> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
>>> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
>>> > [hevc @ 0x6f789480] Could not find ref with POC 308
>>> > [hevc @ 0x6f789480] Err

Re: [Cin] Vulkan hevc hdr decode regression on ffmpeg master?

2025-05-18 Thread Andrew Randrianasulu via Cin
пн, 19 мая 2025 г., 03:04 Phyllis Smith :

> Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
>> playback via some hw accelerated method? I'll try some files I have from
>> those old times ...
>>
> I loaded small h263 videos in ffmpeg 7.0 (current) which would run
> h263dec.c (I assume) and then encoded them using h264.mp4 format.  I then
> did the same thing in the ffmpeg.git version (future version 8.0) where
> patch8 was deleted.  Visually detected no problem and when I used the
> patchbay arithmetic subtract on the 2 versions of encoded files, they
> showed no anomalies.
>

I am going by my understanding of context diff:



--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -623,7 +623,7 @@
 if (CONFIG_MPEG4_DECODER && avctx->codec_id == AV_CODEC_ID_MPEG4)
 ff_mpeg4_frame_end(avctx, buf, buf_size);

-if (!s->divx_packed && avctx->hwaccel)
+if (s->divx_packed && avctx->hwaccel)
 ff_thread_finish_setup(avctx);


yes, file named h263  but also serves (or served? if patch not applicable
anymore) role in decoding

DiVX type of codecs, old msmpeg4 was first of them, divx3/5/XVID followed

So, *I think* you need to raid

samples.mplayerhq.hu

and get some "packed B frame" xvid (or may be just make one with Avidemux?)
and then look if your vainfo/vdpauinfo shows MPEG4 decoding, set cingg to
this decode accel, and play vid in both sw and hw decode mode ?

Sorry still not moved myself to check it out .





> But I completely re-run make clean,  ./autogen.sh/configure/make dance
>>
> Finally, it compiled but I am not sure what made the difference as I
> always use "make clean" and then run "bld.sh" which includes "autogen.sh";
> i.e. -
>
>> #!/bin/bash
>> ...
>> ( ./autogen.sh
>>   ./configure --with-single-user --with-git-ffmpeg=
>> https://git.ffmpeg.org/ffmpeg.git
>>   make && make install ) 2>&1 | tee log
>> mv Makefile Makefile.cfg
>> cp Makefile.devel Makefile
>>
>
>
> On Sat, May 17, 2025 at 6:04 PM Andrew Randrianasulu <
> randrianas...@gmail.com> wrote:
>
>>
>>
>> вс, 18 мая 2025 г., 02:56 Phyllis Smith :
>>
>>> Checked into GIT the updated ffmpeg.git.patches for future potential
>>> upgrade to ffmpeg version 8.0.  And deleted ffmpeg.git.patch8 after
>>> attempting to determine what it was actually for and could find no
>>> information on that when included sometime in 2019 as patch7.  It is
>>> possible that it is no longer needed though - it may have been intended as
>>> a speed improvement; but if some relevant error resurfaces, it can then be
>>> revisited.
>>>
>>
>>
>> Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
>> playback via some hw accelerated method? I'll try some files I have from
>> those old times ...
>>
>>
>>
>>> Andrea, the failure in your last attached cin5.log as shown below
>>> appears to be due to commenting out libpostproc.a in configure.ac
>>> because that is needed by cinelerra-5.1/mpeg2enc build.
>>>
 make[2]: *** [Makefile:75: x86_64/hveg2enc] Error 1
 make[2]: uscita dalla directory
 «/home/paz/cinelerra5/cinelerra-5.1/mpeg2enc»

>>>
>>
>> For me deleting libpostproc.a from configure.ac worked for compiling
>> with ffmpeg.git
>>
>> But I completely re-run make clean,  ./autogen.sh/configure/make dance
>>
>> not sure why it did not work for you 
>> make sure your user can rewrite global_config in the root of cinelerra's
>> main src tree? (if you tried building from root and then from ordinary user)
>>
>>>
>>>
>>> On Wed, May 14, 2025 at 7:49 AM Andrew Randrianasulu <
>>> randrianas...@gmail.com> wrote:
>>>
 On Wed, May 14, 2025 at 1:31 PM Andrew Randrianasulu
  wrote:
 >
 > So I was experimenting  with Vulkan decoding in cinelerra-gg.
 >
 > After some fight I get build using ffmpeg git
 >
 > commit 038314bc6be2f35a82e9fba2228bcac2e4fee648 for ffmpeg
 >
 > here is bunch of errors like this:
 >
 > [hevc @ 0x6f7465c0] Could not find ref with POC 296
 > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
 > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 9
 > [hevc @ 0x6f72ad00] Could not find ref with POC 296
 > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
 > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 8
 > [hevc @ 0x6f77b3c0] Could not find ref with POC 298
 > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
 > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 8
 > [hevc @ 0x6f789480] Could not find ref with POC 300
 > [hevc @ 0x6f789480] Error constructing the frame RPS.
 > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
 > [hevc @ 0x6f7465c0] Could not find ref with POC 300
 > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
 > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
 > [hevc @ 0x6f72ad00] Could not find ref with POC 300
 > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
 > [hevc @ 0x6f72

Re: [Cin] Vulkan hevc hdr decode regression on ffmpeg master?

2025-05-17 Thread Andrew Randrianasulu via Cin
вс, 18 мая 2025 г., 02:56 Phyllis Smith :

> Checked into GIT the updated ffmpeg.git.patches for future potential
> upgrade to ffmpeg version 8.0.  And deleted ffmpeg.git.patch8 after
> attempting to determine what it was actually for and could find no
> information on that when included sometime in 2019 as patch7.  It is
> possible that it is no longer needed though - it may have been intended as
> a speed improvement; but if some relevant error resurfaces, it can then be
> revisited.
>


Thanks. I suspect patch8 was aimed at mpeg4 (old, ala xvid, not h265)
playback via some hw accelerated method? I'll try some files I have from
those old times ...



> Andrea, the failure in your last attached cin5.log as shown below appears
> to be due to commenting out libpostproc.a in configure.ac because that is
> needed by cinelerra-5.1/mpeg2enc build.
>
>> make[2]: *** [Makefile:75: x86_64/hveg2enc] Error 1
>> make[2]: uscita dalla directory
>> «/home/paz/cinelerra5/cinelerra-5.1/mpeg2enc»
>>
>

For me deleting libpostproc.a from configure.ac worked for compiling with
ffmpeg.git

But I completely re-run make clean,  ./autogen.sh/configure/make dance

not sure why it did not work for you 
make sure your user can rewrite global_config in the root of cinelerra's
main src tree? (if you tried building from root and then from ordinary user)

>
>
> On Wed, May 14, 2025 at 7:49 AM Andrew Randrianasulu <
> randrianas...@gmail.com> wrote:
>
>> On Wed, May 14, 2025 at 1:31 PM Andrew Randrianasulu
>>  wrote:
>> >
>> > So I was experimenting  with Vulkan decoding in cinelerra-gg.
>> >
>> > After some fight I get build using ffmpeg git
>> >
>> > commit 038314bc6be2f35a82e9fba2228bcac2e4fee648 for ffmpeg
>> >
>> > here is bunch of errors like this:
>> >
>> > [hevc @ 0x6f7465c0] Could not find ref with POC 296
>> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
>> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 9
>> > [hevc @ 0x6f72ad00] Could not find ref with POC 296
>> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
>> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 8
>> > [hevc @ 0x6f77b3c0] Could not find ref with POC 298
>> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
>> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 8
>> > [hevc @ 0x6f789480] Could not find ref with POC 300
>> > [hevc @ 0x6f789480] Error constructing the frame RPS.
>> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
>> > [hevc @ 0x6f7465c0] Could not find ref with POC 300
>> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
>> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
>> > [hevc @ 0x6f72ad00] Could not find ref with POC 300
>> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
>> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
>> > [hevc @ 0x6f77b3c0] Could not find ref with POC 302
>> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
>> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
>> > [hevc @ 0x6f789480] Could not find ref with POC 304
>> > [hevc @ 0x6f789480] Error constructing the frame RPS.
>> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
>> > [hevc @ 0x6f7465c0] Could not find ref with POC 304
>> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
>> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
>> > [hevc @ 0x6f72ad00] Could not find ref with POC 304
>> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
>> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
>> > [hevc @ 0x6f77b3c0] Could not find ref with POC 306
>> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
>> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
>> > [hevc @ 0x6f789480] Could not find ref with POC 308
>> > [hevc @ 0x6f789480] Error constructing the frame RPS.
>> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
>> > [hevc @ 0x6f7465c0] Could not find ref with POC 308
>> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
>> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
>> > [hevc @ 0x6f72ad00] Could not find ref with POC 308
>> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
>> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
>> > [hevc @ 0x6f77b3c0] Could not find ref with POC 310
>> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
>> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
>> > [hevc @ 0x6f789480] Could not find ref with POC 312
>> > [hevc @ 0x6f789480] Error constructing the frame RPS.
>> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
>> > [hevc @ 0x6f7465c0] Could not find ref with POC 312
>> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
>> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
>> > [hevc @ 0x6f72ad00] Could not find ref with POC 312
>> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
>> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
>> > [hevc @ 0x6f77b3c0] Could 

Re: [Cin] Vulkan hevc hdr decode regression on ffmpeg master?

2025-05-17 Thread Phyllis Smith via Cin
Checked into GIT the updated ffmpeg.git.patches for future potential
upgrade to ffmpeg version 8.0.  And deleted ffmpeg.git.patch8 after
attempting to determine what it was actually for and could find no
information on that when included sometime in 2019 as patch7.  It is
possible that it is no longer needed though - it may have been intended as
a speed improvement; but if some relevant error resurfaces, it can then be
revisited.

Andrea, the failure in your last attached cin5.log as shown below appears
to be due to commenting out libpostproc.a in configure.ac because that is
needed by cinelerra-5.1/mpeg2enc build.

> make[2]: *** [Makefile:75: x86_64/hveg2enc] Error 1
> make[2]: uscita dalla directory
> «/home/paz/cinelerra5/cinelerra-5.1/mpeg2enc»
>


On Wed, May 14, 2025 at 7:49 AM Andrew Randrianasulu <
randrianas...@gmail.com> wrote:

> On Wed, May 14, 2025 at 1:31 PM Andrew Randrianasulu
>  wrote:
> >
> > So I was experimenting  with Vulkan decoding in cinelerra-gg.
> >
> > After some fight I get build using ffmpeg git
> >
> > commit 038314bc6be2f35a82e9fba2228bcac2e4fee648 for ffmpeg
> >
> > here is bunch of errors like this:
> >
> > [hevc @ 0x6f7465c0] Could not find ref with POC 296
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 9
> > [hevc @ 0x6f72ad00] Could not find ref with POC 296
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 8
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 298
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 8
> > [hevc @ 0x6f789480] Could not find ref with POC 300
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 300
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> > [hevc @ 0x6f72ad00] Could not find ref with POC 300
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 302
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f789480] Could not find ref with POC 304
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 304
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> > [hevc @ 0x6f72ad00] Could not find ref with POC 304
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 306
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f789480] Could not find ref with POC 308
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 308
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> > [hevc @ 0x6f72ad00] Could not find ref with POC 308
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 310
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f789480] Could not find ref with POC 312
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 312
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> > [hevc @ 0x6f72ad00] Could not find ref with POC 312
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 314
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f789480] Could not find ref with POC 316
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 316
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> > [hevc @ 0x6f72ad00] Could not find ref with POC 316
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NA

Re: [Cin] Vulkan hevc hdr decode regression on ffmpeg master?

2025-05-14 Thread Phyllis Smith via Cin
Andrew,  but how are you getting cinelerra-5.1/mpeg2enc files to compile
without libpostproc.a? for me it always fails with
"g++: error:
/tmp/cinelerra-5.1/mpeg2enc/../thirdparty/ffmpeg-8.0/libpostproc/libpostproc.a:
No such file or directory"
Or are you not building that?  If my memory is right, it is important for
creating DVD media.

On Wed, May 14, 2025 at 7:49 AM Andrew Randrianasulu <
randrianas...@gmail.com> wrote:

> On Wed, May 14, 2025 at 1:31 PM Andrew Randrianasulu
>  wrote:
> >
> > So I was experimenting  with Vulkan decoding in cinelerra-gg.
> >
> > After some fight I get build using ffmpeg git
> >
> > commit 038314bc6be2f35a82e9fba2228bcac2e4fee648 for ffmpeg
> >
> > here is bunch of errors like this:
> >
> > [hevc @ 0x6f7465c0] Could not find ref with POC 296
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 9
> > [hevc @ 0x6f72ad00] Could not find ref with POC 296
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 8
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 298
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 8
> > [hevc @ 0x6f789480] Could not find ref with POC 300
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 300
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> > [hevc @ 0x6f72ad00] Could not find ref with POC 300
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 302
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f789480] Could not find ref with POC 304
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 304
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> > [hevc @ 0x6f72ad00] Could not find ref with POC 304
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 306
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f789480] Could not find ref with POC 308
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 308
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> > [hevc @ 0x6f72ad00] Could not find ref with POC 308
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 310
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f789480] Could not find ref with POC 312
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 312
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> > [hevc @ 0x6f72ad00] Could not find ref with POC 312
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 314
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f789480] Could not find ref with POC 316
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 316
> > [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> > [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> > [hevc @ 0x6f72ad00] Could not find ref with POC 316
> > [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> > [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f77b3c0] Could not find ref with POC 318
> > [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> > [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> > [hevc @ 0x6f789480] Could not find ref with POC 320
> > [hevc @ 0x6f789480] Error constructing the frame RPS.
> > [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> > [hevc @ 0x6f7465c0] Could not find ref with POC 320
> > [hevc @ 0

Re: [Cin] Vulkan hevc hdr decode regression on ffmpeg master?

2025-05-14 Thread Andrew Randrianasulu via Cin
On Wed, May 14, 2025 at 1:31 PM Andrew Randrianasulu
 wrote:
>
> So I was experimenting  with Vulkan decoding in cinelerra-gg.
>
> After some fight I get build using ffmpeg git
>
> commit 038314bc6be2f35a82e9fba2228bcac2e4fee648 for ffmpeg
>
> here is bunch of errors like this:
>
> [hevc @ 0x6f7465c0] Could not find ref with POC 296
> [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 9
> [hevc @ 0x6f72ad00] Could not find ref with POC 296
> [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 8
> [hevc @ 0x6f77b3c0] Could not find ref with POC 298
> [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 8
> [hevc @ 0x6f789480] Could not find ref with POC 300
> [hevc @ 0x6f789480] Error constructing the frame RPS.
> [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> [hevc @ 0x6f7465c0] Could not find ref with POC 300
> [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> [hevc @ 0x6f72ad00] Could not find ref with POC 300
> [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f77b3c0] Could not find ref with POC 302
> [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f789480] Could not find ref with POC 304
> [hevc @ 0x6f789480] Error constructing the frame RPS.
> [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> [hevc @ 0x6f7465c0] Could not find ref with POC 304
> [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> [hevc @ 0x6f72ad00] Could not find ref with POC 304
> [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f77b3c0] Could not find ref with POC 306
> [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f789480] Could not find ref with POC 308
> [hevc @ 0x6f789480] Error constructing the frame RPS.
> [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> [hevc @ 0x6f7465c0] Could not find ref with POC 308
> [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> [hevc @ 0x6f72ad00] Could not find ref with POC 308
> [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f77b3c0] Could not find ref with POC 310
> [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f789480] Could not find ref with POC 312
> [hevc @ 0x6f789480] Error constructing the frame RPS.
> [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> [hevc @ 0x6f7465c0] Could not find ref with POC 312
> [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> [hevc @ 0x6f72ad00] Could not find ref with POC 312
> [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f77b3c0] Could not find ref with POC 314
> [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f789480] Could not find ref with POC 316
> [hevc @ 0x6f789480] Error constructing the frame RPS.
> [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> [hevc @ 0x6f7465c0] Could not find ref with POC 316
> [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> [hevc @ 0x6f72ad00] Could not find ref with POC 316
> [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f77b3c0] Could not find ref with POC 318
> [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f789480] Could not find ref with POC 320
> [hevc @ 0x6f789480] Error constructing the frame RPS.
> [hevc @ 0x6f789480] Skipping invalid undecodable NALU: 1
> [hevc @ 0x6f7465c0] Could not find ref with POC 320
> [hevc @ 0x6f7465c0] Error constructing the frame RPS.
> [hevc @ 0x6f7465c0] Skipping invalid undecodable NALU: 3
> [hevc @ 0x6f72ad00] Could not find ref with POC 320
> [hevc @ 0x6f72ad00] Error constructing the frame RPS.
> [hevc @ 0x6f72ad00] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f77b3c0] Could not find ref with POC 322
> [hevc @ 0x6f77b3c0] Error constructing the frame RPS.
> [hevc @ 0x6f77b3c0] Skipping invalid undecodable NALU: 2
> [hevc @ 0x6f789480] Could not find ref with POC 324
> [hevc @ 0x6f789480] Error constructing the frame RPS.
> [hevc @ 0x6f789480] Skipping invalid undeco