Jump to content

Video playback error


WonkoTheSane
Go to solution Solved by Angelblue05,

Recommended Posts

WonkoTheSane

Hi all,

 

I'm running Kodi 17.3 on a Raspberry Pi 3 Model B. I have an issue playing a number of files and I cannot figure out

what exactly is causing this. Here is the (hopefully) relevant snippet from my log file:

 

 

54:40.182 T:1745875888   DEBUG: -->Python Interpreter Initialized<--

18:54:40.182 T:1745875888   DEBUG: CPythonInvoker(4, /home/pi/.kodi/addons/plugin.video.emby.tvshows/default.py): the source file to load is "/home/pi/.kodi/addons/plugin.video.emby.tvshows/default.py"
18:54:40.183 T:1745875888   DEBUG: CPythonInvoker(4, /home/pi/.kodi/addons/plugin.video.emby.tvshows/default.py): setting the Python path to /home/pi/.kodi/addons/plugin.video.emby.tvshows:/home/pi/.kodi/addons/script.module.requests/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0
18:54:40.183 T:1745875888   DEBUG: CPythonInvoker(4, /home/pi/.kodi/addons/plugin.video.emby.tvshows/default.py): entering source directory /home/pi/.kodi/addons/plugin.video.emby.tvshows
18:54:40.183 T:1745875888   DEBUG: CPythonInvoker(4, /home/pi/.kodi/addons/plugin.video.emby.tvshows/default.py): instantiating addon using automatically obtained id of "plugin.video.emby.tvshows" dependent on version 2.19.0 of the xbmc.python api
18:54:42.077 T:1745875888  NOTICE: EMBY.default_tvshows -> Parameter string: ?dbid=7129&mode=play&id=a2ee17f2cadcad35cf8694770f9bda97&filename=Game+of+Thrones+-+S01E01+-+Winter+Is+Coming.mp4
18:54:42.077 T:1745875888  NOTICE: EMBY.downloadutils -> DEBUG:: ===== ENTER downloadUrl =====
18:54:42.084 T:1745875888  NOTICE: EMBY.downloadutils -> DEBUG:: {'headers': {'X-MediaBrowser-Token': u'715d7e879c0847e0a9e47260912376be', 'Content-type': 'application/json', 'Accept-encoding': 'gzip', 'Authorization': 'MediaBrowser UserId="d05cb0b141214ff8a53560248c83eafb", Client="Kodi", Device="Kodi (retropie)", DeviceId="8638CF26DC3F406E8E8563EF5773F4AB", Version="2.3.52"', 'Accept-Charset': 'UTF-8,*'}, 'json': None, 'params': None, 'timeout': 30, 'url': u'xxxxx?format=json', 'verify': False}
18:54:42.167 T:1479902128  NOTICE: EMBY.websocket_client -> Message: {"MessageType":"UserUpdated","Data":{"Name":"xxxxx","ServerId":"xxxx","Id":"d05cb0b141214ff8a53560248c83eafb","HasPassword":true,"HasConfiguredPassword":true,"HasConfiguredEasyPassword":false,"LastLoginDate":"2017-09-24T16:41:40.4600000Z","LastActivityDate":"2017-09-26T16:54:42.1405520Z","Configuration":{"PlayDefaultAudioTrack":true,"DisplayMissingEpisodes":false,"GroupedFolders":[],"SubtitleMode":"Default","DisplayCollectionsView":false,"EnableLocalPassword":false,"OrderedViews":[],"LatestItemsExcludes":[],"HidePlayedInLatest":true,"RememberAudioSelections":true,"RememberSubtitleSelections":true,"EnableNextEpisodeAutoPlay":true},"Policy":{"IsAdministrator":false,"IsHidden":true,"IsDisabled":false,"BlockedTags":[],"EnableUserPreferenceAccess":true,"AccessSchedules":[],"BlockUnratedItems":[],"EnableRemoteControlOfOtherUsers":false,"EnableSharedDeviceControl":false,"EnableLiveTvManagement":false,"EnableLiveTvAccess":false,"EnableMediaPlayback":true,"EnableAudioPlaybackTranscoding":true,"EnableVideoPlaybackTranscoding":true,"EnablePlaybackRemuxing":true,"EnableContentDeletion":false,"EnableContentDownloading":true,"EnableSyncTranscoding":true,"EnabledDevices":[],"EnableAllDevices":true,"EnabledChannels":[],"EnableAllChannels":false,"EnabledFolders":["f137a2dd21bbc1b99aa5c0f6bf02a805","4514ec850e5ad0c47b58444e17b6346c"],"EnableAllFolders":false,"InvalidLoginAttemptCount":0,"EnablePublicSharing":false,"RemoteClientBitrateLimit":0}}}
18:54:42.175 T:1745875888  NOTICE: EMBY.downloadutils -> DEBUG:: ====== 200 Success ======
18:54:42.177 T:1745875888  NOTICE: EMBY.downloadutils -> DEBUG:: Response: {u'Genres': [], u'MediaStreams': [{u'Profile': u'LC', u'IsInterlaced': False, u'DisplayTitle': u'Eng AAC stereo Default', u'CodecTag': u'mp4a', u'Language': u'eng', u'Index': 0, u'Type': u'Audio', u'IsForced': False, u'Level': 0, u'Channels': 2, u'Codec': u'aac', u'ChannelLayout': u'stereo', u'SupportsExternalStream': False, u'CodecTimeBase': u'1/48000', u'IsAnamorphic': False, u'TimeBase': u'1/48000', u'SampleRate': 48000, u'BitRate': 64514, u'IsTextSubtitleStream': False, u'IsDefault': True, u'IsExternal': False}, {u'IsInterlaced': False, u'Index': 1, u'AverageFrameRate': 23.9760246, u'Width': 1280, u'Codec': u'h264', u'IsForced': False, u'AspectRatio': u'16:9', u'Type': u'Video', u'IsTextSubtitleStream': False, u'Profile': u'High', u'TimeBase': u'1/24000', u'Language': u'und', u'NalLengthSize': u'4', u'CodecTimeBase': u'1001/48000', u'RealFrameRate': 23.9760246, u'CodecTag': u'avc1', u'Level': 41, u'RefFrames': 1, u'BitDepth': 8, u'BitRate': 965941, u'IsDefault': True, u'IsAnamorphic': False, u'SupportsExternalStream': False, u'Height': 720, u'IsAVC': True, u'PixelFormat': u'yuv420p', u'IsExternal': False}], u'Container': u'mov,mp4,m4a,3gp,3g2,mj2', u'CanDelete': False, u'SeriesPrimaryImageTag': u'ccc99809425a704d5773e6e813fd5e33', u'SeasonName': u'Season 1', u'LocalTrailerCount': 0, u'CanDownload': True, u'ExternalUrls': [{u'Url': u'http://www.imdb.com/title/tt1480055'u'Name': u'IMDb'}, {u'Url': u'https://thetvdb.com/index.php?tab=episode&id=3254641' u'Name': u'TheTVDB'}], u'IsHD': True, u'Etag': u'aa69c94ea078e03ddc9f0785910670ca', u'ScreenshotImageTags': [], u'RemoteTrailers': [], u'ParentBackdropImageTags': [u'daa951f19938e90bbbb7174abc5b2591'], u'ServerId': u'a9d2243c8e6040199bf389aca7354d24', u'Type': u'Episode', u'ParentIndexNumber': 1, u'SortName': u'001 - 0001 - Winter Is Coming', u'SeriesId': u'46fa9c71e0369b37b6357fd660340821', u'VideoType': u'VideoFile', u'PlayAccess': u'Full', u'Tags': [], u'IsFolder': False, u'LockedFields': [], u'ParentLogoImageTag': u'2dc5d640bab55288674c223fb226f02b', u'ProviderIds': {u'Tvdb': u'3254641', u'Imdb': u'tt1480055'}, u'PremiereDate': u'2011-04-16T22:00:00.0000000Z', u'ProductionYear': 2011, u'DisplayPreferencesId': u'26dd4a82b00c839c498471cdba80a99c', u'Path': u'\\\\lochnas\\tv\\Game of Thrones\\Season 1\\Game of Thrones - S01E01 - Winter Is Coming.mp4', u'LocationType': u'FileSystem', u'BackdropImageTags': [], u'SeasonId': u'ce2dae18f8917c3ea51bc911c232e237', u'Name': u'Winter Is Coming', u'SeriesStudio': u'HBO', u'ParentLogoItemId': u'46fa9c71e0369b37b6357fd660340821', u'MediaType': u'Video', u'LockData': False, u'SeriesName': u'Game of Thrones', u'DvdSeasonNumber': 1, u'ParentId': u'ce2dae18f8917c3ea51bc911c232e237', u'PrimaryImageAspectRatio': 1.77777777777778, u'GenreItems': [], u'MediaSources': [{u'SupportsDirectStream': True, u'Container': u'mp4', u'RequiresClosing': False, u'IgnoreDts': False, u'IgnoreIndex': False, u'DefaultAudioStreamIndex': 0, u'SupportsDirectPlay': True, u'MediaStreams': [{u'Profile': u'LC', u'IsInterlaced': False, u'DisplayTitle': u'Eng AAC stereo Default', u'CodecTag': u'mp4a', u'Language': u'eng', u'Index': 0, u'Type': u'Audio', u'IsForced': False, u'Level': 0, u'Channels': 2, u'Codec': u'aac', u'ChannelLayout': u'stereo', u'SupportsExternalStream': False, u'CodecTimeBase': u'1/48000', u'IsAnamorphic': False, u'TimeBase': u'1/48000', u'SampleRate': 48000, u'BitRate': 64514, u'IsTextSubtitleStream': False, u'IsDefault': True, u'IsExternal': False}, {u'IsInterlaced': False, u'Index': 1, u'AverageFrameRate': 23.9760246, u'Width': 1280, u'Codec': u'h264', u'IsForced': False, u'AspectRatio': u'16:9', u'Type': u'Video', u'IsTextSubtitleStream': False, u'Profile': u'High', u'TimeBase': u'1/24000', u'Language': u'und', u'NalLengthSize': u'4', u'CodecTimeBase': u'1001/48000', u'RealFrameRate': 23.9760246, u'CodecTag': u'avc1', u'Level': 41, u'RefFrames': 1, u'BitDepth': 8, u'BitRate': 965941, u'IsDefault': True, u'IsAnamorphic': False, u'SupportsExternalStream': False, u'Height': 720, u'IsAVC': True, u'PixelFormat': u'yuv420p', u'IsExternal': False}], u'Type': u'Default', u'ReadAtNativeFramerate': False, u'RequiresLooping': False, u'Path': u'\\\\lochnas\\tv\\Game of Thrones\\Season 1\\Game of Thrones - S01E01 - Winter Is Coming.mp4', u'RequiresOpening': False, u'Bitrate': 1034580, u'IsRemote': False, u'Name': u'720P/H264/AAC', u'RequiredHttpHeaders': {}, u'SupportsTranscoding': True, u'Formats': [], u'Protocol': u'File', u'IsInfiniteStream': False, u'GenPtsInput': False, u'VideoType': u'VideoFile', u'ETag': u'9922152af2214139a63e28e2feaea475', u'EnableMpDecimate': False, u'RunTimeTicks': 36920410112L, u'SupportsProbing': True, u'Id': u'a2ee17f2cadcad35cf8694770f9bda97'}], u'CommunityRating': 7.8, u'AbsoluteEpisodeNumber': 1, u'UserData': {u'PlayCount': 0, u'Key': u'121361001001', u'PlaybackPositionTicks': 0, u'IsFavorite': False, u'Played': False}, u'Studios': [], u'IndexNumber': 1, u'DvdEpisodeNumber': 1, u'Taglines': [], u'Overview': u'Ned Stark, Lord of Winterfell learns that his mentor, Jon Arryn, has died and that King Robert is on his way north to offer Ned Arryn\u2019s position as the King\u2019s Hand. Across the Narrow Sea in Pentos, Viserys Targaryen plans to wed his sister Daenerys to the nomadic Dothraki warrior leader, Khal Drogo to forge an alliance to take the throne.', u'ParentThumbImageTag': u'acc06c8438029470302f2b263f64ab87', u'People': [{u'PrimaryImageTag': u'645ec7f05b288556fb7359a21c9a7d16', u'Type': u'GuestStar', u'Name': u'Donald Sumpter', u'Id': u'da47c5a331a234f526bccd830644f262'}, {u'PrimaryImageTag': u'a5465473a05f70b937d09d950ed18be5', u'Type': u'GuestStar', u'Name': u'Jamie Sives', u'Id': u'f3395b31bfcf559bc8500297b013ec7d'}, {u'PrimaryImageTag': u'b4500940cc1a3b00eebe6e5cb61eaa3a', u'Type': u'GuestStar', u'Name': u'Ron Donachie', u'Id': u'b34875392d28affde3eda63e5e14d71c'}, {u'PrimaryImageTag': u'fca90a1f3522760ae42447c11f867a6d', u'Type': u'GuestStar', u'Name': u'Joseph Mawle', u'Id': u'e37e34ce4f715757a0fb69d5327281ee'}, {u'PrimaryImageTag': u'dfe216b1fec76d118221e04d363139f7', u'Type': u'GuestStar', u'Name': u'Roger Allam', u'Id': u'1769490789f5b143c651f61a296b27b8'}, {u'Type': u'GuestStar', u'Name': u'Dar Salim', u'Id': u'1366de4f91eb125309c97b75085f7a5f'}, {u'PrimaryImageTag': u'dd9a263e64c2f967a389965e2391c742', u'Type': u'GuestStar', u'Name': u'Esm\xe9 Bianco', u'Id': u'88be0076c1ba17beabbb0d0de170c7d7'}, {u'Type': u'GuestStar', u'Name': u'Susan Brown', u'Id': u'cbaff2cc40154516f6bdcab3261083df'}, {u'Type': u'GuestStar', u'Name': u'Bronson Webb', u'Id': u'02b3a376103adb4aaac146d9fe2e76ce'}, {u'PrimaryImageTag': u'd7026a21e534c74440edd228fcb65e08', u'Type': u'GuestStar', u'Name': u'John Standing', u'Id': u'985288cea01dda1db3fc72df192d9470'}, {u'Type': u'GuestStar', u'Name': u'Rob Ostlere', u'Id': u'78d11697261e560950642ce3253a1c0b'}, {u'Type': u'GuestStar', u'Name': u'Dermot Keaney', u'Id': u'c75dcf7a1abd3794e7bd3e9b12aebe30'}, {u'PrimaryImageTag': u'62f553647b4ae6f4e9d1271febd80f34', u'Type': u'GuestStar', u'Name': u'Art Parkinson', u'Id': u'0c98d915b334f432496ba44236d88adf'}, {u'Type': u'GuestStar', u'Name': u'Callum Wharry', u'Id': u'9d8399d660ef9500e668b40a21237b41'}, {u'PrimaryImageTag': u'81b003204d7084dfe0e7c43744468885', u'Type': u'GuestStar', u'Name': u'Aimee Richardson', u'Id': u'9e5767767852974489ad1014c8918844'}, {u'PrimaryImageTag': u'4e74cc12de6a531fdc068f22da916731', u'Type': u'GuestStar', u'Name': u'Kristian Nairn', u'Id': u'46557357e18c74574f0ab8990e07b0ee'}, {u'Type': u'GuestStar', u'Name': u'Rania Zouari', u'Id': u'5e5f53b85e765b1213abfd8924ac1bb4'}, {u'PrimaryImageTag': u'58e5796fee2966a009202092aaf50321', u'Type': u'GuestStar', u'Name': u'Ian Whyte', u'Id': u'a5089cca502ee5ab9b39792d1bb5bba8'}, {u'PrimaryImageTag': u'a78f4567bceb6736d214f68692519188', u'Type': u'GuestStar', u'Name': u'Spencer Wilding', u'Id': u'38b07289b7d3f792df46f1efc15e15c1'}, {u'Type': u'Director', u'Name': u'Tim Van Patten', u'Id': u'7208d5d78ee50a1b9336310881ffc8cb'}], u'Chapters': [{u'Name': u'Chapter 1', u'StartPositionTicks': 0}, {u'Name': u'Chapter 2', u'StartPositionTicks': 3000000000L}, {u'Name': u'Chapter 3', u'StartPositionTicks': 6000000000L}, {u'Name': u'Chapter 4', u'StartPositionTicks': 9000000000L}, {u'Name': u'Chapter 5', u'StartPositionTicks': 12000000000L}, {u'Name': u'Chapter 6', u'StartPositionTicks': 15000000000L}, {u'Name': u'Chapter 7', u'StartPositionTicks': 18000000000L}, {u'Name': u'Chapter 8', u'StartPositionTicks': 21000000000L}, {u'Name': u'Chapter 9', u'StartPositionTicks': 24000000000L}, {u'Name': u'Chapter 10', u'StartPositionTicks': 27000000000L}, {u'Name': u'Chapter 11', u'StartPositionTicks': 30000000000L}, {u'Name': u'Chapter 12', u'StartPositionTicks': 33000000000L}, {u'Name': u'Chapter 13', u'StartPositionTicks': 36000000000L}], u'DateCreated': u'2017-03-19T09:22:31.3779450Z', u'ParentBackdropItemId': u'46fa9c71e0369b37b6357fd660340821', u'ImageTags': {u'Primary': u'45bc41737ee516f04a489fa54733c3ce'}, u'RunTimeTicks': 36920410112L, u'ParentThumbItemId': u'46fa9c71e0369b37b6357fd660340821', u'SupportsSync': True, u'Id': u'a2ee17f2cadcad35cf8694770f9bda97'}
18:54:42.188 T:1745875888  NOTICE: EMBY.artwork -> DEBUG:: image cache thread count: 25
18:54:42.191 T:1745875888  NOTICE: EMBY.playbackutils -> Play called.
18:54:42.198 T:1745875888  NOTICE: EMBY.playutils -> Can't direct play, play from HTTP enabled.
18:54:42.214 T:1745875888  NOTICE: EMBY.playutils -> The add-on settings bitrate is: 9200000, the video bitrate required is: 1034580
18:54:42.231 T:1745875888   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('Width',)
                                            Traceback (most recent call last):
                                              File "/home/pi/.kodi/addons/plugin.video.emby.tvshows/default.py", line 50, in <module>
                                                entrypoint.doPlayback(itemid, dbid)
                                              File "/home/pi/.kodi/addons/plugin.video.emby/resources/lib/entrypoint.py", line 46, in doPlayback
                                                pbutils.PlaybackUtils(item).play(itemId, dbId)
                                              File "/home/pi/.kodi/addons/plugin.video.emby/resources/lib/playbackutils.py", line 57, in play
                                                playurl = playutils.getPlayUrl()
                                              File "/home/pi/.kodi/addons/plugin.video.emby/resources/lib/playutils.py", line 100, in getPlayUrl
                                                elif self.isDirectStream():
                                              File "/home/pi/.kodi/addons/plugin.video.emby/resources/lib/playutils.py", line 280, in isDirectStream
                                                if self.resolutionConflict():
                                              File "/home/pi/.kodi/addons/plugin.video.emby/resources/lib/playutils.py", line 682, in resolutionConflict
                                                videoRes = self.getVideoResolution()
                                              File "/home/pi/.kodi/addons/plugin.video.emby/resources/lib/playutils.py", line 693, in getVideoResolution
                                                return {'width' : self.item['MediaStreams'][0]['Width'],
                                            KeyError: ('Width',)
                                            -->End of Python script error report<--
18:54:42.302 T:1945432736   DEBUG: ------ Window Init (DialogNotification.xml) ------
18:54:42.303 T:1905259440    INFO: CActiveAESink::OpenSink - initialize sink
18:54:42.303 T:1905259440   DEBUG: CActiveAESink::OpenSink - trying to open device PI:HDMI
18:54:42.303 T:1905259440   DEBUG: CAESinkPi:Initialize Format:15 Channels:2 Samplerate:44100 framesize:8 bufsize:17640 bytes/s=352800.00 dest=PI:HDMI
18:54:42.304 T:1905259440   DEBUG: CAESinkPi:SetAudioProps hdmi_stream_channels 0 hdmi_channel_map 00000008
18:54:42.305 T:1905259440   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.audio_render input port 100 output port 100 m_handle 0x71abead8
18:54:42.307 T:1905259440   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.audio_render) - port(100), nBufferCountMin(1), nBufferCountActual(2), nBufferSize(17648), nBufferAlignmen(16)
18:54:42.307 T:1905259440   DEBUG: CActiveAESink::OpenSink - SinkPi Initialized:
18:54:42.307 T:1905259440   DEBUG:   Output Device : HDMI
18:54:42.307 T:1905259440   DEBUG:   Sample Rate   : 44100
18:54:42.307 T:1905259440   DEBUG:   Sample Format : AE_FMT_FLOAT
18:54:42.307 T:1905259440   DEBUG:   Channel Count : 2
18:54:42.307 T:1905259440   DEBUG:   Channel Layout: FL,FR
18:54:42.307 T:1905259440   DEBUG:   Frames        : 2205
18:54:42.308 T:1905259440   DEBUG:   Frame Size    : 8
18:54:42.347 T:1745875888 WARNING: CPythonInvoker(4, /home/pi/.kodi/addons/plugin.video.emby.tvshows/default.py): the python script "/home/pi/.kodi/addons/plugin.video.emby.tvshows/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
18:54:42.347 T:1745875888    INFO: Python script stopped
18:54:42.348 T:1745875888   DEBUG: Thread LanguageInvoker 1745875888 terminating
18:54:42.363 T:1359991728   DEBUG: Thread scriptobs 1359991728 terminating
18:54:42.364 T:1945432736   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.emby.tvshows/46fa9c71e0369b37b6357fd660340821/?dbid=7129&mode=play&id=a2ee17f2cadcad35cf8694770f9bda97&filename=Game+of+Thrones+-+S01E01+-+Winter+Is+Coming.mp4]
18:54:42.364 T:1945432736   DEBUG: Playlist Player: no more playable items... aborting playback
 

 

 

Any help is appreciated.

 

 

 

 

Link to comment
Share on other sites

  • Solution
Angelblue05

Thank you, I see the issue. If you disable under emby for kodi settings > video playback > limit video resolution to screen resolution, you should be able to get it playing. I'll try to fix the settings soon. The problem is the content you try to play has no width or height detected in emby.

Edited by Angelblue05
  • Like 1
Link to comment
Share on other sites

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