Decode hardware accel disabled

58 views
Skip to first unread message

Luc Lan

unread,
Oct 18, 2023, 9:00:05 AM10/18/23
to baresip
Hello again,

I am facing the following issue: 
Why is the hardware accel. disabled?

audio: Set audio decoder: opus 48000Hz 2ch
audio: player started with sample format S16LE
audio: Set audio encoder: opus 48000Hz 2ch
audio: source started with sample format S16LE
audio tx pipeline:        alsa ---> aubuf ---> auconv ---> auresamp ---> vumeter ---> opus
audio rx pipeline:        alsa <--- aubuf <--- auconv <--- auresamp <--- vumeter <--- opus
Set video encoder: H264 packetization-mode=0 (1000000 bit/s, 30.00 fps)
avcodec: h264 encoder activated
Set video decoder: H264 packetization-mode=0
avcodec: h264 decoder activated
avcodec: decode: hardware accel disabled
video tx pipeline:   avformat ---> selfview_pip ---> avfilter ---> H264
video rx pipeline:        sdl <--- selfview_pip <--- vidinfo <--- H264

my settings are:

# Video
video_source avformat,v4l2,/dev/video0
video_display sdl,v4l2,/dev/video0
#video_size 240x320
#video_bitrate 1000000
#video_fps 30
video_fullscreen no
#videnc_format yuv420p


# Video codec Modules (in order)
module avcodec.so
#module vp8.so
#module vp9.so

# Video filter Modules (in encoding order)
module selfview.so
#module snapshot.so
#module swscale.so
module vidinfo.so
module avfilter.so

# Video source modules
module v4l2.so
#module vidbridge.so

# Video display modules
#module directfb.so
#module x11.so
module sdl.so
#module fakevideo.so

# Audio/Video source modules
module avformat.so
#module gst.so

# avcodec
#avcodec_h264enc libx264
#avcodec_h264dec h264
#avcodec_h265enc libx265
#avcodec_h265dec hevc
#avcodec_hwaccel vaapi
#avcodec_profile_level_id 42002a
#avcodec_keyint 10

# avformat
#avformat_hwaccel vaapi
#avformat_inputformat mjpeg
#avformat_decoder mjpeg
#avformat_pass_through yes
#avformat_rtsp_transport tls

Thank you.

Luc Lan

unread,
Oct 18, 2023, 9:11:32 AM10/18/23
to baresip
Hello,

I found the answer here: https://trac.ffmpeg.org/wiki/HWAccelIntro

vaapi is not supported in Linux for Nvidia, only for Intel.

So, I decided to check with VDPAU as an avformat_hwaccel, and avcodec_hwaccel

And surprise: 

Set video decoder: H264 packetization-mode=1
avcodec: h264 decoder activated
avcodec: decode: hardware accel enabled (vdpau)

Now I am happy o/

Have a nice day, and sorry for wasting your time.
Reply all
Reply to author
Forward
0 new messages