• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: Tvheadend ffmpeg error

     
    • 0 Vote(s) - 0 Average

    SOLVED: Tvheadend ffmpeg error

    Tvheadend ffmpeg error
    Richárd Nemes
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2025 Jan
    Reputation: 0
    #1
    2025-01-25, 11:50 AM
    Hi, please help tvheadend ffmpeg error:
    Log files:
    libav: AVCodecContext: the corresponding frame type is not compatible with maximum B-frames
    Go to solution
    Richárd Nemes
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2025 Jan
    Reputation: 0
    #2
    2025-01-25, 03:07 PM
    Matroska (mkv)/built-in
    Video codec profile: webtv-h264
    Codec: libx264
    Hardware acceleration: enbaled

    tvheadend conf
    profile:
    {
    "container": 1,
    "pro_vcodec": "webtv-h264",
    "src_vcodec": [
    ],
    "pro_acodec": "copy",
    "src_acodec": [
    ],
    "src_scodec": [
    ],
    "class": "profile-transcode",
    "name": "kodi",
    "enabled": true,
    "default": false,
    "timeout": 5,
    "timeout_start": 0,
    "priority": 3,
    "fpriority": 0,
    "restart": false,
    "contaccess": true,
    "catimeout": 2000,
    "swservice": true,
    "svfilter": 0
    }

    codec:
    {
    "preset": "ultrafast",
    "tune": "zerolatency",
    "params": "",
    "bit_rate": 0,
    "crf": 0,
    "deinterlace": true,
    "height": 0,
    "scaling_mode": 0,
    "hwaccel": true,
    "pix_fmt": -1,
    "name": "webtv-h264",
    "description": "WEBTV codec H264",
    "codec_name": "libx264",
    "profile": -99
    }




    AMD i-gpu
    error: XDG_RUNTIME_DIR not set in the environment.
    error: can't connect to X server!
    libva info: VA-API version 1.7.0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
    libva info: Found init function __vaDriverInit_1_7
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 1.7 (libva 2.6.0)
    vainfo: Driver version: Mesa Gallium driver 21.2.6 for AMD Radeon™ Vega 8 Graphics (RAVEN, DRM 3.35.0, 5.4.0-202-generic, LLVM 12.0.0)
    vainfo: Supported profile and entrypoints
    VAProfileMPEG2Simple : VAEntrypointVLD
    VAProfileMPEG2Main : VAEntrypointVLD
    VAProfileVC1Simple : VAEntrypointVLD
    VAProfileVC1Main : VAEntrypointVLD
    VAProfileVC1Advanced : VAEntrypointVLD
    VAProfileH264ConstrainedBaseline: VAEntrypointVLD
    VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
    VAProfileH264Main : VAEntrypointVLD
    VAProfileH264Main : VAEntrypointEncSlice
    VAProfileH264High : VAEntrypointVLD
    VAProfileH264High : VAEntrypointEncSlice
    VAProfileHEVCMain : VAEntrypointVLD
    VAProfileHEVCMain : VAEntrypointEncSlice
    VAProfileHEVCMain10 : VAEntrypointVLD
    VAProfileJPEGBaseline : VAEntrypointVLD
    VAProfileVP9Profile0 : VAEntrypointVLD
    VAProfileVP9Profile2 : VAEntrypointVLD
    VAProfileNone : VAEntrypointVideoProc
    goerdi
    Offline

    Member

    Posts: 110
    Threads: 33
    Joined: 2024 Aug
    Reputation: 1
    Country:Germany
    #3
    2025-01-25, 03:28 PM (This post was last modified: 2025-01-25, 03:28 PM by goerdi.)
    hi !

    you might need a render device like for vaapi/qsv

    {
            "level": 30,
            "ui": 255,
            "uilp": 255,
            "platform": 1,
            "device": "/dev/dri/renderD128",
            "low_power": false,
            "async_depth": 2,
            "desired_b_depth": 0,
            "b_reference": 0,
            "rc_mode": 0,
            "qp": 0,
            "qmin": 0,
            "qmax": 0,
            "bit_rate": 0,
            "max_bit_rate": 0,
            "buff_factor": 3,
            "bit_rate_scale_factor": 0,
            "hw_denoise": 0,
            "hw_sharpness": 0,
            "quality": 0,
            "deinterlace": true,
            "height": 0,
            "scaling_mode": 0,
            "hwaccel": false,
            "pix_fmt": -1,
            "name": "vaapi_x264",
            "description": "vaapi_x264",
            "codec_name": "h264_vaapi",
            "profile": -99
    }


    Ciao Gerd
    I7-8700 / 32GB Ram
    Intel A380 / Ubuntu 24.04
    16 TB NAS TS-253
    2 TB NVME  / 2 TB SSD
    Richárd Nemes
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2025 Jan
    Reputation: 0
    #4
    2025-01-25, 04:11 PM
    (2025-01-25, 03:28 PM)goerdi Wrote: hi !

    you might need a render device like for vaapi/qsv

    {
            "level": 30,
            "ui": 255,
            "uilp": 255,
            "platform": 1,
            "device": "/dev/dri/renderD128",
            "low_power": false,
            "async_depth": 2,
            "desired_b_depth": 0,
            "b_reference": 0,
            "rc_mode": 0,
            "qp": 0,
            "qmin": 0,
            "qmax": 0,
            "bit_rate": 0,
            "max_bit_rate": 0,
            "buff_factor": 3,
            "bit_rate_scale_factor": 0,
            "hw_denoise": 0,
            "hw_sharpness": 0,
            "quality": 0,
            "deinterlace": true,
            "height": 0,
            "scaling_mode": 0,
            "hwaccel": false,
            "pix_fmt": -1,
            "name": "vaapi_x264",
            "description": "vaapi_x264",
            "codec_name": "h264_vaapi",
            "profile": -99
    }


    Ciao Gerd


    Thankyou, not working, not listed tvheadend.how to fix?

    root@ryzenConfused-facehome/ryzen# ffmpeg -hide_banner -encoders|grep  h264
    V....D libx264              libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
    V....D libx264rgb          libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)
    V....D h264_amf            AMD AMF H.264 Encoder (codec h264)
    V....D h264_nvenc          NVIDIA NVENC H.264 encoder (codec h264)
    V..... h264_qsv            H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)
    V..... h264_v4l2m2m        V4L2 mem2mem H.264 encoder wrapper (codec h264)
    V....D h264_vaapi          H.264/AVC (VAAPI) (codec h264)
    goerdi
    Offline

    Member

    Posts: 110
    Threads: 33
    Joined: 2024 Aug
    Reputation: 1
    Country:Germany
    #5
    2025-01-25, 11:39 PM (This post was last modified: 2025-01-25, 11:47 PM by goerdi. Edited 2 times in total.)
    Hi !

    You have to find out which is your hw render device and put it in TVH codec ... but first you have to select during codec creation following things
    (see attached pictures)

    hint: the first time i had to insert the render device manually... on the next it appears automatically (see finished picture)

    Ciao Gerd


    Attached Files Thumbnail(s)
               
    I7-8700 / 32GB Ram
    Intel A380 / Ubuntu 24.04
    16 TB NAS TS-253
    2 TB NVME  / 2 TB SSD
    Richárd Nemes
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2025 Jan
    Reputation: 0
    #6
    2025-01-26, 04:56 AM (This post was last modified: 2025-01-26, 04:58 AM by Richárd Nemes. Edited 1 time in total.)
    (2025-01-25, 11:39 PM)goerdi Wrote: Hi !

    You have to find out which is your hw render device and put it in TVH codec ... but first you have to select during codec creation following things
    (see attached pictures)

    hint: the first time i had to insert the render device manually... on the next it appears automatically (see finished picture)

    Ciao Gerd

    Not litsed tvheadened, installed cloudsmith

    https://cloudsmith.io/~tvheadend/repos/t...;t=binary/
    Richárd Nemes
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2025 Jan
    Reputation: 0
    #7
    2025-01-26, 05:30 AM (This post was last modified: 2025-01-26, 05:32 AM by Richárd Nemes. Edited 2 times in total.)
    Reconfigure tvheadend installer dpkg install and restart tvheadend and working.
    https://tvheadend.org/d/4492-manual-buil...an-distros

    Thankyou
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


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

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode