From: Soft Works <softworkz@hotmail.com> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v4 1/1] avutils/hwcontext: When deriving a hwdevice, search for existing device in both directions Date: Wed, 12 Jan 2022 05:15:01 +0000 Message-ID: <DM8P223MB0365504763707DBC5DDF0E49BA529@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM> (raw) In-Reply-To: <efb9437d-08ae-b2d4-6442-7d0669692638@jkqxz.net> > -----Original Message----- > From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Mark > Thompson > Sent: Monday, January 10, 2022 9:57 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v4 1/1] avutils/hwcontext: When deriving a > hwdevice, search for existing device in both directions > > On 10/01/2022 01:40, Soft Works wrote: > >> -----Original Message----- > >> From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of Mark > >> Thompson > >> Sent: Monday, January 10, 2022 1:57 AM > >> To: ffmpeg-devel@ffmpeg.org > >> Subject: Re: [FFmpeg-devel] [PATCH v4 1/1] avutils/hwcontext: When > deriving a > >> hwdevice, search for existing device in both directions > >> > >> [trimmed somewhat] > > To wrap things up a bit: > > > > - you want an approach which requires even more complicated filter > > command lines. > > Ha, that characterisation isn't exactly neutral - the derivation in filter > graphs is removed and replaced with explicit specification of devices. The comparison in your other reply wasn't realistic. Actually it would look similar to this: BEFORE ffmpeg -hwaccel qsv -c:v h264_qsv -i input.mp4 -vf "hwmap=derive_device=vaapi, format=vaapi,hwmap=derive_device=vulkan,scale_vulkan=w=1920:h=1080" -f null - AFTER ffmpeg -init_hw_device vaapi=vadev -init_hw_device qsv=qsvdev@vadev -init_hw_device vulkan=vkdev@vadev -hwaccel qsv -c:v h264_qsv -i input.mp4 -vf "hwmap=hw_device=vadev,format=vaapi,hwmap=hw_device=vkdev,scale_vulkan=w= 1920:h=1080" -f null - This is more like a ** to all those who are writing command lines by hand and surely not an improvement. I have not been involved in the cli design, but from looking at the result it's clear that there has always been a focus on allowing things to be done as easily as possible instead of needing to do extensive reading until you get it right (or give up). > Perhaps you even want to add to the av_hwdevice_ctx_create_derived() API so > it can take a YKNOW_ACTUALLY_DONT flag to indicate you don't want to create a > new derived device, I don't know. When you mean to add av_hwdevice_ctx_create_derived2() or av_hwdevice_ctx_create_derived_ex() which takes an additional parameter to control this and which the ffmpeg-tool will use instead, that would be fine I think. It would allow to make the change only for the cl tool without affecting API consumers (regardless of whether such cases may exist or not). softworkz _______________________________________________ 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".
next prev parent reply other threads:[~2022-01-12 5:15 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <cover.1637807570.git.softworkz@hotmail.com> [not found] ` <163785839519.25323.16303122737288435026@lain.red.khirnov.net> [not found] ` <163794332023.25323.7446601680884381987@lain.red.khirnov.net> [not found] ` <163795393240.7822.9483345286843818669@lain.red.khirnov.net> [not found] ` <DM8P223MB0365E3DFD61F63B305FC079BBA639@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM> 2021-12-23 14:01 ` Xiang, Haihao 2021-12-27 3:08 ` Xiang, Haihao 2022-01-05 3:19 ` James Almer 2022-01-05 3:38 ` Xiang, Haihao 2022-01-09 18:39 ` Mark Thompson 2022-01-09 21:15 ` Soft Works 2022-01-09 23:12 ` Mark Thompson 2022-01-09 23:36 ` Soft Works 2022-01-10 0:56 ` Mark Thompson 2022-01-10 1:40 ` Soft Works 2022-01-10 6:47 ` Xiang, Haihao 2022-01-10 21:16 ` Mark Thompson 2022-01-11 7:01 ` Xiang, Haihao 2022-01-10 20:56 ` Mark Thompson 2022-01-12 5:15 ` Soft Works [this message] [not found] ` <DM8P223MB036578CDD5AEA447DD2DE424BA629@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM> 2021-12-29 23:04 ` Mark Thompson 2021-12-30 0:29 ` Soft Works 2021-12-30 11:21 ` Mark Thompson 2021-12-30 19:20 ` Soft Works
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=DM8P223MB0365504763707DBC5DDF0E49BA529@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM \ --to=softworkz@hotmail.com \ --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