Opened 10 years ago

Closed 10 years ago

Last modified 10 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 by Carl Eugen Hoyos, 10 years ago

Resolution: invalid
Status: newclosed

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

in reply to:  1 ; comment:2 by ahthovaikied, 10 years ago

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 by Hendrik, 10 years ago

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

in reply to:  2 comment:4 by Carl Eugen Hoyos, 10 years ago

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 by Hendrik, 10 years ago

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?

in reply to:  5 comment:6 by Carl Eugen Hoyos, 10 years ago

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.