NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
1 2 3 4 5 … 37 Next »
VAAPI transcoding fails most of the time

 
  • 0 Vote(s) - 0 Average
VAAPI transcoding fails most of the time
mrdally204
Offline

Member

Posts: 60
Threads: 11
Joined: Jan 2015
#1
2026-07-16, 12:56 AM (This post was last modified: 2026-07-16, 12:59 AM by mrdally204.)
Hey all,

I'm having an intermittent transcoding issue with NextPVR on Ubuntu 24.04 using VAAPI hardware acceleration. Most transcoding attempts fail, but occasionally they work without any changes.

Intel® Core™ i5-7500T CPU
Driver version: Intel iHD driver for Intel® Gen Graphics - 24.1.0 ()

I've verified permissions on /dev/dri/renderD128, the nextpvr user is in the video and render groups, and vainfo reports VAAPI support.
I've attached my latest logs (zip), which include both successful and failed transcoding attempts.
Any ideas on what I should check next?


Attached Files
.zip   logs-20260715-2047.zip (Size: 976.65 KB / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 56,599
Threads: 995
Joined: May 2006
#2
2026-07-16, 01:19 AM (This post was last modified: 2026-07-16, 01:20 AM by mvallevand.)
According to AI it is an FFMpeg bug with vaapi and closed captioning

2026-07-13 23:06:33.841 [DEBUG][10] [FFMPEG]: [h264_vaapi @ 0x573065a76900] Access unit too large: 8192 < 10752.

Maybe try this in config.xml instead of the default <TranscodeHLS>default</TranscodeHLS> (I didn't test it)

Code:
-hwaccel vaapi -hwaccel_output_format vaapi  -y [ANALYZE_DURATION] [SEEK] -vaapi_device /dev/dri/renderD128 -i [SOURCE] -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0? -map 0:a:[AUDIO_STREAM] -map -0:s -vf "scale_vaapi=[VAAPI_SCALE]" -codec:v:0 h264_vaapi -sei 0 -max_muxing_queue_size 2048 -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -codec:a:0 [AUDIO_CODEC] -strict experimental -ac [AUDIO_CHANNELS] -ab [AUDIO_BITRATE] -hls_time [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]

If not work with AI to come up with parameters if you absolutely must use VAAPI or just move to a direct play client.

Martin
mrdally204
Offline

Member

Posts: 60
Threads: 11
Joined: Jan 2015
#3
2026-07-16, 01:26 AM
(2026-07-16, 01:19 AM)mvallevand Wrote: According to AI it is an FFMpeg bug with vaapi and closed captioning

2026-07-13 23:06:33.841 [DEBUG][10] [FFMPEG]: [h264_vaapi @ 0x573065a76900] Access unit too large: 8192 < 10752.

Maybe try this in config.xml  instead of the default <TranscodeHLS>default</TranscodeHLS> (I didn't test it)

Code:
-hwaccel vaapi -hwaccel_output_format vaapi  -y [ANALYZE_DURATION] [SEEK] -vaapi_device /dev/dri/renderD128 -i [SOURCE] -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0? -map 0:a:[AUDIO_STREAM] -map -0:s -vf "scale_vaapi=[VAAPI_SCALE]" -codec:v:0 h264_vaapi -sei 0 -max_muxing_queue_size 2048 -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -codec:a:0 [AUDIO_CODEC] -strict experimental -ac [AUDIO_CHANNELS] -ab [AUDIO_BITRATE] -hls_time [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]

If not work with AI to come up with parameters if you absolutely must use VAAPI or just move to a direct play client.

Martin

Thanks for the response, Martin. If I make changes to the config.xml will they persist with future NextPVR updates?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 56,599
Threads: 995
Joined: May 2006
#4
2026-07-16, 01:29 AM (This post was last modified: 2026-07-16, 01:45 AM by mvallevand.)
Yes. However default might change internally and improve on your settings.

Martin
mrdally204
Offline

Member

Posts: 60
Threads: 11
Joined: Jan 2015
#5
2026-07-16, 03:49 AM
(2026-07-16, 01:29 AM)mvallevand Wrote: Yes.  However default might change internally and improve on your settings.

Martin

Confirmed. The changes you suggested above to the config fixed the transcoding problem I was experiencing. Thanks again!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  SAT>IP scan fails - strange behaviour joe_d1 2 320 2026-05-22, 11:52 AM
Last Post: joe_d1
  VAAPI causes "Failed to start requested stream" when skipping WagMan 4 594 2026-02-27, 02:00 AM
Last Post: WagMan
  [Failed: Recording service not running at recording time] ag100pct 2 1,148 2025-09-02, 06:58 PM
Last Post: ag100pct
  Transcoding question Langelus 3 1,446 2024-05-02, 04:55 PM
Last Post: mvallevand
  EGP Docker time off jrockow 2 1,355 2024-04-01, 01:43 PM
Last Post: jrockow
  Time scheduled radio recording? WagMan 8 2,972 2024-01-13, 05:34 PM
Last Post: mvallevand
  Pi4 transcoding and 'doing too much' - what has priority? TheRealRoland 2 1,385 2024-01-01, 02:34 PM
Last Post: mvallevand
  Different Errors depending on channel (no tuner found/transcoding Error) idefixrc 3 1,809 2023-11-21, 12:45 PM
Last Post: mvallevand
  Sometimes stream fails VCR58 5 1,947 2023-07-15, 12:45 AM
Last Post: mvallevand
  FFMpeg and Vaapi acceleration dlfergrd 6 3,541 2023-07-05, 01:37 AM
Last Post: dlfergrd

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode