Summary: | media-video/ffmpeg: add qsv use flag (Intel Quick Sync Video) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Reva Denis <denis7774> |
Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | jstein, leho |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 590752 | ||
Attachments: | example changes |
Description
Reva Denis
2021-03-28 09:48:41 UTC
Created attachment 695232 [details, diff]
example changes
QSV is not supported for ABI_X86_32. I'm getting "invalid atom in RDEPEND abi_x86_64" with `+ qsv? ( abi_x86_64 )`. Is this the correct constraint definition location? >Is this the correct constraint definition location?
Absolutely not. It should be in REQUIRED_USE
qsv? ( abi_x86_64 )
look carefully:
libv4l? ( v4l )
fftools_cws2fws? ( zlib )
+ qsv? ( abi_x86_64 )
Beautiful, it all works. Figured out a cmdline that dropped `gphoto2 --capture-movie` CPU usage from 28% -> 8% ``` $ gphoto2 --stdout --capture-movie | ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -c:v mjpeg_qsv -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 ``` I'm a complete ffmpeg - can this cmdline be optimized further? For example, a more clear (to a newb eye) parameter set produced an format conversion error: ``` $ ... | ffmpeg -hwaccel qsv -c:v mjpeg_qsv -i - ... ``` Slightly off-topic perhaps, but I'd really like to know why that magic-like `-init_hw_device` stuff works, and `-hwaccel -c:v` combo doesn't. I don't really see how bug 590752 is different from this. *** This bug has been marked as a duplicate of bug 590752 *** |