jellyfin / jellyfin-mpv-shim

MPV Cast Client for Jellyfin
Other
1.66k stars 95 forks source link

Mpv shows a blue screen #96

Open AlexandreBonneau opened 4 years ago

AlexandreBonneau commented 4 years ago

Describe the bug When clicking a movie, mpv is correctly launched, but you can only hear the sound; the video is just shown as a static bright blue screen.

To Reproduce Steps to reproduce the behavior:

  1. Launch mpv shim
  2. Click on 'play' on any movie
  3. Mpv is launched, but its window stays blue

Expected behavior Mpv should show the video from the selected file, instead of the static blue screen

Screenshots

screen

Desktop (please complete the following information):

Error Messages The console log when :

» flatpak run com.github.iwalton3.jellyfin-mpv-shim
2020-08-01 08:43:02,868 [    INFO] conf: Loaded settings from json: /home/user/.var/app/com.github.iwalton3.jellyfin-mpv-shim/config/jellyfin-mpv-shim/conf.json
2020-08-01 08:43:03,102 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.client: JellyfinClient initializing...
2020-08-01 08:43:03,102 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.configuration: Begin http constructor.
2020-08-01 08:43:03,102 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.connection_manager: ConnectionManager initializing...
2020-08-01 08:43:03,102 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.credentials: Credentials initializing...
2020-08-01 08:43:03,102 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.configuration: Begin app constructor.
2020-08-01 08:43:03,102 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: Begin connect
2020-08-01 08:43:03,102 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: Begin getAvailableServers
2020-08-01 08:43:03,103 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.connection_manager: Sending UDP Data: b'who is JellyfinServer?'
2020-08-01 08:43:04,127 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: connect has 1 servers
2020-08-01 08:43:04,127 [    INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: begin connectToServer
2020-08-01 08:43:04,127 [    INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info/public
2020-08-01 08:43:04,128 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.api: 5
2020-08-01 08:43:04,128 [   DEBUG] JELLYFIN.jellyfin_apiclient_python.api: {'Accept': 'application/json', 'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 'X-Application': 'Jellyfin MPV Shim/1.5.11', 'Accept-Charset': 'UTF-8,*', 'Accept-encoding': 'gzip', 'User-Agent': 'Jellyfin-MPV-Shim/1.5.11', 'x-emby-authorization': 'MediaBrowser Client=Jellyfin MPV Shim, Device=Zeus, DeviceId=a7f86117-96ba-4452-814c-1291b90d3704, Version=1.5.11'}
2020-08-01 08:43:04,134 [   DEBUG] urllib3.connectionpool: Starting new HTTP connection (1): servloc:8096
2020-08-01 08:43:04,140 [   DEBUG] urllib3.connectionpool: http://servloc:8096 "GET /system/info/public HTTP/1.1" 200 None
2020-08-01 08:43:05,989 [    INFO] werkzeug: 127.0.0.1 - - [01/Aug/2020 08:43:05] "GET /serviceworker.js HTTP/1.1" 304 -
2020-08-01 08:43:16,482 [   DEBUG] event_handler: Handled Event Play: {'ItemIds': ['4a759cda-942c-1bb5-2bbf-ecec8afd97a1'], 'StartPositionTicks': None, 'PlayCommand': 'PlayNow', 'ControllingUserId': 'dd4c1095-b25e-4d86-8bed-0f1d9d6366f2', 'SubtitleStreamIndex': None, 'AudioStreamIndex': None, 'MediaSourceId': None, 'StartIndex': None, 'ServerId': '84106667358e4f2fa76378b7c75aab8c'}
2020-08-01 08:43:16,551 [   DEBUG] urllib3.connectionpool: http://servloc:8096 "GET /Users/dd4c1095b25e4d868bed0f1d9d6366f2/Items/4a759cda-942c-1bb5-2bbf-ecec8afd97a1 HTTP/1.1" 200 10807
2020-08-01 08:43:16,567 [   DEBUG] event_handler: EventHandler::playMedia <jellyfin_mpv_shim.media.Media object at 0x7fcdc4392a10>
2020-08-01 08:43:16,567 [   DEBUG] media: Bandwidth: local=True, bitrate=None, force=False
2020-08-01 08:43:16,600 [   DEBUG] urllib3.connectionpool: http://servloc:8096 "POST /Items/4a759cda-942c-1bb5-2bbf-ecec8afd97a1/PlaybackInfo HTTP/1.1" 200 959
2020-08-01 08:43:16,602 [   DEBUG] media: Using direct url.
2020-08-01 08:43:17,130 [    INFO] mpv: cplayer:  (+) Audio --aid=1 --alang=eng (*) 'Blender.Movie.x264' (aac 2ch 48000Hz)
2020-08-01 08:43:17,130 [    INFO] mpv: cplayer:  (+) Subs  --sid=1 --slang=eng (*) 'Blender.Movie.x264' (subrip)
2020-08-01 08:43:17,130 [    INFO] mpv: display-tags: File tags:
2020-08-01 08:43:17,130 [    INFO] mpv: display-tags:  Comment: Blender.Movie.x264
2020-08-01 08:43:17,131 [    INFO] mpv: display-tags:  Title: Blender.Movie.x264
2020-08-01 08:43:17,327 [    INFO] mpv: cplayer: AO: [pulse] 48000Hz stereo 2ch float
2020-08-01 08:43:17,328 [    INFO] mpv: cplayer: VO: [gpu] 1280x720 yuv420p
2020-08-01 08:43:17,343 [   ERROR] mpv: vo/gpu/opengl: fragment shader source:
2020-08-01 08:43:17,343 [   ERROR] mpv: vo/gpu/opengl: [  1] #version 440
2020-08-01 08:43:17,343 [   ERROR] mpv: vo/gpu/opengl: [  2] #define tex1D texture
2020-08-01 08:43:17,343 [   ERROR] mpv: vo/gpu/opengl: [  3] #define tex3D texture
2020-08-01 08:43:17,343 [   ERROR] mpv: vo/gpu/opengl: [  4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))
2020-08-01 08:43:17,344 [   ERROR] mpv: vo/gpu/opengl: [  5] out vec4 out_color;
2020-08-01 08:43:17,344 [   ERROR] mpv: vo/gpu/opengl: [  6] in vec2 texcoord0;
2020-08-01 08:43:17,344 [   ERROR] mpv: vo/gpu/opengl: [  7] in vec2 texcoord1;
2020-08-01 08:43:17,344 [   ERROR] mpv: vo/gpu/opengl: [  8] in vec2 texcoord2;
2020-08-01 08:43:17,344 [   ERROR] mpv: vo/gpu/opengl: [  9] layout(std140, binding=0) uniform UBO {
2020-08-01 08:43:17,344 [   ERROR] mpv: vo/gpu/opengl: [ 10] layout(offset=0) mat3 colormatrix;
2020-08-01 08:43:17,344 [   ERROR] mpv: vo/gpu/opengl: [ 11] layout(offset=48) vec3 colormatrix_c;
2020-08-01 08:43:17,344 [   ERROR] mpv: vo/gpu/opengl: [ 12] layout(offset=64) vec3 src_luma;
2020-08-01 08:43:17,344 [   ERROR] mpv: vo/gpu/opengl: [ 13] layout(offset=80) vec3 dst_luma;
2020-08-01 08:43:17,345 [   ERROR] mpv: vo/gpu/opengl: [ 14] layout(offset=96) vec2 texture_size0;
2020-08-01 08:43:17,345 [   ERROR] mpv: vo/gpu/opengl: [ 15] layout(offset=112) mat2 texture_rot0;
2020-08-01 08:43:17,345 [   ERROR] mpv: vo/gpu/opengl: [ 17] layout(offset=152) vec2 pixel_size0;
2020-08-01 08:43:17,345 [   ERROR] mpv: vo/gpu/opengl: [ 18] layout(offset=160) vec2 texture_size1;
2020-08-01 08:43:17,345 [   ERROR] mpv: vo/gpu/opengl: [ 19] layout(offset=176) mat2 texture_rot1;
2020-08-01 08:43:17,345 [   ERROR] mpv: vo/gpu/opengl: [ 20] layout(offset=208) vec2 texture_off1;
2020-08-01 08:43:17,345 [   ERROR] mpv: vo/gpu/opengl: [ 21] layout(offset=216) vec2 pixel_size1;
2020-08-01 08:43:17,345 [   ERROR] mpv: vo/gpu/opengl: [ 22] layout(offset=224) vec2 texture_size2;
2020-08-01 08:43:17,346 [   ERROR] mpv: vo/gpu/opengl: [ 24] layout(offset=272) vec2 texture_off2;
2020-08-01 08:43:17,346 [   ERROR] mpv: vo/gpu/opengl: [ 25] layout(offset=280) vec2 pixel_size2;
2020-08-01 08:43:17,346 [   ERROR] mpv: vo/gpu/opengl: [ 26] };
2020-08-01 08:43:17,346 [   ERROR] mpv: vo/gpu/opengl: [ 27] uniform sampler2D texture0;
2020-08-01 08:43:17,346 [   ERROR] mpv: vo/gpu/opengl: [ 28] uniform sampler2D texture1;
2020-08-01 08:43:17,346 [   ERROR] mpv: vo/gpu/opengl: [ 29] uniform sampler2D texture2;
2020-08-01 08:43:17,346 [   ERROR] mpv: vo/gpu/opengl: [ 30] void main() {
2020-08-01 08:43:17,347 [   ERROR] mpv: vo/gpu/opengl: [ 31] vec4 color = vec4(0.0, 0.0, 0.0, 1.0);
2020-08-01 08:43:17,347 [   ERROR] mpv: vo/gpu/opengl: [ 32] color.r = 1,000000 * vec4(texture(texture0, texcoord0)).r;
2020-08-01 08:43:17,347 [   ERROR] mpv: vo/gpu/opengl: [ 33] color.g = 1,000000 * vec4(texture(texture1, texcoord1)).r;
2020-08-01 08:43:17,347 [   ERROR] mpv: vo/gpu/opengl: [ 34] color.b = 1,000000 * vec4(texture(texture2, texcoord2)).r;
2020-08-01 08:43:17,347 [   ERROR] mpv: vo/gpu/opengl: [ 36] color.rgb = mat3(colormatrix) * color.rgb + colormatrix_c;
2020-08-01 08:43:17,347 [   ERROR] mpv: vo/gpu/opengl: [ 37] color.a = 1.0;
2020-08-01 08:43:17,347 [   ERROR] mpv: vo/gpu/opengl: [ 38] // color mapping
2020-08-01 08:43:17,348 [   ERROR] mpv: vo/gpu/opengl: [ 39] color.rgb *= vec3(1,000000);
2020-08-01 08:43:17,348 [   ERROR] mpv: vo/gpu/opengl: [ 40] color.rgb *= vec3(1,000000);
2020-08-01 08:43:17,348 [   ERROR] mpv: vo/gpu/opengl: [ 41] out_color = color;
2020-08-01 08:43:17,348 [   ERROR] mpv: vo/gpu/opengl: [ 42] }
2020-08-01 08:43:17,348 [   ERROR] mpv: vo/gpu/opengl: fragment shader compile log (status=0):
2020-08-01 08:43:17,348 [   ERROR] mpv: vo/gpu/opengl: 0:39(14): error: too few components to construct `vec3'
2020-08-01 08:43:17,348 [   ERROR] mpv: vo/gpu/opengl: 0:40(14): error: too few components to construct `vec3'
2020-08-01 08:43:17,348 [   ERROR] mpv: vo/gpu/opengl: 
2020-08-01 08:43:17,348 [   ERROR] mpv: vo/gpu/opengl: shader link log (status=0): error: linking with uncompiled/unspecialized shader
2020-08-01 08:43:17,358 [   DEBUG] player: PlayerManager::play selecting audio stream index=1
2020-08-01 08:43:17,358 [    INFO] mpv: cplayer: Track switched:
2020-08-01 08:43:17,358 [   DEBUG] player: PlayerManager::play selecting subtitle stream index=2
2020-08-01 08:43:17,358 [    INFO] mpv: cplayer:  (+) Video --vid=1 (*) 'Blender.Movie.x264' (h264 1280x720 24,000fps)
2020-08-01 08:43:17,359 [    INFO] mpv: cplayer:  (+) Audio --aid=1 --alang=eng (*) 'Blender.Movie.x264' (aac 2ch 48000Hz)
2020-08-01 08:43:17,359 [    INFO] mpv: cplayer:  (+) Subs  --sid=1 --slang=eng (*) 'Blender.Movie.x264' (subrip)
2020-08-01 08:43:17,363 [    INFO] mpv: cplayer: Track switched:
2020-08-01 08:43:17,364 [    INFO] mpv: cplayer:  (+) Video --vid=1 (*) 'Blender.Movie.x264' (h264 1280x720 24,000fps)
2020-08-01 08:43:17,364 [   ERROR] websocket: error from callback <function WSClient.run.<locals>.<lambda> at 0x7fcddd652cb0>: ('Tried to get/set mpv property using wrong format, or passed invalid value', -9, (<MpvHandle object at 0x7fcde2dc8f80>, b'sub-scale', b'1.0'))
2020-08-01 08:43:17,364 [    INFO] mpv: cplayer:  (+) Audio --aid=1 --alang=eng (*) 'Blender.Movie.x264' (aac 2ch 48000Hz)
2020-08-01 08:43:17,365 [    INFO] mpv: cplayer:  (+) Subs  --sid=1 --slang=eng (*) 'Blender.Movie.x264' (subrip)
2020-08-01 08:43:17,366 [   ERROR] mpv: cplayer: The sub-scale option must be a floating point number or a ratio (numerator[:/]denominator): 1.0
  File "/app/lib/python3.7/site-packages/websocket/_app.py", line 346, in _callback
    callback(self, *args)
  File "/app/lib/python3.7/site-packages/jellyfin_apiclient_python/ws_client.py", line 49, in <lambda>
    on_message=lambda ws, message: self.on_message(ws, message),
  File "/app/lib/python3.7/site-packages/jellyfin_apiclient_python/ws_client.py", line 88, in on_message
    self.client.callback(message['MessageType'], data)
  File "/app/lib/python3.7/site-packages/jellyfin_mpv_shim/clients.py", line 139, in event
    self.callback(client, event_name, data)
  File "/app/lib/python3.7/site-packages/jellyfin_mpv_shim/event_handler.py", line 35, in handle_event
    bindings[event_name](self, client, event_name, arguments)
  File "/app/lib/python3.7/site-packages/jellyfin_mpv_shim/event_handler.py", line 61, in play_media
    playerManager.play(video, offset)
  File "/app/lib/python3.7/site-packages/jellyfin_mpv_shim/player.py", line 270, in play
    self._play_media(video, url, offset)
  File "/app/lib/python3.7/site-packages/jellyfin_mpv_shim/utils.py", line 45, in _synchronizer
    return func(self, *args, **kwargs)
  File "/app/lib/python3.7/site-packages/jellyfin_mpv_shim/player.py", line 294, in _play_media
    self.update_subtitle_visuals()
  File "/app/lib/python3.7/site-packages/jellyfin_mpv_shim/player.py", line 515, in update_subtitle_visuals
    self._player.sub_scale = settings.subtitle_size / 100
  File "/app/lib/python3.7/site-packages/mpv.py", line 1782, in __setattr__
    self._set_property(_py_to_mpv(name), value)
  File "/app/lib/python3.7/site-packages/mpv.py", line 1774, in _set_property
    _mpv_set_property_string(self.handle, ename, _mpv_coax_proptype(value))
  File "/app/lib/python3.7/site-packages/mpv.py", line 133, in raise_for_ec
    raise ex(ec, *args)
2020-08-01 08:43:17,678 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:17,679 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:17,679 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:19,055 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:19,180 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:19,316 [   ERROR] mpv: vo/gpu/opengl: fragment shader source:
2020-08-01 08:43:19,317 [   ERROR] mpv: vo/gpu/opengl: [  1] #version 440
2020-08-01 08:43:19,317 [   ERROR] mpv: vo/gpu/opengl: [  2] #define tex1D texture
2020-08-01 08:43:19,317 [   ERROR] mpv: vo/gpu/opengl: [  3] #define tex3D texture
2020-08-01 08:43:19,318 [   ERROR] mpv: vo/gpu/opengl: [  4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))
2020-08-01 08:43:19,318 [   ERROR] mpv: vo/gpu/opengl: [  5] out vec4 out_color;
2020-08-01 08:43:19,318 [   ERROR] mpv: vo/gpu/opengl: [  6] in vec2 texcoord;
2020-08-01 08:43:19,318 [   ERROR] mpv: vo/gpu/opengl: [  7] in vec4 ass_color;
2020-08-01 08:43:19,318 [   ERROR] mpv: vo/gpu/opengl: [  8] layout(std140, binding=0) uniform UBO {
2020-08-01 08:43:19,319 [   ERROR] mpv: vo/gpu/opengl: [  9] layout(offset=0) vec3 src_luma;
2020-08-01 08:43:19,319 [   ERROR] mpv: vo/gpu/opengl: [ 10] layout(offset=16) vec3 dst_luma;
2020-08-01 08:43:19,319 [   ERROR] mpv: vo/gpu/opengl: [ 11] };
2020-08-01 08:43:19,319 [   ERROR] mpv: vo/gpu/opengl: [ 12] uniform sampler2D osdtex;
2020-08-01 08:43:19,319 [   ERROR] mpv: vo/gpu/opengl: [ 13] void main() {
2020-08-01 08:43:19,320 [   ERROR] mpv: vo/gpu/opengl: [ 14] vec4 color = vec4(0.0, 0.0, 0.0, 1.0);
2020-08-01 08:43:19,320 [   ERROR] mpv: vo/gpu/opengl: [ 15] color = vec4(ass_color.rgb, ass_color.a * texture(osdtex, texcoord).r);
2020-08-01 08:43:19,320 [   ERROR] mpv: vo/gpu/opengl: [ 16] // color mapping
2020-08-01 08:43:19,320 [   ERROR] mpv: vo/gpu/opengl: [ 17] color.rgb *= vec3(1,000000);
2020-08-01 08:43:19,320 [   ERROR] mpv: vo/gpu/opengl: [ 18] color.rgb *= vec3(1,000000);
2020-08-01 08:43:19,320 [   ERROR] mpv: vo/gpu/opengl: [ 19] out_color = color;
2020-08-01 08:43:19,321 [   ERROR] mpv: vo/gpu/opengl: [ 20] }
2020-08-01 08:43:19,321 [   ERROR] mpv: vo/gpu/opengl: fragment shader compile log (status=0):
2020-08-01 08:43:19,321 [   ERROR] mpv: vo/gpu/opengl: 0:17(14): error: too few components to construct `vec3'
2020-08-01 08:43:19,321 [   ERROR] mpv: vo/gpu/opengl: 0:18(14): error: too few components to construct `vec3'
2020-08-01 08:43:19,321 [   ERROR] mpv: vo/gpu/opengl: 
2020-08-01 08:43:19,322 [   ERROR] mpv: vo/gpu/opengl: shader link log (status=0): error: linking with uncompiled/unspecialized shader
2020-08-01 08:43:20,305 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:20,493 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:20,493 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:20,513 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:20,791 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:20,846 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:20,847 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:20,853 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:20,884 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:20,884 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:20,978 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:21,009 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:21,028 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:21,055 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:21,308 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:21,514 [ WARNING] mpv: ffmpeg: srt: Unrecognized tag span
2020-08-01 08:43:52,416 [   DEBUG] event_handler: Unhandled Event ForceKeepAlive: {'value': 60, 'ServerId': '84106667358e4f2fa76378b7c75aab8c'}
2020-08-01 08:43:57,388 [   DEBUG] player: PlayerManager::stop stopping playback of <jellyfin_mpv_shim.media.Video object at 0x7fcdc44be290>
2020-08-01 08:43:57,430 [   DEBUG] urllib3.connectionpool: http://servloc:8096 "POST /Sessions/Playing/Stopped HTTP/1.1" 204 0
2020-08-01 08:43:57,516 [    INFO] mpv: cplayer: 
2020-08-01 08:43:57,948 [   DEBUG] event_handler: Unhandled Event UserDataChanged: {'UserId': 'dd4c1095b25e4d868bed0f1d9d6366f2', 'UserDataList': [{'Rating': None, 'PlayedPercentage': None, 'UnplayedItemCount': None, 'PlaybackPositionTicks': 0, 'PlayCount': 0, 'IsFavorite': False, 'Likes': None, 'LastPlayedDate': None, 'Played': False, 'Key': '451184', 'ItemId': '4a759cda942c1bb52bbfecec8afd97a1'}, {'Rating': None, 'PlayedPercentage': None, 'UnplayedItemCount': 47, 'PlaybackPositionTicks': 0, 'PlayCount': 0, 'IsFavorite': False, 'Likes': None, 'LastPlayedDate': None, 'Played': False, 'Key': '810d91ce-bbf7-4e3d-4193-55817ca12772', 'ItemId': '810d91cebbf74e3d419355817ca12772'}], 'ServerId': '84106667358e4f2fa76378b7c75aab8c'}
2020-08-01 08:44:03,127 [    INFO] JELLYFIN.jellyfin_apiclient_python.ws_client: ---<[ websocket ]
--<[ session/140522159390672 ]
2020-08-01 08:44:03,127 [    INFO] Jellyfin.jellyfin_apiclient_python.http: --<[ session/140522159390672 ]
iwalton3 commented 4 years ago

Looks like MPV doesn't like the graphics drivers? (I'm not sure about the sub_scale error, it is being passed a float as required.)

Please try the following and let me know what happens:

Flatpak has been known to cause unpredictable issues in the past that are not experienced with a regular install.

AlexandreBonneau commented 4 years ago

flatpak update --system shows that jellyfin is up-to-date:

Looking for updates…
Nothing to do.

Well, I installed pip and pip3, then installed jellyfin-mpv-shim and the desktop version, then launched it via krunner..and everything worked as expected! Although, it turns out I was launching the flatpak version!!

Just to be sure, I deleted uninstalled the flatpak version, then the pip one, then reinstalled the flatpak one, and everything works.

Perhaps it has something to do with the server, where I had trouble making the vaapi acceleration work from within firefox (it still does not work), and tinkered the admin playback settings?

Anyway, sorry for the trouble, it works now :)

AlexandreBonneau commented 4 years ago

Well, after having reinstalled my system, I still get a blue screen when launching jellyfin-mpv-desktop, from a flatpak or from a pip3 installation, with and without the kde compositor.

Would you need any particular log?

iwalton3 commented 4 years ago

Are you using Wayland? I’d still need the logs, ideally from both MPV versions.

Rakeen70210 commented 4 years ago

I had this same problem and had to switch the gpu api from opengl to vulkan. Is there any reason why vulkan is not the default? I am not an expert on any of this but from what I have read vulkan is the best on Windows/Linux right?

iwalton3 commented 4 years ago

I don’t set a default unless you enable shader packs. The shader pack feature uses OpenGL because I have found it to work more often than the Vulcan backend.

AlexandreBonneau commented 4 years ago

I'm not using Wayland; I'm using Debian bullseye, Linux 5.7.17, Mesa 20.1.5, Mpv shim 1.8.0, and Kde plasma 5.17.5.

Here are the logs, when using flatpak: 2020-09-04 Log jellyfin mpv shim flatpack.log

and when using the pip3 installation: 2020-09-04 Log jellyfin mpv shim pip3.log

iwalton3 commented 4 years ago

It definitely looks like broken graphics drivers. (MPV says it can't compile shaders.) I would guess that the mpv executable, if you have one and try to play a video, would also be broken. (The error about the subtitle scale doesn't make sense, as it is a floating point number that is passed.)

Are you able to run MPV separately (i.e. not through MPV Shim)?

Does MPV work when you compile it from source and use the non-Flatpak version?

AlexandreBonneau commented 4 years ago

I tried the official mpv from the Debian testing repository from the command line and it works as expected, without blue screens. I also built mpv from source following your instructions in the README, and it also works as expected.

Just to be sure, I launched jellyfin-mpv-shim desktop and tried to read an Hevc movie...and it worked too!? I'm starting to think there must be something wrong with the current version of plasma I'm running. I'll post back here if and when it starts to gives a blue screen again. If it does give a blue screen using only mpv without jellyfin shim, then I'll bother the Kde devs ;)

n-peugnet commented 4 years ago

Hi, I had the same problem with the pip3 installation on Linux Mint. I fixed it by removing libmpv1 debian package and keeping only mpv.

For some more context, I had mpv and celluloid (a GTK MPV frontend) installed. celluloid was the only one depending on libmpv1 so when I removed Celluloid I saw that it was not in use anymore. I had the idea to see if removing it fixes this problem and it did.

iwalton3 commented 4 years ago

You can also obtain a similar result by setting the mpv_ext option to true in the configuration. More concerning though is this means that libmpv1 package is broken or incompatible.

UltraHKR commented 3 years ago

Describe the bug When clicking a movie or TV series, mpv is correctly launched, but you can only hear the sound; the video is just shown as a static bright blue screen.

To Reproduce Steps to reproduce the behavior:

Launch mpv shim Click on 'play' on any movie movie or TV series (H.264 or HEVC) Mpv is launched, but its window stays blue

Expected behavior Mpv should show the video from the selected file, instead of the static blue screen

OS: Win1 20H2 Updated as of 07/04/2021 Jellyfin Desktop v1.10.3 Jellyfin Server 10.7.1 on Win Server 2019

EDITED: Added modified config.json that makes it work conf.json.txt