plex-for-kodi icon indicating copy to clipboard operation
plex-for-kodi copied to clipboard

Plex refuses to transcode

Open rajil opened this issue 4 years ago • 2 comments

Description:

I have disabled direct play in settings but still Plex refuses to transcode

Details:

  • Add-on version:0.1.6
  • Kodi version:18.4
  • OS Platform:Linux

A screenshot of the settings is here. I tried to play a 1080p file and was hoping that Kodi/Plex would transcode, however it still played by direct play.

Log file:


020-02-14 10:55:22.221 T:140469747978688   ERROR: Control 1001 in window 13002 has been asked to focus, but it can't
^[[D
2020-02-14 10:55:40.846 T:140466636977920  NOTICE: script.plex: PrePlay: Showing video info: <plexnet.video.Movie object at 0x7fc14c6e7fd0>
2020-02-14 10:55:40.847 T:140466636977920  NOTICE: script.plex: API: GET https://xx-xx-xx-xx.98fb999d.plex.direct:32400/library/metadata/7410?X-Plex-Token=****
2020-02-14 10:55:42.084 T:140469747978688   ERROR: Control 1001 in window 13003 has been asked to focus, but it can't
2020-02-14 10:55:44.274 T:140466636977920  NOTICE: script.plex: VideoPlayerWindow: Starting session (ID: 140468187689520)
2020-02-14 10:55:44.275 T:140466636977920  NOTICE: script.plex: API: Choice media: 1080p, 2.9 Mbps container=mkv videoCodec=h264 audioCodec=eac3 audioChannels=6 id=16852 part:0
2020-02-14 10:55:44.275 T:140466636977920  NOTICE: script.plex: API: Choice videoStream: <plexnet.plexstream.PlexStream object at 0x7fc11149fc50>
2020-02-14 10:55:44.275 T:140466636977920  NOTICE: script.plex: API: Choice audioStream: <plexnet.plexstream.PlexStream object at 0x7fc11149f9d0>
2020-02-14 10:55:44.275 T:140466636977920  NOTICE: script.plex: API: Choice subtitleStream: <plexnet.plexstream.PlexStream object at 0x7fc11149f7d0>
2020-02-14 10:55:44.275 T:140466636977920  NOTICE: script.plex: API: MDE: MediaChoice: direct playable=True version=1080p, 2.9 Mbps container=mkv videoCodec=h264 audioCodec=eac3 audioChannels=6 id=16852
2020-02-14 10:55:44.275 T:140466636977920  NOTICE: script.plex: API: Forced Transcode; allowDirectStream=True
2020-02-14 10:55:44.275 T:140466636977920  NOTICE: script.plex: API: DEBUG: buildDirectPlay()
2020-02-14 10:55:44.275 T:140466636977920  NOTICE: script.plex: API: Constructed video item for playback: {'playStart': 0, 'frameRate': 24, 'duration': 7251488, 'streamBitrates': [2866], 'partIndex': 0, 'subtitleConfig': {'TrackName': 'mkv/3'}, 'streamQualities': ['SD'], 'fullHD': True, 'startOffset': 0, 'streamUrls': [u'https://xx-xx-xx-xx.98fb999d.plex.direct:32400/library/parts/16895/1580058700/file.mkv?X-Plex-Token=xx'], 'isRequestToServer': True, 'live': False, 'streamFormat': 'mkv', 'prevObj': None, 'token': 'blah', 'partDuration': 7251488, 'isTranscoded': False, 'audioLanguageSelected': u'hin'}
2020-02-14 10:55:44.275 T:140466636977920  NOTICE: script.plex: API: DEBUG: buildTranscode()
2020-02-14 10:55:44.275 T:140466636977920  NOTICE: script.plex: API: DEBUG: buildTranscodeMkv()
2020-02-14 10:55:44.276 T:140466636977920  NOTICE: script.plex: API:  ---TEST: TEST==========================
2020-02-14 10:55:44.276 T:140466636977920  NOTICE: script.plex: API:  ---TEST: /video/:/transcode/universal/decision?X-Plex-Token=blah&copyts=1&subtitles=burn&path=%2Flibrary%2Fmetadata%2F7410&offset=0&session=60e431e6-4a35-4dd5-b9ae-2bfd13fe90df&directStream=1&directPlay=0&videoQuality=100&videoResolution=1920x1080&maxVideoBitrate=200000&mediaIndex=0&partIndex=0&X-Plex-Client-Profile-Extra=append-transcode-target-audio-codec%28type%3DvideoProfile%26context%3Dstreaming%26audioCodec%3Dac3%29%2Badd-direct-play-profile%28type%3DvideoProfile%26container%3Dmatroska%26videoCodec%3D%2A%26audioCodec%3Dac3%29%2Bappend-transcode-target-audio-codec%28type%3DvideoProfile%26context%3Dstreaming%26audioCodec%3Deac3%29%2Badd-direct-play-profile%28type%3DvideoProfile%26container%3Dmatroska%26videoCodec%3D%2A%26audioCodec%3Deac3%29%2Bappend-transcode-target-audio-codec%28type%3DvideoProfile%26context%3Dstreaming%26audioCodec%3Ddca%29%2Badd-direct-play-profile%28type%3DvideoProfile%26container%3Dmatroska%26videoCodec%3D%2A%26audioCodec%3Ddca%29%2Badd-limitation%28scope%3DvideoAudioCodec%26scopeName%3Ddca%26type%3DupperBound%26name%3Daudio.channels%26value%3D6%26isRequired%3Dfalse%29%2Bappend-transcode-target-codec%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dvp9%29
2020-02-14 10:55:44.276 T:140466636977920  NOTICE: script.plex: API: Starting request: GET https://xx-xx-xx-xx.0cce97fd.plex.direct:32400/video/:/transcode/universal/decision?X-Plex-Token=****&copyts=1&path=%2Flibrary%2Fmetadata%2F7410&offset=0&session=60e431e6-4a35-4dd5-b9ae-2bfd13fe90df&directStream=1&directPlay=1&videoQuality=100&videoResolution=1920x1080&maxVideoBitrate=200000&mediaIndex=0&partIndex=0&X-Plex-Client-Profile-Extra=append-transcode-target-audio-codec%28type%3DvideoProfile%26context%3Dstreaming%26audioCodec%3Dac3%29%2Badd-direct-play-profile%28type%3DvideoProfile%26container%3Dmatroska%26videoCodec%3D%2A%26audioCodec%3Dac3%29%2Bappend-transcode-target-audio-codec%28type%3DvideoProfile%26context%3Dstreaming%26audioCodec%3Deac3%29%2Badd-direct-play-profile%28type%3DvideoProfile%26container%3Dmatroska%26videoCodec%3D%2A%26audioCodec%3Deac3%29%2Bappend-transcode-target-audio-codec%28type%3DvideoProfile%26context%3Dstreaming%26audioCodec%3Ddca%29%2Badd-direct-play-profile%28type%3DvideoProfile%26container%3Dmatroska%26videoCodec%3D%2A%26audioCodec%3Ddca%29%2Badd-limitation%28scope%3DvideoAudioCodec%26scopeName%3Ddca%26type%3DupperBound%26name%3Daudio.channels%26value%3D6%26isRequired%3Dfalse%29%2Bappend-transcode-target-codec%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dvp9%29&subtitles=sidecar&mediaBufferSize=20971&hasMDE=1&X-Plex-Platform=Chrome&X-Plex-Token=**** (async=False timeout=10)
2020-02-14 10:55:44.511 T:140466636977920  NOTICE: script.plex: API: Got a 400 from https://xx-xx-x-xx.fb999d.plex.direct:32400/video/:/transcode/universal/decision?X-Plex-Token=****&copyts=1&path=%2Flibrary%2Fmetadata%2F7410&offset=0&session=60e431e6-4a35-4dd5-b9ae-2bfd13fe90df&directStream=1&directPlay=1&videoQuality=100&videoResolution=1920x1080&maxVideoBitrate=200000&mediaIndex=0&partIndex=0&X-Plex-Client-Profile-Extra=append-transcode-target-audio-codec%28type%3DvideoProfile%26context%3Dstreaming%26audioCodec%3Dac3%29%2Badd-direct-play-profile%28type%3DvideoProfile%26container%3Dmatroska%26videoCodec%3D%2A%26audioCodec%3Dac3%29%2Bappend-transcode-target-audio-codec%28type%3DvideoProfile%26context%3Dstreaming%26audioCodec%3Deac3%29%2Badd-direct-play-profile%28type%3DvideoProfile%26container%3Dmatroska%26videoCodec%3D%2A%26audioCodec%3Deac3%29%2Bappend-transcode-target-audio-codec%28type%3DvideoProfile%26context%3Dstreaming%26audioCodec%3Ddca%29%2Badd-direct-play-profile%28type%3DvideoProfile%26container%3Dmatroska%26videoCodec%3D%2A%26audioCodec%3Ddca%29%2Badd-limitation%28scope%3DvideoAudioCodec%26scopeName%3Ddca%26type%3DupperBound%26name%3Daudio.channels%26value%3D6%26isRequired%3Dfalse%29%2Bappend-transcode-target-codec%28type%3DvideoProfile%26context%3Dstreaming%26videoCodec%3Dvp9%29&subtitles=sidecar&mediaBufferSize=20971&hasMDE=1&X-Plex-Platform=Chrome&X-Plex-Token=****
2020-02-14 10:55:44.511 T:140466636977920  NOTICE: script.plex: API: WARNING: MDE: Server failed to provide a decision
2020-02-14 10:55:44.511 T:140466636977920  NOTICE: script.plex: Playing URL(+0ms): https://xx-xx-xx-xx.98fb999d.plex.direct:32400/library/parts/16895/1580058700/file.mkv?X-Plex-Token=****
2020-02-14 10:55:44.857 T:140469747978688  NOTICE: VideoPlayer::OpenFile: https://xx-xx-xx-xx.98fb999d.plex.direct:32400/library/parts/16895/1580058700/file.mkv?X-Plex-Token=blah&X-Plex-Client-Identifier=60e431e6-4a35-4dd5-b9ae-2bfd13fe90df&X-Plex-Platform=Chrome
2020-02-14 10:55:44.894 T:140467129612032  NOTICE: script.plex: Monitoring pre-play...
2020-02-14 10:55:44.894 T:140467129612032  NOTICE: script.plex: Player - PRE-PLAY
2020-02-14 10:55:44.909 T:140467903653632  NOTICE: Creating InputStream
2020-02-14 10:55:45.014 T:140466636977920  NOTICE: script.plex: Player - STARTED
2020-02-14 10:55:45.014 T:140466636977920  NOTICE: script.plex: SeekHandler: onPlayBackStarted - mode=0
2020-02-14 10:55:45.075 T:140466595014400  NOTICE: script.plex: API: Starting request: GET https://xx-xx-xx-xx.98fb999d.plex.direct:32400/:/timeline?containerKey=/library/sections/3/all%3Fsort%3DviewUpdatedAt%3Adesc%26viewOffset%3E%3D300%26viewUpdatedAt%3E%3D1571981059&ratingKey=7410&state=playing&key=/library/metadata/7410&time=4230034&duration=7251488&guid=com.plexapp.agents.imdb%3A//tt4486148%3Flang%3Den&X-Plex-Token=**** (async=True timeout=10.0(10))
2020-02-14 10:55:45.313 T:140467903653632  NOTICE: Creating Demuxer
2020-02-14 10:55:45.720 T:140467903653632  NOTICE: Opening stream: 0 source: 256
2020-02-14 10:55:45.720 T:140467903653632  NOTICE: Creating video codec with codec id: 27
2020-02-14 10:55:45.720 T:140467903653632  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
2020-02-14 10:55:45.720 T:140467903653632  NOTICE: Creating video thread
2020-02-14 10:55:45.720 T:140466595014400  NOTICE: running thread: video_thread
2020-02-14 10:55:45.720 T:140467903653632  NOTICE: Opening stream: 1 source: 256
2020-02-14 10:55:45.720 T:140467903653632  NOTICE: Finding audio codec for: 86056
2020-02-14 10:55:45.720 T:140467903653632  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder eac3
2020-02-14 10:55:45.720 T:140467903653632  NOTICE: Creating audio thread
2020-02-14 10:55:45.720 T:140467903653632  NOTICE: Opening stream: 2 source: 256
2020-02-14 10:55:45.720 T:140466368542464  NOTICE: running thread: CVideoPlayerAudio::Process()
2020-02-14 10:55:45.722 T:140466330777344  NOTICE: COutput::OnStartup: Output Thread created
2020-02-14 10:55:45.734 T:140466368542464  NOTICE: Creating audio stream (codec id: 86056, channels: 6, sample rate: 48000, no pass-through)
2020-02-14 10:55:45.775 T:140467129612032  NOTICE: script.plex: Monitoring video...
2020-02-14 10:55:45.915 T:140469747978688  NOTICE: GL: Selecting YUV 2 RGB shader
2020-02-14 10:55:45.915 T:140469747978688  NOTICE: GL: NPOT texture support detected
2020-02-14 10:55:45.915 T:140469747978688  NOTICE: GL: Using GL_ARB_pixel_buffer_object
2020-02-14 10:55:45.915 T:140469747978688  NOTICE: Using GL_TEXTURE_2D
2020-02-14 10:55:45.985 T:140469747978688  NOTICE: GL: Selecting YUV 2 RGB shader
2020-02-14 10:55:45.985 T:140469747978688  NOTICE: GL: NPOT texture support detected
2020-02-14 10:55:45.985 T:140469747978688  NOTICE: GL: Using GL_ARB_pixel_buffer_object
2020-02-14 10:55:46.062 T:140467129612032  NOTICE: script.plex: Player: Video window opened
2020-02-14 10:55:46.204 T:140467129612032  NOTICE: script.plex: Enabling embedded subtitles at: 0
2020-02-14 10:55:46.204 T:140467129612032  NOTICE: script.plex: Kodi reported subtitles: ['eng']
2020-02-14 10:55:46.204 T:140467129612032  NOTICE: script.plex: Audio track is correct index: 0
2020-02-14 10:55:46.234 T:140467903653632  NOTICE: Closing stream player 3
2020-02-14 10:55:46.234 T:140467903653632  NOTICE: Opening stream: 2 source: 256
2020-02-14 10:55:46.444 T:140466595014400  NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 41636

rajil avatar Feb 14 '20 05:02 rajil