Jump to content

hevc (hvc1) playback issues, please help


stjacob

Recommended Posts

stjacob

Emby server:

1. Emby Premiere got.

2. Mediasign plus got.

3. Hardware transcoding of h264 is ok on any client.

 

issue1. When the client is emby theater for windows and I checked libmpv or gpu option, the hevc playback is shatterd.

isssu2. When the client is emby for ios, the hevc playback is choppy.

issue3. When I use  web browers, the hevc playback is always working on software transcoding mode (h265 to h264).

 

please help. Did I miss any options?

Link to comment
Share on other sites

stjacob

Thank you for your reply.I checked all the options carefully and I found some key message maybe.

1080p HEVC HDR10 with main10 profile and  hvc1 codec tag  can not be transcoded correcttly, as below:

1328887473_.png.37afcc1187130b08002884472f3b9502.png

1481377148_.png.bb64017baba47d993d34171d57378e32.png

 

720p hecv works well:

2050488470_.png.2a3a639c90b8b664133dd5a442929b99.png

 

1124575183_.png.925b574cc5e1a5f1461148665bfd7a1e.png

here are my transcoding options:

556065922_.png.6bf3030ecffe41583f5b6e66b7b642a4.png

1856859312_.png.5d9bb1104a5aa6ada177e4904c92bd36.png

 

emby server version:

808093387_.png.58144a74dd4ddc6977a851808d74e64d.png

Link to comment
Share on other sites

Happy2Play

Please provide the server, ffmpeg and hardware detection log for a specific example.

Link to comment
Share on other sites

stjacob

server machine:

qnap ts-453bmini,  QTS 4.5.4,  CPU J3455

Operating system: Linux version 4.14.24-qnap (root@U16BuildServer124) (gcc version 4.9.2 (toolchain config: [gcc-4.9.2 binutils-2.25 glibc-2.21])) #1 SMP Thu Dec 23 06:
	Framework: .NET Core 3.1.21
	OS/Process: x64/x64
	Runtime: share/CACHEDEV3_DATA/.qpkg/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 4
	Data path: /share/CACHEDEV3_DATA/.qpkg/EmbyServer/programdata
	Application path: /share/CACHEDEV3_DATA/.qpkg/EmbyServer/system

 

 

ffmpeg log:

/share/CACHEDEV3_DATA/.qpkg/EmbyServer/bin/ffmpeg -loglevel +timing -y -print_graphs_file "/share/CACHEDEV3_DATA/.qpkg/EmbyServer/programdata/logs/ffmpeg-transcode-6642e57b-49df-4629-8d0a-0d936ecd9764_1graph.txt" -copyts -start_at_zero -qsv_device /dev/dri/renderD128 -f mov,mp4,m4a,3gp,3g2,mj2 -c:v:0 hevc_qsv -hwaccel:v:0 qsv -i "/share/CACHEDEV1_DATA/Photos/2021/20211205i12/IMG_1543.MOV" -filter_complex "[0:0]vpp_qsv@f1=format=nv12[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 h264_qsv -b:v:0 19800128 -g:v:0 90 -maxrate:v:0 19800128 -bufsize:v:0 39600256 -sc_threshold:v:0 0 -level:v:0 41 -keyint_min:v:0 90 -r:v:0 29.970029830932617 -profile:v:0 high -c:a:0 copy -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "/share/CACHEDEV3_DATA/.qpkg/EmbyServer/programdata/transcoding-temp/transcoding-temp/439677.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/share/CACHEDEV3_DATA/.qpkg/EmbyServer/programdata/transcoding-temp/transcoding-temp/439677_%d.ts"

08:39:54.168 ffmpeg version 4.3.0-emby_2021_02_27 Copyright (c) 2000-2021 the FFmpeg developers and softworkz for Emby LLC
08:39:54.168   built with gcc 8.3.0 (crosstool-NG 1.24.0)
08:39:54.168 Execution Date: 2022-03-26 08:39:54
08:39:54.189 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/share/CACHEDEV1_DATA/Photos/2021/20211205i12/IMG_1543.MOV':
08:39:54.189   Metadata:
08:39:54.189     major_brand     : qt  
08:39:54.189     minor_version   : 0
08:39:54.189     compatible_brands: qt  
08:39:54.189     creation_time   : 2021-11-19T07:45:57.000000Z
08:39:54.189     com.apple.quicktime.make: Apple
08:39:54.189     com.apple.quicktime.model: iPhone 12
08:39:54.189     com.apple.quicktime.software: 14.8.1
08:39:54.189     com.apple.quicktime.creationdate: 2021-11-19T15:45:57+0800
08:39:54.189   Duration: 00:00:44.70, start: 0.000000, bitrate: 10135 kb/s
08:39:54.189     Stream #0:0(und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt2020nc/bt2020/arib-std-b67), 1920x1080, 9900 kb/s, Level 120, 29.98 fps, 29.97 tbr, 600 tbn, 600 tbc (default)
08:39:54.189     Metadata:
08:39:54.189       rotate          : 90
08:39:54.189       creation_time   : 2021-11-19T07:45:57.000000Z
08:39:54.189       handler_name    : Core Media Video
08:39:54.189       encoder         : HEVC
08:39:54.189     Side data:
08:39:54.189       unknown side data type 29 (8 bytes)
08:39:54.189       displaymatrix: rotation of -90.00 degrees
08:39:54.189     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 182 kb/s (default)
08:39:54.189     Metadata:
08:39:54.189       creation_time   : 2021-11-19T07:45:57.000000Z
08:39:54.189       handler_name    : Core Media Audio
08:39:54.189     Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)
08:39:54.189     Metadata:
08:39:54.189       creation_time   : 2021-11-19T07:45:57.000000Z
08:39:54.189       handler_name    : Core Media Metadata
08:39:54.189     Stream #0:3(und): Data: none (mebx / 0x7862656D), 3 kb/s (default)
08:39:54.189     Metadata:
08:39:54.189       creation_time   : 2021-11-19T07:45:57.000000Z
08:39:54.190       handler_name    : Core Media Metadata
08:39:54.190     Stream #0:4(und): Data: none (mebx / 0x7862656D), 35 kb/s (default)
08:39:54.190     Metadata:
08:39:54.190       creation_time   : 2021-11-19T07:45:57.000000Z
08:39:54.190       handler_name    : Core Media Metadata
08:39:54.190 Stream mapping:
08:39:54.190   Stream #0:0 (hevc_qsv) -> vpp_qsv
08:39:54.190   vpp_qsv -> Stream #0:0 (h264_qsv)
08:39:54.190   Stream #0:1 -> #0:1 (copy)
08:39:54.190 Press [q] to stop, [?] for help
08:39:54.235 Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
08:39:54.235 Error reinitializing filters!
08:39:54.235 Failed to inject frame into filter network: Function not implemented
08:39:54.235 Error while processing the decoded data for stream #0:0
08:39:54.236 Conversion failed!

 

>>>>>>  Affected codecs
Encoder libx264 Software Encoder
        Profiles: Baseline Profile (Level 6.2), Main Profile (Level 6.2), High Profile (Level 6.2), High 10 Profile (Level 6.2), High 4:2:2 Profile (Level 6.2), High 4:4:4 Predictive Profile (Level 6.2)

Info    Previous transcoding attempt failed. Falling back to software transcoding.

>>>>>>  FindVideoEncoder - Media: h264, UseHardwareCodecs: False, Mode: Custom
Info    Checking: 'libx264 Software Encoder'
Info    Check successful - selecting 'libx264 Software Encoder'

>>>>>>  FindVideoDecoder - MediaType: hevc, Mode: Custom
Info    Checking: 'Automatic software decoder'
Info    Check successful - selecting 'Automatic software decoder'

>>>>>>  Processing Plan
Info    Name                                        CanDoInHardware      WillDoInHardware     Reason                                  
Info    Automatic software decoder               >> False                False                Software Codec                           
Info    VideoInput                               >> False                False                Not a hardware decoder                   
Info    ColorConversion                          >> False                False                                                         
Info    VideoOutput                              >> False                False                Not a hardware encoder                   
Info    libx264 Software Encoder                 >> False                False                Software Codec                           

>>>>>>  Projected Processing Formats
Info    Previous                HW-Context   Format       SW-Format           Size   Next
Info    hevc                 >> -            yuv420p10    yuv420p10      1920x1080 >> format
Info    format               >> -            yuv420p      yuv420p        1920x1080 >> 


/share/CACHEDEV3_DATA/.qpkg/EmbyServer/bin/ffmpeg -loglevel +timing -y -print_graphs_file "/share/CACHEDEV3_DATA/.qpkg/EmbyServer/programdata/logs/ffmpeg-transcode-6642e57b-49df-4629-8d0a-0d936ecd9764_1graph.txt" -copyts -start_at_zero -f mov,mp4,m4a,3gp,3g2,mj2 -c:v:0 hevc -i "/share/CACHEDEV1_DATA/Photos/2021/20211205i12/IMG_1543.MOV" -filter_complex "[0:0]format@f1=pix_fmts=yuv420p[f1_out0]" -map [f1_out0] -map 0:1 -sn -c:v:0 libx264 -g:v:0 90 -maxrate:v:0 19800128 -bufsize:v:0 39600256 -sc_threshold:v:0 0 -keyint_min:v:0 90 -r:v:0 29.970029830932617 -pix_fmt:v:0 yuv420p -preset:v:0 veryfast -profile:v:0 high -level:v:0 4.1 -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:partitions=none" -crf:v:0 23 -c:a:0 copy -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "/share/CACHEDEV3_DATA/.qpkg/EmbyServer/programdata/transcoding-temp/transcoding-temp/439677.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/share/CACHEDEV3_DATA/.qpkg/EmbyServer/programdata/transcoding-temp/transcoding-temp/439677_%d.ts"

 

hardware_detection-63783875343.txt ffmpeg-transcode-6642e57b-49df-4629-8d0a-0d936ecd9764_1.txt

Link to comment
Share on other sites

  • 3 weeks later...

@stjacob this should be improved in the upcoming 4.7 server release. For immediate relief you can always try the beta channel. Thanks.

Link to comment
Share on other sites

NicoLaz

One addition: I found this topic through search and forgot to explicitely mention that I'm experiencing this problem on MS Windows (10) and NOT on a QNAP device (you can see that in the logs).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...