• 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 General Questions Is this log means video being hw decoded?

     
    • 0 Vote(s) - 0 Average

    Is this log means video being hw decoded?

    huarite
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    #1
    2024-07-06, 02:53 PM (This post was last modified: 2024-07-06, 02:53 PM by huarite.)
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_qsv))
      Stream #0:1 -> #0:1 (copy)
    I can see this video is being encoded with qsv, but what does native means? Is it also kind of hw accelerated decoding or it means the video being decoded by software(cpu)?
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #2
    2024-07-06, 03:12 PM (This post was last modified: 2024-07-06, 03:17 PM by Efficient_Good_5784. Edited 2 times in total.)
    It means the native H264 codec (native meaning original) is being transcoded to HEVC with QSV. QSV is HWA.

    An easy way to check what Jellyfin is doing to a video is by going to the dashboard while a client is streaming a video. On the dashboard's homepage, click on a user's video playback info and it will tell you what's happening with the video.

    Likewise, on the web player (and Android's Exoplayer), you can open the playback info to see what is happening too.

    Also, do you have QSV enabled AND H264 decoding selected? If so, if you attempt to play any H264 video and it plays fine, then your server is HWA decoding it just fine. It will fail if it wasn't.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-07-06, 03:41 PM
    We'd have to see the full ffmpeg log. The log specifies the full ffmpeg command used.

    This option indicates accelerated decoding.

    Code:
    -hwaccel qsv

    And these two accelerated encoding.

    Code:
    -hwaccel_output_format qsv
    -c:v av1_qsv
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    huarite
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    #4
    2024-07-06, 03:43 PM
    (2024-07-06, 03:12 PM)Efficient_Good_5784 Wrote: It means the native H264 codec (native meaning original) is being transcoded to HEVC with QSV. QSV is HWA.

    An easy way to check what Jellyfin is doing to a video is by going to the dashboard while a client is streaming a video. On the dashboard's homepage, click on a user's video playback info and it will tell you what's happening with the video.

    Likewise, on the web player (and Android's Exoplayer), you can open the playback info to see what is happening too.

    Also, do you have QSV enabled AND H264 decoding selected? If so, if you attempt to play any H264 video and it plays fine, then your server is HWA decoding it just fine. It will fail if it wasn't.

    When I disabled hwa in dashboard, decoding was still hevc(native). But when I enabled qsv and unchecked os native dxva~ thing, log was changed to hevc(hevc_qsv). so hevc(native) means software decoding, I guess
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #5
    2024-07-06, 04:29 PM
    I would do as @TheDreadPirate states check the full ffmpeg log. Could you share that? It would help to answer your question.
    huarite
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    #6
    2024-07-07, 01:46 AM (This post was last modified: 2024-07-07, 01:47 AM by huarite. Edited 1 time in total.)
    usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/data/SSipduckmovie/Ai no Utagoe o Kikasete [tmdbid-741335]/[Moozzi2] Ai no Utagoe o Kikasete (BD 1920x1080 x265-10Bit 4Audio).mkv" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 hevc_qsv -tag:v:0 hvc1 -preset veryfast -b:v 1116000 -maxrate 1116000 -bufsize 2232000 -profile:v:0 main -level 40 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=w=720:h=404:format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv" -codec:a:0 flac -ac 2 -ar 48000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "69f04063b9ed1664afc970cfcf5922a6-1.mp4" -start_number 0 -hls_segment_filename "/config/data/transcodes/69f04063b9ed1664afc970cfcf5922a6%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/config/data/transcodes/69f04063b9ed1664afc970cfcf5922a6.m3u8"


    Stream mapping: Stream #0:0 -> #0:0 (hevc (native) -> hevc (hevc_qsv)) Stream #0:1 -> #0:1 (flac (native) -> flac (native))

    hwaccel vaapi? I set hwa method to qsv, why it says vaapi?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-07-07, 03:02 AM
    Probably because you checked this box.

       

    I can't remember the reason, but it is better to have that box checked.  If you look in the rest of the ffmpeg command you will see QSV used for actual encoding.

    Code:
    -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=w=720:h=404:format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv"
    Code:
    -codec:v:0 hevc_qsv
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    huarite
    Offline

    Junior Member

    Posts: 6
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    #8
    2024-07-07, 03:14 AM
    checked is better? strange, but thanks
    « 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