Jump to content

Low-Resolution HEVC files fail to play


andural

Recommended Posts

andural

Some of my lower-resolution hevc files are returning the following python error after failing to play: Error Contents: invalid literal for int() with base 10: 'SD/HEVC/AAC'

 

Emby-Server 3.2.13.0 on Arch Linux.

Emby-For-Kodi 2.3.47

Kodi 17.1 on Libreelec.

 

On screen error message notification reads: "Emby Error - check the log for more information"

 

I haven't checked every combo of SD HEVC files, but the error definitely occurs when I play a file with a resolution under 480p. I've tried it on multiple linux servers and multiple clients. The files play correctly in the web browser and the emby android app.

 

The relevant section of the log is:

                                 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: invalid literal for int() with base 10: 'SD/HEVC/AAC'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.video.emby.tvshows/default.py", line 50, in <module>
                                                entrypoint.doPlayback(itemid, dbid)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/entrypoint.py", line 46, in doPlayback
                                                pbutils.PlaybackUtils(item).play(itemId, dbId)
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/playbackutils.py", line 57, in play
                                                playurl = playutils.getPlayUrl()
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/playutils.py", line 98, in getPlayUrl
                                                elif self.isDirectStream():
                                              File "/storage/.kodi/addons/plugin.video.emby/resources/lib/playutils.py", line 241, in isDirectStream
                                                resolution = int(videotrack.split("P", 1)[0])
                                            ValueError: invalid literal for int() with base 10: 'SD/HEVC/AAC'
                                            -->End of Python script error report<--


Let me know what information you need about video files that are giving this error. I can clip some samples on request too. Here's the FFMPEG output of an episode:

Input #0, matroska,webm, from 'S01E02 Space Quest.mkv':
  Metadata:
    title           : 
    encoder         : Lavf55.12.0
  Duration: 00:22:35.71, start: 0.000000, bitrate: 396 kb/s
    Stream #0:0: Video: hevc (Main), yuv420p(tv, smpte170m/smpte170m/bt709), 512x400 [SAR 2125:2048 DAR 85:64], SAR 28:27 DAR 896:675, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Stream #0:1(und): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : Stereo
      LANGUAGE        : und

 

kodi.log

Link to comment
Share on other sites

andural

I did a little more detective work.

 

640x480 files fail.

Input #0, matroska,webm, from 'S04E03 Plan C Major Star.mkv':
  Metadata:
    title           :
    encoder         : Lavf55.12.0
  Duration: 00:29:07.59, start: 0.000000, bitrate: 443 kb/s
    Stream #0:0: Video: hevc (Main), yuv420p(tv, smpte170m/bt470bg/bt709), 640x480 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 1k tbn, 25 tbc (default)
    Stream #0:1(und): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : Stereo
      LANGUAGE        : und

720x480 play.

Input #0, matroska,webm, from 'S01E01 Premiere.mkv':
  Metadata:
    title           : 
    encoder         : Lavf55.12.0
  Duration: 00:50:09.61, start: 0.000000, bitrate: 480 kb/s
    Chapter #0:0: start 0.000000, end 476.642000
    Metadata:
      title           : Chapter 1
    Chapter #0:1: start 476.725000, end 1451.199000
    Metadata:
      title           : Chapter 2
    Chapter #0:2: start 1451.282000, end 2024.480000
    Metadata:
      title           : Chapter 3
    Chapter #0:3: start 2024.563000, end 2304.885000
    Metadata:
      title           : Chapter 4
    Chapter #0:4: start 2304.968000, end 2643.641000
    Metadata:
      title           : Chapter 5
    Chapter #0:5: start 2643.724000, end 3009.423000
    Metadata:
      title           : Chapter 6
    Stream #0:0: Video: hevc (Main), yuv420p(tv, smpte170m/smpte170m/bt709), 720x496 [SAR 161:180 DAR 161:124], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : Stereo
      LANGUAGE        : eng
    Stream #0:2(eng): Subtitle: ass

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...