Closed sredfern closed 6 months ago
Hi. Logs for exec trace should show reason, why ffmpeg fail. I can see it in your config. But I can't see it in your logs
Do you mean can’t? I’ll have a go at reinstalling the lxc container. I used an image from the internet. I’ll hand roll the next one.
Yes. I can't see ffmpeg raw logs in the go2rtc logs. They shown only via exec: trace
Looks like it's a driver issue.
Following commands from here
apt-get install -y gpg-agent wget
wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | apt-key add -
echo "deb [arch=$( dpkg --print-architecture )] https://repositories.intel.com/graphics/ubuntu focal main" | sudo tee /etc/apt/sources.list.d/intelgraphics.list
sudo apt-get update
sudo apt-get install \
intel-opencl-icd \
intel-level-zero-gpu level-zero \
intel-media-va-driver-non-free libmfx1
root@go2rtc:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_15
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.17 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.5.0 (7e9cc59)
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileNone : VAEntrypointStats
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointFEI
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointFEI
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointFEI
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointFEI
No problems with go2rtc! Thanks for the amazing support in helping me track this down. Hope this issue is useful for someone else in the future.
Still no idea why trace didn't work.
Version: 1.8.5
System Config
Problem: When I try to start the stream I get the error "webrtc/offer: streams: exec: exit status 1" What's interesting is you can see ffmpeg listed in the process list for intel_gpu_top come up 3 times. This matches with the logs on 3 attempts. Sadly the error message isnt very descriptive and I'm unable to work out how to troubleshoot it further.
hardware and #hardware=vaapi yield the same result. Let me know if you'd like to see a log without #hardware=vaapi.
Add > FFmpeg Hardware:
config:
Confirmed ffmpeg vaapi encoding works on the container from the stream:
When encoding that video I can see it in "intel_gpu_top"
I tried to set a custom ffmpeg config but I'm not super experienced in ffmpeg commands order:
(addition to config)
But this gave an error that looked worse.
vainfo
neolink config:
Error Log:
Thanks for any help, even getting some better logging on why it's exiting would be a win. I don't really understand "can't stop none producer" and why it's limited to when I'm using go2rtc vs running the ffmpeg command directly.
Thanks