Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Paul B Mahol <onemda@gmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: Lynne <dev@lynne.ee>
Subject: Re: [FFmpeg-devel] [PATCH] avfilter: add v360_vulkan filter
Date: Tue, 25 Jun 2024 15:06:26 +0200
Message-ID: <CAPYw7P7N61T7VWGUYsth=1cOH+PL6uNh-dd_gQxQbCx+e-TnZg@mail.gmail.com> (raw)
In-Reply-To: <CAKKYfmGsk5Tj=MpFVdJkh_3sZL+MMQcNTachDN1oK8RdEN9-kQ@mail.gmail.com>

On Tue, Jun 25, 2024 at 2:47 PM Dennis Mungai <dmngaie@gmail.com> wrote:

> On Sun, 28 Jun 2020 at 16:59, James Almer <jamrial@gmail.com> wrote:
>
> > On 6/27/2020 7:54 AM, Paul B Mahol wrote:
> > > On 6/26/20, James Almer <jamrial@gmail.com> wrote:
> > >> On 6/26/2020 4:16 PM, Lynne wrote:
> > >>> Jun 26, 2020, 19:05 by jamrial@gmail.com:
> > >>>
> > >>>> On 6/26/2020 1:58 PM, Paul B Mahol wrote:
> > >>>>
> > >>>>> On 6/26/20, James Almer <jamrial@gmail.com> wrote:
> > >>>>>
> > >>>>>> On 6/26/2020 1:13 PM, Paul B Mahol wrote:
> > >>>>>>
> > >>>>>>> On 6/26/20, Paul B Mahol <onemda@gmail.com> wrote:
> > >>>>>>>
> > >>>>>>>> On 6/24/20, Paul B Mahol <onemda@gmail.com> wrote:
> > >>>>>>>>
> > >>>>>>>>> Signed-off-by: Paul B Mahol <onemda@gmail.com>
> > >>>>>>>>> ---
> > >>>>>>>>> Please test it and reports benchmark results on non toyish
> GPUs.
> > >>>>>>>>>
> > >>>>>>>>
> > >>>>>>>> Please, I really need it!
> > >>>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> Why nobody wants to help?
> > >>>>>>>
> > >>>>>>> This makes me really really sad.
> > >>>>>>>
> > >>>>>>
> > >>>>>> I can try. Can you give an example command line with a publicly
> > >>>>>> available sample?
> > >>>>>>
> > >>>>>
> > >>>>> You can use any sample, samples are irrelevant. just report
> > resolution
> > >>>>> used.
> > >>>>> Also compare with CPU solution with just v360 filter.
> > >>>>>
> > >>>>> For yuv420p inputs:
> > >>>>>
> > >>>>> ffmpeg -init_hw_device vulkan=vulkan -i INPUT -filter_hw_device
> > vulkan
> > >>>>> -vf
> > >>>>>
> >
> hwupload,v360_vulkan=fisheye:e:ih_fov=180:iv_fov=180:w=2048:h=1024,hwdownload,format=yuv420p
> > >>>>> -f null -
> > >>>>>
> > >>>>> ffmpeg -i INPUT -vf
> > v360=fisheye:e:ih_fov=180:iv_fov=180:w=2048:h=1024
> > >>>>> -f null -
> > >>>>>
> > >>>>> Just make sure that you get same output resolution in both cases.
> If
> > >>>>> not, adjust w/h accordingly.
> > >>>>>
> > >>>>
> > >>>> I'm getting a segfault on vkGetInstanceProcAddr, and i don't know if
> > >>>> it's your filter or some issue in the driver. gdb is not being
> > helpful.
> > >>>> _______________________________________________
> > >>>> ffmpeg-devel mailing list
> > >>>> ffmpeg-devel@ffmpeg.org
> > >>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> > >>>>
> > >>>> To unsubscribe, visit link above, or email
> > >>>> ffmpeg-devel-request@ffmpeg.org>  with subject "unsubscribe".
> > >>>>
> > >>>
> > >>> Can you test again but replace EXT_EXTERNAL_HOST_MEMORY in
> > >>> optional_device_exts
> > >>> with EXT_NO_FLAG?
> > >>
> > >> Applying
> > >>
> > >>> diff --git a/libavutil/hwcontext_vulkan.c
> > b/libavutil/hwcontext_vulkan.c
> > >>> index 5e51d0390f..49fb7827ba 100644
> > >>> --- a/libavutil/hwcontext_vulkan.c
> > >>> +++ b/libavutil/hwcontext_vulkan.c
> > >>> @@ -228,7 +228,7 @@ static const VulkanOptExtension
> > optional_device_exts[]
> > >>> = {
> > >>>      { VK_EXT_EXTERNAL_MEMORY_DMA_BUF_EXTENSION_NAME,
> > >>> EXT_EXTERNAL_DMABUF_MEMORY, },
> > >>>      { VK_EXT_IMAGE_DRM_FORMAT_MODIFIER_EXTENSION_NAME,
> > >>> EXT_DRM_MODIFIER_FLAGS,     },
> > >>>      { VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME,
> > >>> EXT_EXTERNAL_FD_SEM,        },
> > >>> -    { VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME,
> > >>> EXT_EXTERNAL_HOST_MEMORY,   },
> > >>> +    { VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME,
> > >>> EXT_NO_FLAG,   },
> > >>>  };
> > >>>
> > >>>  /* Converts return values to strings */
> > >>
> > >> I still get a segfault:
> > >>
> > >>> Thread 1 received signal SIGSEGV, Segmentation fault.
> > >>> 0x00007ff8ed9274c0 in vkGetInstanceProcAddr ()
> > >>>    from
> > >>>
> >
> C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_ccad5caddc3a3d35\nvoglv64.dll
> > >>
> > >> Debug output shows
> > >>
> > >>> [AVHWDeviceContext @ 000001532a762800] GPU listing:
> > >>> [AVHWDeviceContext @ 000001532a762800]     0: GeForce GTX 1660
> > (discrete)
> > >>> (0x2184)
> > >>> [AVHWDeviceContext @ 000001532a762800] Using queue family 0 (total
> > queues:
> > >>> 16) for graphics
> > >>> [AVHWDeviceContext @ 000001532a762800]     QF 0 flags: (graphics)
> > >>> (compute) (transfers) (sparse)
> > >>> [AVHWDeviceContext @ 000001532a762800] Using queue family 2 (total
> > queues:
> > >>> 8) for compute
> > >>> [AVHWDeviceContext @ 000001532a762800]     QF 2 flags: (compute)
> > >>> (transfers) (sparse)
> > >>> [AVHWDeviceContext @ 000001532a762800] Using queue family 1 (total
> > queues:
> > >>> 2) for transfers
> > >>> [AVHWDeviceContext @ 000001532a762800]     QF 1 flags: (transfers)
> > >>> (sparse)
> > >>> [AVHWDeviceContext @ 000001532a762800] Using device extension
> > >>> "VK_EXT_external_memory_host"
> > >>> [AVHWDeviceContext @ 000001532a762800] Using device extension
> > >>> VK_EXT_external_memory_host
> > >>> [AVHWDeviceContext @ 000001532a762800] Using device: GeForce GTX 1660
> > >>> [AVHWDeviceContext @ 000001532a762800] Alignments:
> > >>> [AVHWDeviceContext @ 000001532a762800]
> > >>> optimalBufferCopyRowPitchAlignment: 1
> > >>> [AVHWDeviceContext @ 000001532a762800]     minMemoryMapAlignment:
> > >>>     64
> > >>
> > >> And crashes right after printing:
> > >>
> > >>> [Parsed_v360_vulkan_1 @ 000001532abd5c80] Shader v360_compute linked!
> > >>> Size: 5508 bytes
> > >>
> > >> I'm using the latest driver, 451.48, on Windows 10 2004.
> > >
> > > So other vulkan filters, like vulkan_chromaber works for you?
> >
> > All fail the same way in vkGetInstanceProcAddr, so the issue is in
> > hwcontext.
> >
> > Lynne should be able to test/bench this filter.
> >
>
>  Hello Paul, et al,
>
> Any updates on this filter?
>

I'm no longer working on FFmpeg.

The v360_opencl filter got in more useful state but due complete lack of
interest in it from users, I forgot about its existence.
The v360_vulkan filter is probably in worse shape than v360_opencl filter
and 0/negative interest, and I forgot about its existence too.



> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

  reply	other threads:[~2024-06-25 13:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200624201636.24828-1-onemda@gmail.com>
     [not found] ` <CAPYw7P6rdCMbOp0MKU4db9JvehcBE2==B5etPhJy7L7wKhWZyA@mail.gmail.com>
     [not found]   ` <CAPYw7P7BJSbcyO78AD_mdeEPZ5fQ_jdO2c5K5BDv7QRd1eZprQ@mail.gmail.com>
     [not found]     ` <129aa6d8-10c2-d955-d0a7-2c2370037bce@gmail.com>
     [not found]       ` <CAPYw7P6=j2oOfTRjvunnr2hd9Ks9vG3c7V84ecGmxU-5C3U9qg@mail.gmail.com>
     [not found]         ` <8f34accb-9723-f539-eb93-e4db821bd87f@gmail.com>
     [not found]           ` <MAm2iy7--3-2@lynne.ee>
     [not found]             ` <bd015ccf-61b5-bd60-934d-809ec419cb94@gmail.com>
     [not found]               ` <CAPYw7P62gOeEmzoUkMsf_y+BGQdiDfqrUq9eddATKMA0cg+hiw@mail.gmail.com>
     [not found]                 ` <ab5eb27d-1f49-0a53-7308-ee41fa8632c5@gmail.com>
2024-06-25 12:37                   ` Dennis Mungai
2024-06-25 13:06                     ` Paul B Mahol [this message]
2024-06-25 13:16                       ` Dennis Mungai
2024-06-25 13:27                         ` Paul B Mahol
2024-07-04 14:47                           ` TADANO Tokumei
2024-07-04 15:03                             ` Paul B Mahol
2024-07-05 15:11                               ` TADANO Tokumei
2024-07-05 19:04                                 ` Paul B Mahol

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPYw7P7N61T7VWGUYsth=1cOH+PL6uNh-dd_gQxQbCx+e-TnZg@mail.gmail.com' \
    --to=onemda@gmail.com \
    --cc=dev@lynne.ee \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git