Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#3906 closed defect (invalid)

--disable-hwaccels does not imply --disable-vdpau

Reported by: ahthovaikied Owned by:
Priority: normal Component: build system
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

From ./configure --help:

...
Hardware accelerators:
  --disable-dxva2          disable DXVA2 code [autodetect]
  --disable-vaapi          disable VAAPI code [autodetect]
  --disable-vda            disable VDA code [autodetect]
  --disable-vdpau          disable VDPAU code [autodetect]
...
  --disable-hwaccels       disable all hwaccels
...

However:

$ ./configure --disable-hwaccels &> /dev/null 
$ make -j 8 &> /dev/null
$ ldd ffmpeg | grep libvdpau
  libvdpau.so.1 => /usr/lib/x86_64-linux-gnu/libvdpau.so.1 (0x00007fb8f1be3000)
$ ./configure --disable-hwaccels --disable-vdpau
$ make -j 8 &> /dev/null
$ ldd ffmpeg | grep libvdpau
$

I'm on Ubuntu 14.04 x64.

Change History (6)

comment:1 follow-up: Changed 5 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from new to closed

--disable-hwaccels does not disable dxva2, vaapi and vda, and it should not (unexpectedly) disable vdpau.

comment:2 in reply to: ↑ 1 ; follow-up: Changed 5 years ago by ahthovaikied

Replying to cehoyos:

--disable-hwaccels does not disable dxva2, vaapi and vda, and it should not (unexpectedly) disable vdpau.

Could you please develop a bit more?
By looking at the help, one might think --disable-hwaccels will disable all 4.

comment:3 Changed 5 years ago by heleppkes

I agree, it seems quite weird that it wouldn't disable hwaccels when you ask it to disable all hwaccels.

comment:4 in reply to: ↑ 2 Changed 5 years ago by cehoyos

Replying to ahthovaikied:

Replying to cehoyos:

--disable-hwaccels does not disable dxva2, vaapi and vda, and it should not (unexpectedly) disable vdpau.

Could you please develop a bit more?

hwaccels has a particular meaning within FFmpeg: It does not mean all devices and decoders that improve decoding speed by using hardware but actually something like specific decoders that you can list with configure --list-hwaccels. You can for example try grep -i hwaccel config.h after running configure with and without --disable-hwaccels.

comment:5 follow-up: Changed 5 years ago by heleppkes

Those options there are kinda pointless to enable if you dont enable the hwaccels though. You get a ffmpeg binary linked to vdpau, but unable to use any vdpau functionality. Whats the usefulness in that?

comment:6 in reply to: ↑ 5 Changed 5 years ago by cehoyos

Replying to heleppkes:

Those options there are kinda pointless to enable if you dont enable the hwaccels though. You get a ffmpeg binary linked to vdpau, but unable to use any vdpau functionality. Whats the usefulness in that?

FFmpeg containes vdpau decoders that are not hwaccels.
This doesn't explain why ffmpeg is linked to libvdpau but that is not what the title here says. If you believe there is an issue, please fix the title and reopen.

Note: See TracTickets for help on using tickets.