View previous topic :: View next topic |
Author |
Message |
Shadow_Fury Apprentice
Joined: 20 Apr 2021 Posts: 196 Location: 11.435765792823453, 143.05926743686274
|
Posted: Fri May 27, 2022 9:51 pm Post subject: Steam streaming issues ffmpeg |
|
|
as the title says, i'm having issues getting steam game streams to work.
by running it from the command line, i've obtained the following log:
Code: |
Starting new video recording session
Installing breakpad exception handler for appid(steam)/version(1653602550)
>>> Starting desktop stream
Installing breakpad exception handler for appid(steam)/version(1653602550)
>>> Switching video stream from NONE to Desktop_MovieStream
Installing breakpad exception handler for appid(steam)/version(1653602550)
ffmpeg verbose: libva: VA-API version 1.14.0
ffmpeg error: libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
ffmpeg error: Failed to initialise VAAPI connection: -1 (unknown libva error).
CGameStreamVideoStageVAAPI: Failed to create device context: Input/output error
ffmpeg verbose: libva: VA-API version 1.14.0
ffmpeg error: libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
ffmpeg error: Failed to initialise VAAPI connection: -1 (unknown libva error).
CGameStreamVideoStageVAAPI: Failed to create device context: Input/output error
Installing breakpad exception handler for appid(steam)/version(1653602550)
Detected 12 logical processors, using 4 threads
Detected 12 logical processors, using 4 threads
Configuring encoder: [threads=4][width=1280][height=720][preset=veryfast][tune=film]
>>> Capture method set to Desktop Placeholder + libyuv + libx264 high (4 threads)
|
the only contributor to the stream failing i can think of is this:
Code: |
fmpeg verbose: libva: VA-API version 1.14.0
ffmpeg error: libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
ffmpeg error: Failed to initialise VAAPI connection: -1 (unknown libva error).
CGameStreamVideoStageVAAPI: Failed to create device context: Input/output error
|
I've tried to get ffmpeg to work, but no luck.
trying with a random video file i had lying around and regular ffmpeg (following command):
Code: |
ffmpeg -threads 1 -i random.mkv -vaapi_device /dev/dri/renderD128 -vcodec h264_vaapi -vf format='nv12|vaapi,hwupload' output.mp4
|
i get the following:
Code: |
fmpeg version 4.4.2 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11.3.0 (Gentoo Hardened 11.3.0 p4)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.4.2/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm --strip=x86_64-pc-linux-gnu-strip --ranlib=x86_64-pc-linux-gnu-ranlib --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O2 -pipe' --extra-libs= --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-indev=sndio --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sndio --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl --disable-hardcoded-tables --enable-iconv --disable-libxml2 --disable-lzma --enable-network --disable-opencl --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --enable-vaapi --enable-vdpau --enable-vulkan --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --disable-opengl --disable-libv4l2 --enable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --enable-libdav1d --disable-libfdk-aac --enable-libopenjpeg --disable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24 --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --enable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-cuda-llvm --disable-libflite --disable-frei0r --disable-libvmaf --disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass --disable-libtesseract --disable-lv2 --disable-libfreetype --disable-libvidstab --disable-librubberband --disable-libzmq --disable-libzimg --disable-libsoxr --enable-pthreads --disable-amf --disable-libvo-amrwbenc --disable-libkvazaar --disable-libaom --enable-libmp3lame --disable-libopenh264 --disable-librav1e --disable-libsnappy --disable-libsvtav1 --enable-libtheora --disable-libtwolame --disable-libwebp --enable-libx264 --disable-libx265 --enable-libxvid --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext --disable-aesni --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-xop --enable-pic --cpu=host --disable-doc --disable-htmlpages --enable-manpages
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
[1] 19149 segmentation fault ffmpeg -threads 1 -i '2022-03-21 08-19-45.mkv' -vaapi_device -vcodec -vf
|
as seen above it segfaults.
eix for ffmpeg:
Code: |
[I] media-video/ffmpeg
Available versions: 4.2.4-r1(0/56.58.58)^td 4.3.2-r1(0/56.58.58)^td 4.4.1-r5(0/56.58.58)^td (~)4.4.2(0/56.58.58)^td [M](~)5.0.1(0/57.59.59)^td [M]**9999(0/57.59.59)*l^td {X alsa amf amr amrenc appkit bluray bs2b +bzip2 cdio chromaprint chromium codec2 cpudetection cuda (+)dav1d debug doc +encode fdk flite fontconfig frei0r fribidi gcrypt gme gmp (+)gnutls +gpl gsm hardcoded-tables +iconv iec61883 ieee1394 jack jpeg2k kvazaar ladspa libaom libaribb24 libass libcaca libdrm libilbc librtmp libsoxr libtesseract libv4l libxml2 lv2 lzma mipsdspr1 mipsdspr2 mipsfpu mmal modplug mp3 +network nvenc openal opencl opengl openh264 openssl opus oss pic +postproc pulseaudio rav1e rubberband samba sdl snappy sndio speex srt ssh static-libs svg svt-av1 test theora +threads truetype twolame v4l vaapi vdpau verify-sig vidstab vmaf vorbis vpx vulkan wavpack webp x264 x265 xvid zeromq zimg +zlib zvbi ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_ARM="neon thumb thumb2 v6 v8 vfp vfpv3" CPU_FLAGS_PPC="altivec vsx vsx2" CPU_FLAGS_X86="3dnow 3dnowext aes avx avx2 fma3 fma4 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 xop" FFTOOLS="+aviocat +cws2fws +ffescape +ffeval +ffhash +fourcc2pixfmt +graph2dot +ismindex +pktdumper +qt-faststart +sidxindex +trasher"}
Installed versions: 4.4.2(0/56.58.58)^t(22:22:16 27/05/22)(X bzip2 dav1d encode gnutls gpl iconv jpeg2k mp3 network nvenc opus pic postproc pulseaudio sdl theora threads vaapi vdpau vorbis vpx vulkan x264 xvid zlib -alsa -amf -amr -amrenc -appkit -bluray -bs2b -cdio -chromaprint -chromium -codec2 -cpudetection -cuda -debug -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -kvazaar -ladspa -libaom -libaribb24 -libass -libcaca -libdrm -libilbc -librtmp -libsoxr -libtesseract -libv4l -libxml2 -lv2 -lzma -mipsdspr1 -mipsdspr2 -mipsfpu -mmal -modplug -openal -opencl -opengl -openh264 -openssl -oss -rav1e -rubberband -samba -snappy -sndio -speex -srt -ssh -static-libs -svg -svt-av1 -test -truetype -twolame -v4l -verify-sig -vidstab -vmaf -webp -x265 -zeromq -zimg -zvbi ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" CPU_FLAGS_ARM="-neon -thumb -thumb2 -v6 -v8 -vfp -vfpv3" CPU_FLAGS_PPC="-altivec -vsx -vsx2" CPU_FLAGS_X86="mmx mmxext sse sse2 -3dnow -3dnowext -aes -avx -avx2 -fma3 -fma4 -sse3 -sse4_1 -sse4_2 -ssse3 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher")
Homepage: https://ffmpeg.org/
Description: Complete solution to record/convert/stream audio and video. Includes libavcodec
|
any help is appreciated |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3934
|
Posted: Fri May 27, 2022 10:19 pm Post subject: |
|
|
Are you running it as root?
Maybe you shouldnt.
In ~/.bashrc
include a line like
Code: |
export LIBVA_DRIVER_NAME="i965"
|
Then
substituting i965 with your driver.
You can check them in
Code: |
/usr/lib64/va/drivers
|
Plz try
Code: |
USE="vainfo" emerge -1av libva-utils
then as ordinary user
vainfo
|
Is
libva
installed? _________________
|
|
Back to top |
|
|
Shadow_Fury Apprentice
Joined: 20 Apr 2021 Posts: 196 Location: 11.435765792823453, 143.05926743686274
|
Posted: Fri May 27, 2022 10:51 pm Post subject: |
|
|
alamahant wrote: | Are you running it as root? |
No, it's running as a regular user
alamahant wrote: |
include a line like
Code: |
export LIBVA_DRIVER_NAME="i965"
|
Then
substituting i965 with your driver.
|
output of printenv | grep -i libva:
Code: |
LIBVA_DRIVER_NAME=vdpau
LIBVA_DRIVERS_PATH=/usr/lib64/va/drivers
|
output of ls /usr/lib64/va/drivers:
Code: |
nvidia_drv_video.so s3g_drv_video.so vdpau_drv_video.la vdpau_drv_video.so
|
tried both "nvidia" and "vdpau"
alamahant wrote: |
Plz try
Code: |
USE="vainfo" emerge -1av libva-utils
|
then as ordinary user
vainfo
|
outout of vanifo:
Code: |
ibva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'vdpau'
libva info: Trying to open /usr/lib64/va/drivers/vdpau_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.14.0)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG4Simple : VAEntrypointVLD
VAProfileMPEG4AdvancedSimple : VAEntrypointVLD
<unknown profile> : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
|
the error from steam would indicate that it can't find the correct driver.
it's the same error i got from standalone ffmpeg when i mistyped the driver name.
still doesn't explain why ffmpeg is segfaulting though
libva is installed, as well as libva-compat |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|