UniversalMediaServer / UniversalMediaServer

A DLNA, UPnP and HTTP(S) Media Server.
https://www.universalmediaserver.com
GNU General Public License v2.0
2.28k stars 448 forks source link

ffmpeg quicksync not working #3793

Open saveli opened 1 year ago

saveli commented 1 year ago

When I set GPU acceleration to qsv, ffmpeg can't transcode: 20:09:58 INFO Process C:\Program Files (x86)\Universal Media Server\bin\ffmpeg.exe has a return code of 1! Maybe an error occurred... check the log file

(There's no ffmpeg log file)

What's wrong here?

All the other GPU acceleration options work, but they are worse. We need QuickSync.

SubJunk commented 1 year ago

@threedguru is this something you're interested in looking at?

ExSport commented 1 year ago

QuickSync? Aaah, ok, it is a "new" param for the former one I used - VAAPI for INTEL HW implementaion in FFMPEG 👍 https://trac.ffmpeg.org/wiki/Hardware/QuickSync It will be nice to have INTEL supported as well 👍 Thx!

saveli commented 1 year ago

I mean, it does recognise the supported hardware en-/decoders listed by

PS C:\Program Files (x86)\Universal Media Server\bin> .\ffmpeg.exe -hwaccels
ffmpeg version 2022-12-25-git-eeb280f351-essentials_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      57. 43.100 / 57. 43.100
  libavcodec     59. 55.103 / 59. 55.103
  libavformat    59. 34.102 / 59. 34.102
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 53.100 /  8. 53.100
  libswscale      6.  8.112 /  6.  8.112
  libswresample   4.  9.100 /  4.  9.100
  libpostproc    56.  7.100 / 56.  7.100
Hardware acceleration methods:
cuda
dxva2
qsv
d3d11va

and provides them in the transcoding dropdown menus, but selecting qsv will always crash with error 1.

On a side note, where can one edit the bitrate and so on for these hardware accelerators?

SurfaceS commented 1 year ago

Hardware accel for encoding need a full review on ffmpeg encoding params as each methods have it's own params.