FAQ  •  Register  •  Login

Servio Hang when streaming HEVC

<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Wed Apr 14, 2021 3:57 pm

Servio Hang when streaming HEVC

When streaming files that are encoded with x265 (MKV file), I will get a "Loading"message on the screen within a few minutes.

I will note that UMS streams the file without complaint.

I am running "Serviio v 2.1" (from Status Screen) with an ID of "GMJkL0JmAy".
My host is Windows 10 (Version 20H2 OS Build 19042.928)
I am streaming to a Roku Streaming Stick +
<<

atc98092

User avatar

DLNA master

Posts: 4389

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Wed Apr 14, 2021 4:42 pm

Re: Servio Hang when streaming HEVC

Are you using the correct Roku profile? Serviio by default assigns the basic Roku profile, but I wrote several others that are a better fit for your Stick. In particular, you should be using the "Roku 4K Media Player w/MPEG2" profile, as I believe all Streaming Stick+ models support MPEG2.

The basic Roku profile will transcode H.265, as the non-4K players don't support it. But if you use the profile listed above, H.265 is not transcoded. If you have issues with the audio not playing, try using the Roku 4K TV profile instead. That will transcode any non-Dolby audio to AC3.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Wed Apr 14, 2021 5:53 pm

Re: Servio Hang when streaming HEVC

atc98092 wrote:Are you using the correct Roku profile? Serviio by default assigns the basic Roku profile, but I wrote several others that are a better fit for your Stick. In particular, you should be using the "Roku 4K Media Player w/MPEG2" profile, as I believe all Streaming Stick+ models support MPEG2.

The basic Roku profile will transcode H.265, as the non-4K players don't support it. But if you use the profile listed above, H.265 is not transcoded. If you have issues with the audio not playing, try using the Roku 4K TV profile instead. That will transcode any non-Dolby audio to AC3.


Ah, yes. I do have that profile selected. I attached an image of the Status page. Sound plays fine until it decideds to switch to a "loading" page
Attachments
Servio Profile.png
Servio Profile.png (122.4 KiB) Viewed 437 times
<<

atc98092

User avatar

DLNA master

Posts: 4389

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Wed Apr 14, 2021 8:28 pm

Re: Servio Hang when streaming HEVC

Could you post the media contents of your file? I'd like to see if the audio codec might be tripping it up. I've also had issues with titles from a few specific studios, most notably Disney. I've had Star Wars rips that will play, then crash with an unplayable error message. But I'd like to see what bitrate your media is trying to stream. I only have a few test clips with H.265, and they don't have near the bitrate of my UHD movie rips. I can't play them as the bitrate exceeds 100 Mbps, and for whatever reason I've never been able to get my Roku players to stream faster on WiFi, even though theoretically 802.11N or .11AC is far faster than Fast Ethernet.

I will also add that Roku is having issues with their Roku Media Player app on some hardware. Most of the recent work has been to resolve music playback issues, so the video issues have been pushed to the side until the music is fixed.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Wed Apr 14, 2021 10:12 pm

Re: Servio Hang when streaming HEVC

atc98092 wrote:Could you post the media contents of your file? I'd like to see if the audio codec might be tripping it up. I've also had issues with titles from a few specific studios, most notably Disney. I've had Star Wars rips that will play, then crash with an unplayable error message. But I'd like to see what bitrate your media is trying to stream. I only have a few test clips with H.265, and they don't have near the bitrate of my UHD movie rips. I can't play them as the bitrate exceeds 100 Mbps, and for whatever reason I've never been able to get my Roku players to stream faster on WiFi, even though theoretically 802.11N or .11AC is far faster than Fast Ethernet.

I will also add that Roku is having issues with their Roku Media Player app on some hardware. Most of the recent work has been to resolve music playback issues, so the video issues have been pushed to the side until the music is fixed.


I am not sure what exactly you want, but I snagged the UPnP tools. Please let me know if you need anything else.

  Code:
Properties:
upnp:class  -- object.item.videoItem
Media Class -- object.item.videoItem

Resources #1:
contentUri -- http://192.168.1.250:8895/resource/13981/MEDIA_ITEM/MPEG_PS_PAL-0/ORIGINAL
bitrate -- 380375
duration -- 23:40
protocolInfo -- http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000
resolution -- 1920x1080

Resources #2:
contentUri -- http://192.168.1.250:8895/resource/13981/MEDIA_ITEM/MPEG_PS_NTSC-0/ORIGINAL
bitrate -- 380375
duration -- 23:40
protocolInfo -- http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000
resolution -- 1920x1080
<<

atc98092

User avatar

DLNA master

Posts: 4389

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Apr 15, 2021 12:24 am

Re: Servio Hang when streaming HEVC

What I'm looking for is the contents of your media files, i.e. the video and audio codecs used. There's a link in my sig line that explains how to retrieve that information, either using FFMPEG from the command line or a program such as MediaInfo. FFMPEG is the most accurate, but using command line programs can be an issue for some.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Thu Apr 15, 2021 1:29 am

Re: Servio Hang when streaming HEVC

atc98092 wrote:What I'm looking for is the contents of your media files, i.e. the video and audio codecs used. There's a link in my sig line that explains how to retrieve that information, either using FFMPEG from the command line or a program such as MediaInfo. FFMPEG is the most accurate, but using command line programs can be an issue for some.


The above was from the instructions, but I downloaded ffmpeg and used its utilities.

ffprobe:
  Code:
ffprobe version 4.4-full_build-www.gyan.dev Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, matroska,webm, from '[Erai-raws] Horimiya - 01 [1080p HEVC][Multiple Subtitle].mkv':
  Metadata:
    encoder         : libebml v1.4.0 + libmatroska v1.6.2
    creation_time   : 2021-02-20T12:15:45.000000Z
  Duration: 00:23:40.09, start: 0.000000, bitrate: 3043 kb/s
  Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS-eng         : 2780033
      DURATION-eng    : 00:23:40.086000000
      NUMBER_OF_FRAMES-eng: 34048
      NUMBER_OF_BYTES-eng: 493485790
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Metadata:
      BPS-eng         : 253375
      DURATION-eng    : 00:23:40.074000000
      NUMBER_OF_FRAMES-eng: 66566
      NUMBER_OF_BYTES-eng: 44976428
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: ass (default)
    Metadata:
      BPS-eng         : 143
      DURATION-eng    : 00:23:38.250000000
      NUMBER_OF_FRAMES-eng: 424
      NUMBER_OF_BYTES-eng: 25432
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(spa): Subtitle: ass
    Metadata:
      BPS-eng         : 121
      DURATION-eng    : 00:23:37.830000000
      NUMBER_OF_FRAMES-eng: 386
      NUMBER_OF_BYTES-eng: 21486
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(por): Subtitle: ass
    Metadata:
      BPS-eng         : 119
      DURATION-eng    : 00:23:37.830000000
      NUMBER_OF_FRAMES-eng: 388
      NUMBER_OF_BYTES-eng: 21103
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5: Attachment: ttf
    Metadata:
      filename        : OpenSans-ExtraBold.ttf
      mimetype        : application/x-truetype-font
  Stream #0:6: Attachment: ttf
    Metadata:
      filename        : OpenSans-Italic.ttf
      mimetype        : application/x-truetype-font
  Stream #0:7: Attachment: ttf
    Metadata:
      filename        : OpenSans-Light.ttf
      mimetype        : application/x-truetype-font
  Stream #0:8: Attachment: ttf
    Metadata:
      filename        : OpenSans-Regular.ttf
      mimetype        : application/x-truetype-font
  Stream #0:9: Attachment: ttf
    Metadata:
      filename        : OpenSans-Semibold.ttf
      mimetype        : application/x-truetype-font
  Stream #0:10: Attachment: ttf
    Metadata:
      filename        : MIAMA.OTF
      mimetype        : application/x-truetype-font
Unsupported codec with id 98304 for input stream 5
Unsupported codec with id 98304 for input stream 6
Unsupported codec with id 98304 for input stream 7
Unsupported codec with id 98304 for input stream 8
Unsupported codec with id 98304 for input stream 9
Unsupported codec with id 98304 for input stream 10

G:\Vids\100) Anime\999) Watchlist (Sorted)\1\Horimiya [Erai-raws]>c:\Users\Nexist\Downloads\ffmpeg-4.4-full_build\bin\ffprobe.exe "[Erai-raws] Horimiya - 01 [1080p HEVC][Multiple Subtitle].mkv" > ffprobe_ep1.txt
ffprobe version 4.4-full_build-www.gyan.dev Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, matroska,webm, from '[Erai-raws] Horimiya - 01 [1080p HEVC][Multiple Subtitle].mkv':
  Metadata:
    encoder         : libebml v1.4.0 + libmatroska v1.6.2
    creation_time   : 2021-02-20T12:15:45.000000Z
  Duration: 00:23:40.09, start: 0.000000, bitrate: 3043 kb/s
  Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS-eng         : 2780033
      DURATION-eng    : 00:23:40.086000000
      NUMBER_OF_FRAMES-eng: 34048
      NUMBER_OF_BYTES-eng: 493485790
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Metadata:
      BPS-eng         : 253375
      DURATION-eng    : 00:23:40.074000000
      NUMBER_OF_FRAMES-eng: 66566
      NUMBER_OF_BYTES-eng: 44976428
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: ass (default)
    Metadata:
      BPS-eng         : 143
      DURATION-eng    : 00:23:38.250000000
      NUMBER_OF_FRAMES-eng: 424
      NUMBER_OF_BYTES-eng: 25432
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(spa): Subtitle: ass
    Metadata:
      BPS-eng         : 121
      DURATION-eng    : 00:23:37.830000000
      NUMBER_OF_FRAMES-eng: 386
      NUMBER_OF_BYTES-eng: 21486
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(por): Subtitle: ass
    Metadata:
      BPS-eng         : 119
      DURATION-eng    : 00:23:37.830000000
      NUMBER_OF_FRAMES-eng: 388
      NUMBER_OF_BYTES-eng: 21103
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5: Attachment: ttf
    Metadata:
      filename        : OpenSans-ExtraBold.ttf
      mimetype        : application/x-truetype-font
  Stream #0:6: Attachment: ttf
    Metadata:
      filename        : OpenSans-Italic.ttf
      mimetype        : application/x-truetype-font
  Stream #0:7: Attachment: ttf
    Metadata:
      filename        : OpenSans-Light.ttf
      mimetype        : application/x-truetype-font
  Stream #0:8: Attachment: ttf
    Metadata:
      filename        : OpenSans-Regular.ttf
      mimetype        : application/x-truetype-font
  Stream #0:9: Attachment: ttf
    Metadata:
      filename        : OpenSans-Semibold.ttf
      mimetype        : application/x-truetype-font
  Stream #0:10: Attachment: ttf
    Metadata:
      filename        : MIAMA.OTF
      mimetype        : application/x-truetype-font
Unsupported codec with id 98304 for input stream 5
Unsupported codec with id 98304 for input stream 6
Unsupported codec with id 98304 for input stream 7
Unsupported codec with id 98304 for input stream 8
Unsupported codec with id 98304 for input stream 9
Unsupported codec with id 98304 for input stream 10

G:\Vids\100) Anime\999) Watchlist (Sorted)\1\Horimiya [Erai-raws]>dir
 Volume in drive G is LIVINGonVIDEO
 Volume Serial Number is 98A9-9E56

 Directory of G:\Vids\100) Anime\999) Watchlist (Sorted)\1\Horimiya [Erai-raws]

14-Apr-21  18:10    <DIR>          .
14-Apr-21  18:10    <DIR>          ..
14-Apr-21  18:10                 0 ffprobe_ep1.txt
27-Feb-21  09:38       540,298,078 [Erai-raws] Horimiya - 01 [1080p HEVC][Multiple Subtitle].mkv
27-Feb-21  09:38       460,674,880 [Erai-raws] Horimiya - 02 [1080p HEVC][Multiple Subtitle].mkv
27-Feb-21  09:38       494,040,701 [Erai-raws] Horimiya - 03 [1080p HEVC][Multiple Subtitle].mkv
27-Feb-21  09:38       418,110,895 [Erai-raws] Horimiya - 04 [1080p HEVC][Multiple Subtitle].mkv
27-Feb-21  09:37       425,186,651 [Erai-raws] Horimiya - 05 [1080p HEVC][Multiple Subtitle].mkv
27-Feb-21  09:38       557,196,749 [Erai-raws] Horimiya - 06 [1080p HEVC][Multiple Subtitle].mkv
27-Feb-21  08:37       497,313,312 [Erai-raws] Horimiya - 07 [1080p HEVC][Multiple Subtitle].mkv
02-Mar-21  20:46       522,833,275 [Erai-raws] Horimiya - 08 [1080p HEVC][Multiple Subtitle].mkv
10-Mar-21  08:58       484,027,684 [Erai-raws] Horimiya - 09 [1080p HEVC][Multiple Subtitle].mkv
24-Mar-21  09:12       477,127,237 [Erai-raws] Horimiya - 10 [1080p HEVC][Multiple Subtitle].mkv
24-Mar-21  09:13       506,007,158 [Erai-raws] Horimiya - 11 [1080p HEVC][Multiple Subtitle].mkv
29-Mar-21  17:37       508,012,772 [Erai-raws] Horimiya - 12 [1080p HEVC][Multiple Subtitle].mkv
06-Apr-21  15:34       665,054,459 [Erai-raws] Horimiya - 13 END [1080p HEVC][Multiple Subtitle].mkv
              14 File(s)  6,555,883,851 bytes
               2 Dir(s)  4,557,041,807,360 bytes free

G:\Vids\100) Anime\999) Watchlist (Sorted)\1\Horimiya [Erai-raws]>c:\Users\Nexist\Downloads\ffmpeg-4.4-full_build\bin\ffprobe.exe "[Erai-raws] Horimiya - 01 [1080p HEVC][Multiple Subtitle].mkv" >> ffprobe_ep1.txt
ffprobe version 4.4-full_build-www.gyan.dev Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, matroska,webm, from '[Erai-raws] Horimiya - 01 [1080p HEVC][Multiple Subtitle].mkv':
  Metadata:
    encoder         : libebml v1.4.0 + libmatroska v1.6.2
    creation_time   : 2021-02-20T12:15:45.000000Z
  Duration: 00:23:40.09, start: 0.000000, bitrate: 3043 kb/s
  Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS-eng         : 2780033
      DURATION-eng    : 00:23:40.086000000
      NUMBER_OF_FRAMES-eng: 34048
      NUMBER_OF_BYTES-eng: 493485790
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Metadata:
      BPS-eng         : 253375
      DURATION-eng    : 00:23:40.074000000
      NUMBER_OF_FRAMES-eng: 66566
      NUMBER_OF_BYTES-eng: 44976428
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: ass (default)
    Metadata:
      BPS-eng         : 143
      DURATION-eng    : 00:23:38.250000000
      NUMBER_OF_FRAMES-eng: 424
      NUMBER_OF_BYTES-eng: 25432
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(spa): Subtitle: ass
    Metadata:
      BPS-eng         : 121
      DURATION-eng    : 00:23:37.830000000
      NUMBER_OF_FRAMES-eng: 386
      NUMBER_OF_BYTES-eng: 21486
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(por): Subtitle: ass
    Metadata:
      BPS-eng         : 119
      DURATION-eng    : 00:23:37.830000000
      NUMBER_OF_FRAMES-eng: 388
      NUMBER_OF_BYTES-eng: 21103
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-02-20 12:15:45
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5: Attachment: ttf
    Metadata:
      filename        : OpenSans-ExtraBold.ttf
      mimetype        : application/x-truetype-font
  Stream #0:6: Attachment: ttf
    Metadata:
      filename        : OpenSans-Italic.ttf
      mimetype        : application/x-truetype-font
  Stream #0:7: Attachment: ttf
    Metadata:
      filename        : OpenSans-Light.ttf
      mimetype        : application/x-truetype-font
  Stream #0:8: Attachment: ttf
    Metadata:
      filename        : OpenSans-Regular.ttf
      mimetype        : application/x-truetype-font
  Stream #0:9: Attachment: ttf
    Metadata:
      filename        : OpenSans-Semibold.ttf
      mimetype        : application/x-truetype-font
  Stream #0:10: Attachment: ttf
    Metadata:
      filename        : MIAMA.OTF
      mimetype        : application/x-truetype-font


If you want something else or more specific, just give me the command & I will run it.
<<

atc98092

User avatar

DLNA master

Posts: 4389

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Apr 15, 2021 2:17 pm

Re: Servio Hang when streaming HEVC

OK, you used FFProbe, which I've never used before. I don't know if it's listing the info in exactly the same way as using the command ffmpeg -i [file name]. So I just tried both commands on one of my UHD rips. It does appear to be the same info, so we can go from there.

Looking at that data, I can see no reason for any of those files to play incorrectly. They have a basic bitrate of only 3 Mbps, which is extremely low. The UHD movie I tested has an average bitrate 75 Mbps. I have a handful of H.265 test clips, and they all seem to be around 45 Mbps, although they are all in 4K and yours are 1080p. Your audio is stereo AAC, which should also be no problem for any Roku player.

So, please check this for me. Start playback on one of the videos, then look at the Serviio console on the Status page. Find your Roku, and in the left column there should be a colored dot showing it's streaming. Tell me if the dot is green or more of an orange/yellow. This file should be playing without transcoding, but I want to be sure.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Thu Apr 15, 2021 3:12 pm

Re: Servio Hang when streaming HEVC

atc98092 wrote:So, please check this for me. Start playback on one of the videos, then look at the Serviio console on the Status page. Find your Roku, and in the left column there should be a colored dot showing it's streaming. Tell me if the dot is green or more of an orange/yellow. This file should be playing without transcoding, but I want to be sure.


No problem. At no time were the colors anything other than orange-ish. (Just FYI, the two unrecognized devices are my desktop, which is running servio, and my laptop)
Attachments
Servio Status Colors.png
Servio Status Colors.png (127.66 KiB) Viewed 419 times
<<

atc98092

User avatar

DLNA master

Posts: 4389

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Apr 15, 2021 4:47 pm

Re: Servio Hang when streaming HEVC

Mine is filled with unrecognized devices, not an issue. :D

Ok, that color indicates it's transcoding. Green would be playing direct. I wouldn't think it should be, so let me look at the profile more closely and I'll see if I can identify why it's doing so.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

atc98092

User avatar

DLNA master

Posts: 4389

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Fri Apr 16, 2021 1:50 am

Re: Servio Hang when streaming HEVC

OK, I've been through the Roku profiles, and I can't figure out what's triggering transcoding for your files. There's only one wildcard that transcodes all H.265, and it's in the "Roku 1080 Media Player (2016+)" and the "Roku TV (non 4K)" profile, neither of which you are using. Every other Matches line has an audio qualifier, which doesn't match your files.

What I'd like to ask takes a little time, but it might help identify what's going on. If you enable debug logging, I might be able to see exactly where in the profile it's getting caught. See the instructions in the link to turn debug logging on and off. You don't want to leave it on, as your log files get huge quickly. Once you've enabled it, stop the Serviio service (it can be stopped in the Windows Services app), delete your current log file (or rename it if you'd like to keep it), then start Serviio back up. Now, attempt to play one of the files that gives you a problem. Once the issue happens, go ahead and stop the Serviio service again. Now save the log file somewhere else, disable debug, and start Serviio again. Now post that log file as an attachment here, and also tell me the exact file name of the video you tried to play. Makes it faster to search the large log. :D

If the file is too large to attach, you can right click the file and select Send To... Compressed (zipped) Folder. This will shrink a plain text file like the log drastically, and should make it small enough to attach here.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Fri Apr 16, 2021 4:18 am

Re: Servio Hang when streaming HEVC

atc98092 wrote:OK, I've been through the Roku profiles, and I can't figure out what's triggering transcoding for your files. There's only one wildcard that transcodes all H.265, and it's in the "Roku 1080 Media Player (2016+)" and the "Roku TV (non 4K)" profile, neither of which you are using. Every other Matches line has an audio qualifier, which doesn't match your files.

What I'd like to ask takes a little time, but it might help identify what's going on. If you enable debug logging, I might be able to see exactly where in the profile it's getting caught. See the instructions in the link to turn debug logging on and off. You don't want to leave it on, as your log files get huge quickly. Once you've enabled it, stop the Serviio service (it can be stopped in the Windows Services app), delete your current log file (or rename it if you'd like to keep it), then start Serviio back up. Now, attempt to play one of the files that gives you a problem. Once the issue happens, go ahead and stop the Serviio service again. Now save the log file somewhere else, disable debug, and start Serviio again. Now post that log file as an attachment here, and also tell me the exact file name of the video you tried to play. Makes it faster to search the large log. :D

If the file is too large to attach, you can right click the file and select Send To... Compressed (zipped) Folder. This will shrink a plain text file like the log drastically, and should make it small enough to attach here.


I wasn't sure which one you needed, so I zipped them all. It looks like I will need to make two posts. All the logs came to 700K
Attachments
log (batch 1).zip
Log files derb, Serviio, & serviio1
(408.77 KiB) Downloaded 17 times
<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Fri Apr 16, 2021 4:19 am

Re: Servio Hang when streaming HEVC

Batch 2
Attachments
log (batch 2).zip
servio 2 & serviio 3
(370.25 KiB) Downloaded 21 times
<<

atc98092

User avatar

DLNA master

Posts: 4389

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Apr 18, 2021 4:57 am

Re: Servio Hang when streaming HEVC

Sorry, I'm on-call for work this weekend and my phone won't shut up. :P

Can you tell me the name of the file you tried to play? Each file has 10s of thousands of lines to go though.

I did notice one peculiarity: your Roku is reporting itself as a 4400X, which is the Roku 4, not a Stick. And I don't believe the Roku 4 supports MPEG-2. I gave my Roku 4 to my granddaughter, so I can't check that myself quickly. But the 4400 does support H.265, as it is 4K compatible. But it doesn't support HDR.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Sun Apr 18, 2021 7:22 am

Re: Servio Hang when streaming HEVC

atc98092 wrote:Sorry, I'm on-call for work this weekend and my phone won't shut up. :P

Can you tell me the name of the file you tried to play? Each file has 10s of thousands of lines to go though.

I did notice one peculiarity: your Roku is reporting itself as a 4400X, which is the Roku 4, not a Stick. And I don't believe the Roku 4 supports MPEG-2. I gave my Roku 4 to my granddaughter, so I can't check that myself quickly. But the 4400 does support H.265, as it is 4K compatible. But it doesn't support HDR.


Not a problem. I am working this weekend as well.

It is "Horimiya" episode 1. I only streamed one file after deleting the logs. I can get the exact file name if needed, but it contains that text string.

As for the Roku. The packaging indicates it is a Roku Streaming Stick+. I bought it within the last year (around July, I think).

I am attaching a picture of what Roku My Linked Devices is saying:
Attachments
Roku Profile Linked Devices.png
from Roku.com
Roku Profile Linked Devices.png (33.69 KiB) Viewed 402 times
<<

atc98092

User avatar

DLNA master

Posts: 4389

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Mon Apr 19, 2021 5:55 pm

Re: Servio Hang when streaming HEVC

OK, I think I found the reason it's being transcoded. I found a line in the log that states it's using the GenericTranscoding section, and the reason is "hard subs detected". Do you have "Enable burned-in subtitles" enabled in your Serviio console under Delivery/Subtitles? That forces transcoding for everything, as that's the only way it can burn in subs. And since you're asking your computer to convert H.265 to H.264, it's likely your computer can't keeps up, so it hangs.

Roku devices can only display captions that are text based. This includes EIA-608/708 captions from OTA TV broadcasts, or from external caption files. It appears your captions are internal to the file, in ASS format. I did a quick search, and unless the post I read was out of date, FFMPEG (which is what Serviio uses to transcode media) does not support embedded ASS captions. They can be added to the stream if they are in an external .ASS file, but not embedded as yours are.

If you want the captions to always be visible, you could use Handbrake to burn the captions into the video. That way you can retain H.265 as the video codec and see the video with captions on your Roku without a problem. The downside for that is that it's time consuming (although it only has to be done once) and you can't toggle the captions off if not desired. But it appears there's no current way to burn in ASS captions on the fly with Serviio, and likely any other DLNA server.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Mon Apr 19, 2021 7:34 pm

Re: Servio Hang when streaming HEVC

atc98092 wrote:OK, I think I found the reason it's being transcoded. I found a line in the log that states it's using the GenericTranscoding section, and the reason is "hard subs detected". Do you have "Enable burned-in subtitles" enabled in your Serviio console under Delivery/Subtitles? That forces transcoding for everything, as that's the only way it can burn in subs. And since you're asking your computer to convert H.265 to H.264, it's likely your computer can't keeps up, so it hangs.

Roku devices can only display captions that are text based. This includes EIA-608/708 captions from OTA TV broadcasts, or from external caption files. It appears your captions are internal to the file, in ASS format. I did a quick search, and unless the post I read was out of date, FFMPEG (which is what Serviio uses to transcode media) does not support embedded ASS captions. They can be added to the stream if they are in an external .ASS file, but not embedded as yours are.

If you want the captions to always be visible, you could use Handbrake to burn the captions into the video. That way you can retain H.265 as the video codec and see the video with captions on your Roku without a problem. The downside for that is that it's time consuming (although it only has to be done once) and you can't toggle the captions off if not desired. But it appears there's no current way to burn in ASS captions on the fly with Serviio, and likely any other DLNA server.


First, yes, I did have the option to burn the subs turned on. Turning it off allows it to play, but tyhe subtitles look like Closed Captioning now. UMS, which is also using FFmpeg, displays them in the same way as I got when I had the Burned option on. Also, there are some extraneous formatting codes appearing "{/AN8}" (I think it was).

Is there some way to get this "subtitle-y" look or are we constrained to the closed caption look?

I included some pictures of the output because I suspect my description wasn't that clear. Since the file is too big, I am linking it from imgbb
Image
<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Mon Apr 19, 2021 7:35 pm

Re: Servio Hang when streaming HEVC

PS. Thank you.
<<

atc98092

User avatar

DLNA master

Posts: 4389

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Mon Apr 19, 2021 8:13 pm

Re: Servio Hang when streaming HEVC

The way it "looks" is controlled by the player, not Serviio. When it was burned in, then Serviio had control. So you're most likely stuck with the way it looks, unless you can find some settings in your player to change the appearance. Roku does have some caption controls, but I'm not certain if it can make it look the way you'd prefer. If you're using RMP as your player, your caption settings are under the main Roku Settings menu, not within RMP itself.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 8 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Nexist418

Serviio newbie

Posts: 12

Joined: Mon Mar 29, 2021 12:09 am

Post Mon Apr 19, 2021 8:19 pm

Re: Servio Hang when streaming HEVC

atc98092 wrote:The way it "looks" is controlled by the player, not Serviio. When it was burned in, then Serviio had control. So you're most likely stuck with the way it looks, unless you can find some settings in your player to change the appearance. Roku does have some caption controls, but I'm not certain if it can make it look the way you'd prefer. If you're using RMP as your player, your caption settings are under the main Roku Settings menu, not within RMP itself.


Ah, so I suppose that UMS is merging the subtitles as I had Serviio doing when I had the hang?

I mean, CC style is tolerable (UMS has different issues and no support) so I can make do. I just find it odd that both are using FFmpeg, but one includes the styles (without hanging) and one does not.
Next

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 47 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.