Comment # 39 on bug 1219494 from Michael Pujos
I have tested VLC and it does not work, but as you will see not a big deal.
Had to dig a bit into VLC as I'm not familiar with it as I do for FFmpeg.

First, the only QSV support in VLC is for encoding, and only to H.264/H.262,
which is very limited. In comparison, FFmpeg can use QSV for encode/decode in
all formats supported by QSV.

The only plugin making use of libvpl in VLC us the qsv encode plugin:

ldd /usr/lib64/vlc/plugins/codec/libqsv_plugin.so | grep vpl
        libvpl.so.2 => /lib64/libvpl.so.2 (0x00007fb2220cc000)


Using it for a simple encode to a h264 file fails:

~/Videos> cvlc oceans.mp4 --sout
"#transcode{vcodec=h264,venc=qsv}:standard{access=file,mux=mp4,dst=blargh.mp4}"
vlc://quit
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[000055cbb441f010] dummy interface: using the dummy interface module...
[00007fb1a4c06160] qsv encoder error: Unable to find an Intel Media SDK
implementation.
[00007fb194003e20] stream_out_transcode stream out error: cannot find video
encoder (module:qsv fourcc:h264). Take a look few lines earlier to see possible
reason.
[00007fb194003e20] stream_out_transcode stream out error: cannot create video
chain
[00007fb194c1ab10] main decoder error: cannot create packetizer output (h264)
[00007fb194c1ab10] main decoder error: buffer deadlock prevented
[00007fb194004800] idummy demux: command `quit'

/////

It fails on "Unable to find an Intel Media SDK implementation"

Looking at the plugin code
(https://github.com/videolan/vlc/blob/3.0.18/modules/codec/qsv.c), it is the
call to MFXInit() that fails.

I compared with FFmpeg QSV code and its has libvpl specific init code if it is
compiled with libvpl. So for converting a program from mfx to vpl it looks like
there is more than an include swap. Or something else I do not know.

Anyway, there's no need to spend more time on this, as the number of people
using the abysmal VLC QSV support for H264 encoding must be super low, and VLC
will probably update to working libvpl support at some point (4.0). And for the
one user of VLC/QSV, he can be redirected to use FFmpeg which is much much
better.


You are receiving this mail because: