mpv-android / mpv-android

#mpv-android @ libera.chat
MIT License
1.81k stars 226 forks source link

does not play stream from server with tls 1.3 #883

Closed ivanjx closed 2 months ago

ivanjx commented 2 months ago

Important information

Android version: 12

mpv-android version: 2023-11-30-release / 8033

Which version of mpv-android introduced the problem (if known): -

Description

recently i migrated my proxy server (nginx) to a newer version with boringssl and only enabled TLSv1.3. mainline nginx will warn now if i include TLSv1.2. i tried playing a stream from jellyfin with 'copy stream url' option and the player just stops immediately (or crash?). works fine with mpv on linux desktop and vlc on android.

Log output

empty

sfan5 commented 2 months ago

mpv-android has mbedTLS 3.x which should support TLS 1.3

empty

Not possible, invoking playback will always log something. Please provide one.

syphyr commented 2 months ago

Maybe updating to mbedtls 3.5.2 would help. https://github.com/Mbed-TLS/mbedtls/releases/tag/v3.5.2

ivanjx commented 2 months ago

@sfan5 i was using termux (without the adb part). i will try again when i got access to a pc.

ivanjx commented 2 months ago

@sfan5

--------- beginning of main
03-13 09:38:05.193  2340  2969 V mpv     : [lavf:v] queuing seek to 101.788346
03-13 09:38:05.193  2340  2969 V mpv     : [lavf:v] cached range 0: 0.000000 <-> 133.728000 (bof=1, eof=1)
03-13 09:38:05.193  2340  2969 V mpv     : [lavf:v] ...using this range for in-cache seek.
03-13 09:38:05.193  2340  2969 V mpv     : [lavf:v] seeking stream 0 (audio) to packet 101.784000/101.784000
03-13 09:38:05.194  2340  2969 V mpv     : [cplayer:v] hr-seek, skipping to 101.788346
03-13 09:38:05.194  2340  2969 V mpv     : event: seek
03-13 09:38:05.196  2340  2969 V mpv     : [lavf:v] EOF reached.
03-13 09:38:05.202  2340  2969 V mpv     : [cplayer:v] audio ready
03-13 09:38:05.202  2340  2969 V mpv     : [cplayer:v] starting audio playback
03-13 09:38:05.204  2340  2969 V mpv     : event: playback-restart
03-13 09:38:05.204  2340  2969 V mpv     : [cplayer:v] playback restart complete @ 101.788331, audio=playing, video=eof
03-13 09:38:14.849  2340  2969 V mpv     : [lavf:v] queuing seek to 101.232604
03-13 09:38:14.849  2340  2969 V mpv     : [lavf:v] cached range 0: 0.000000 <-> 133.728000 (bof=1, eof=1)
03-13 09:38:14.849  2340  2969 V mpv     : [lavf:v] ...using this range for in-cache seek.
03-13 09:38:14.849  2340  2969 V mpv     : [lavf:v] seeking stream 0 (audio) to packet 101.232000/101.232000
03-13 09:38:14.851  2340  2969 V mpv     : event: seek
03-13 09:38:14.853  2340  2969 V mpv     : [cplayer:v] hr-seek, skipping to 101.232604
03-13 09:38:14.853  2340  2969 V mpv     : [lavf:v] EOF reached.
03-13 09:38:14.856  2340  2969 V mpv     : [cplayer:v] audio ready
03-13 09:38:14.856  2340  2969 V mpv     : [cplayer:v] starting audio playback
03-13 09:38:14.857  2340  2969 V mpv     : event: playback-restart
03-13 09:38:14.858  2340  2969 V mpv     : [cplayer:v] playback restart complete @ 101.232590, audio=playing, video=eof
03-13 09:38:47.017  2340  2969 V mpv     : [af:v] filter input EOF
03-13 09:38:47.017  2340  2969 V mpv     : [af:v] filter output EOF
03-13 09:38:47.018  2340  2969 V mpv     : [cplayer:v] audio filter EOF
03-13 09:38:47.018  2340  2969 V mpv     : [cplayer:v] audio draining
03-13 09:38:47.018  2340  2969 V mpv     : [cplayer:v] audio EOF reached
03-13 09:38:47.018  2340  2969 V mpv     : [cplayer:v] EOF code: 1  
03-13 09:38:47.019  2340  2969 V mpv     : event: audio-reconfig
03-13 09:38:47.048  2340  2969 V mpv     : event: end-file
03-13 09:38:47.048  2340  2969 V mpv     : event: shutdown
03-13 09:38:47.098  2340  2340 E mpv     : mpv_get_property(video-format) format 1 returned error property unavailable
03-13 09:38:47.112  2340  2969 V mpv     : [cplayer:v] finished playback, success (reason 0)
03-13 09:38:47.537  2340  2340 W mpv     : detaching surface
03-13 09:38:47.538  2340  2969 V mpv     : [vo/gpu:v] Resize: 1080x2340
03-13 09:38:47.538  2340  2969 V mpv     : [vo/gpu:v] Window size: 1080x2340 (Borders: l=0 t=0 r=0 b=0)
03-13 09:38:47.538  2340  2969 V mpv     : [vo/gpu:v] Video source: 960x540 (1:1)
03-13 09:38:47.539  2340  2969 V mpv     : [vo/gpu:v] Video display: (0, 0) 960x540 -> (0, 866) 1080x607
03-13 09:38:47.539  2340  2969 V mpv     : [vo/gpu:v] Video scale: 1.125000/1.124074
03-13 09:38:47.539  2340  2969 V mpv     : [vo/gpu:v] OSD borders: l=0 t=866 r=0 b=867
03-13 09:38:47.539  2340  2969 V mpv     : [vo/gpu:v] Video borders: l=0 t=866 r=0 b=867
03-13 09:38:47.539  2340  2969 V mpv     : [vo/gpu:v] Reported display depth: 8
03-13 09:38:47.544  2340  2969 V mpv     : event: video-reconfig
03-13 09:38:47.547  2340  2969 V mpv     : [vo/null:v] Assuming 60.000004 FPS for display sync.
03-13 09:38:47.547  2340  2969 V mpv     : [vo/null:v] reconfig to 960x540 unknown auto/auto/auto/auto/auto CL=unknown
03-13 09:38:47.549  2340  2969 V mpv     : event: video-reconfig
03-13 09:38:47.549  2340  2969 V mpv     : [cplayer:v] Set property: vo="null" -> 1
03-13 09:38:47.575  2340  2340 V mpv     : Exiting.
03-13 10:33:02.607 11297 11297 V mpv     : Skipping copy of asset file (exists same size): subfont.ttf
03-13 10:33:02.607 11297 11297 V mpv     : Skipping copy of asset file (exists same size): cacert.pem
03-13 10:33:02.715 11297 11297 V mpv     : Display 0 reports FPS of 60.000004
03-13 10:33:02.726 11297 11297 V mpv     : You're using the 64-bit build of mpv!
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] Applying profile 'fast'...
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] Setting option 'scale' = 'bilinear' (flags = 4)
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] Setting option 'dscale' = 'bilinear' (flags = 4)
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] Setting option 'dither' = 'no' (flags = 4)
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] Setting option 'correct-downscaling' = 'no' (flags = 4)
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] Setting option 'linear-downscaling' = 'no' (flags = 4)
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] Setting option 'sigmoid-upscaling' = 'no' (flags = 4)
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] Setting option 'hdr-compute-peak' = 'no' (flags = 4)
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] Setting option 'allow-delayed-peak-detect' = 'yes' (flags = 4)
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] mpv v0.37.0-55-g8b4a995a9d Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v]  built on Nov 30 2023 16:40:32
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] libplacebo version: v6.338.0-60-g795600a4
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] FFmpeg version: n6.1
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v] FFmpeg library versions:
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v]    libavutil       58.29.100
03-13 10:33:02.727 11297 11366 V mpv     : [cplayer:v]    libavcodec      60.31.102
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v]    libavformat     60.16.100
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v]    libswscale      7.5.100
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v]    libavfilter     9.12.100
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v]    libswresample   4.12.100
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v] 
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v] Configuration: -Diconv=disabled -Dlua=enabled -Dlibmpv=true -Dcplayer=false -Dmanpage-build=disabled -Ddefault_library=shared --cross-file=/var/tmp/mpv-android/buildscripts/prefix/arm64/crossfile.txt
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v] List of enabled features: android android-media-ndk av-channel-layout avif-muxer build-date cplugins dvbin egl-android egl-helpers ffmpeg gl glibc-thread-name gpl jpegxl lavu-uuid libass libavdevice libdl libm libplacebo linux-fstatfs lua noexecstack opensles posix ppoll pthread-condattr-setclock threads vector vt.h zlib
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v] Reading config file /data/user/0/is.xyz.mpv/files/mpv.conf
03-13 10:33:02.731 11297 11366 V mpv     : [file:v] Opening /data/user/0/is.xyz.mpv/files/mpv.conf
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v] Applying profile 'default'...
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v] Setting option 'demuxer-max-bytes' = '500MiB' (flags = 4)
03-13 10:33:02.731 11297 11366 V mpv     : [cplayer:v] Waiting for scripts...
03-13 10:33:02.742 11297 11366 V mpv     : event: idle
03-13 10:33:02.742 11297 11366 V mpv     : [cplayer:v] Done loading scripts.
03-13 10:33:02.795 11297 11297 W mpv     : attaching surface
03-13 10:33:02.796 11297 11366 V mpv     : event: start-file
03-13 10:33:02.796 11297 11366 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load
03-13 10:33:02.802 11297 11366 V mpv     : [ytdl_hook:v] ytdl:// hook 
03-13 10:33:02.802 11297 11366 V mpv     : [cplayer:v] Set property: android-surface-size="1080x2340" -> 1
03-13 10:33:02.802 11297 11366 V mpv     : [ytdl_hook:v] not a ytdl:// url 
03-13 10:33:02.802 11297 11366 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load
03-13 10:33:02.802 11297 11366 V mpv     : [ytdl_hook:v] playlist hook 
03-13 10:33:02.802 11297 11366 V mpv     : [ffmpeg:v] Opening https://jelly.xxx.net/Items/xxx/Download?api_key=xxx
03-13 10:33:02.810 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:33:02.814 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:33:02.831 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:33:02.987 11297 11366 V mpv     : [ffmpeg:error] tls: A fatal alert message was received from the peer, has the peer a correct certificate?
03-13 10:33:02.988 11297 11366 V mpv     : [stream:error] Failed to open https://jelly.xxx.net/Items/xxx/Download?api_key=xxx.
03-13 10:33:02.988 11297 11366 V mpv     : [cplayer:v] Opening failed or was aborted: https://jelly.xxx.net/Items/xxx/Download?api_key=xxx
03-13 10:33:02.988 11297 11366 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load_fail
03-13 10:33:02.988 11297 11366 V mpv     : [ytdl_hook:v] full hook 
03-13 10:33:02.988 11297 11366 V mpv     : [ytdl_hook:v] No youtube-dl found with path yt-dlp in config directories 
03-13 10:33:03.009 11297 11366 V mpv     : [ytdl_hook:v] youtube-dl with path yt-dlp not found in PATH or not enough permissions 
03-13 10:33:03.009 11297 11366 V mpv     : [ytdl_hook:v] No youtube-dl found with path yt-dlp_x86 in config directories 
03-13 10:33:03.027 11297 11366 V mpv     : [ytdl_hook:v] youtube-dl with path yt-dlp_x86 not found in PATH or not enough permissions 
03-13 10:33:03.027 11297 11366 V mpv     : [ytdl_hook:v] No youtube-dl found with path youtube-dl in config directories 
03-13 10:33:03.045 11297 11366 V mpv     : [ytdl_hook:v] youtube-dl with path youtube-dl not found in PATH or not enough permissions 
03-13 10:33:03.045 11297 11366 V mpv     : [ytdl_hook:v] status: -3 
03-13 10:33:03.045 11297 11366 V mpv     : event: end-file
03-13 10:33:03.045 11297 11366 V mpv     : event: shutdown
03-13 10:33:03.052 11297 11297 E mpv     : mpv_get_property(video-format) format 1 returned error property unavailable
03-13 10:33:03.053 11297 11366 V mpv     : [ytdl_hook:v] reason: init 
03-13 10:33:03.053 11297 11366 V mpv     : [ytdl_hook:v] stdout:  
03-13 10:33:03.053 11297 11366 V mpv     : [ytdl_hook:v] stderr:  
03-13 10:33:03.053 11297 11366 V mpv     : [ytdl_hook:error]  
03-13 10:33:03.053 11297 11366 V mpv     : [ytdl_hook:error] youtube-dl failed: not found or not enough permissions 
03-13 10:33:03.053 11297 11366 V mpv     : [cplayer:v] finished playback, loading failed (reason 4)
03-13 10:33:03.081 11297 11297 V mpv     : returned from player
03-13 10:33:03.381 11297 11297 W mpv     : detaching surface
03-13 10:33:03.382 11297 11366 V mpv     : [vo/null:v] Assuming 60.000004 FPS for display sync.
03-13 10:33:03.382 11297 11366 V mpv     : [vo/null:v] reconfig to 960x540 unknown auto/auto/auto/auto/auto CL=unknown
03-13 10:33:03.382 11297 11366 V mpv     : event: video-reconfig
03-13 10:33:03.382 11297 11366 V mpv     : [cplayer:v] Set property: vo="null" -> 1
03-13 10:33:03.394 11297 11297 V mpv     : Exiting.
03-13 10:43:00.251 11297 11297 V mpv     : Skipping copy of asset file (exists same size): subfont.ttf
03-13 10:43:00.252 11297 11297 V mpv     : Skipping copy of asset file (exists same size): cacert.pem
03-13 10:43:00.326 11297 11297 V mpv     : Display 0 reports FPS of 60.000004
03-13 10:43:00.338 11297 11297 V mpv     : You're using the 64-bit build of mpv!
03-13 10:43:00.339 11297 15956 V mpv     : [cplayer:v] Applying profile 'fast'...
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] Setting option 'scale' = 'bilinear' (flags = 4)
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] Setting option 'dscale' = 'bilinear' (flags = 4)
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] Setting option 'dither' = 'no' (flags = 4)
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] Setting option 'correct-downscaling' = 'no' (flags = 4)
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] Setting option 'linear-downscaling' = 'no' (flags = 4)
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] Setting option 'sigmoid-upscaling' = 'no' (flags = 4)
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] Setting option 'hdr-compute-peak' = 'no' (flags = 4)
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] Setting option 'allow-delayed-peak-detect' = 'yes' (flags = 4)
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] mpv v0.37.0-55-g8b4a995a9d Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v]  built on Nov 30 2023 16:40:32
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] libplacebo version: v6.338.0-60-g795600a4
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] FFmpeg version: n6.1
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] FFmpeg library versions:
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v]    libavutil       58.29.100
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v]    libavcodec      60.31.102
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v]    libavformat     60.16.100
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v]    libswscale      7.5.100
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v]    libavfilter     9.12.100
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v]    libswresample   4.12.100
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] 
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] Configuration: -Diconv=disabled -Dlua=enabled -Dlibmpv=true -Dcplayer=false -Dmanpage-build=disabled -Ddefault_library=shared --cross-file=/var/tmp/mpv-android/buildscripts/prefix/arm64/crossfile.txt
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] List of enabled features: android android-media-ndk av-channel-layout avif-muxer build-date cplugins dvbin egl-android egl-helpers ffmpeg gl glibc-thread-name gpl jpegxl lavu-uuid libass libavdevice libdl libm libplacebo linux-fstatfs lua noexecstack opensles posix ppoll pthread-condattr-setclock threads vector vt.h zlib
03-13 10:43:00.340 11297 15956 V mpv     : [cplayer:v] Reading config file /data/user/0/is.xyz.mpv/files/mpv.conf
03-13 10:43:00.341 11297 15956 V mpv     : [file:v] Opening /data/user/0/is.xyz.mpv/files/mpv.conf
03-13 10:43:00.341 11297 15956 V mpv     : [cplayer:v] Applying profile 'default'...
03-13 10:43:00.341 11297 15956 V mpv     : [cplayer:v] Setting option 'demuxer-max-bytes' = '500MiB' (flags = 4)
03-13 10:43:00.341 11297 15956 V mpv     : [cplayer:v] Waiting for scripts...
03-13 10:43:00.351 11297 15956 V mpv     : [cplayer:v] Done loading scripts.
03-13 10:43:00.351 11297 15956 V mpv     : event: idle
03-13 10:43:00.417 11297 11297 W mpv     : attaching surface
03-13 10:43:00.417 11297 15956 V mpv     : [cplayer:v] Set property: android-surface-size="1080x2340" -> 1
03-13 10:43:00.419 11297 15956 V mpv     : event: start-file
03-13 10:43:00.419 11297 15956 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load
03-13 10:43:00.425 11297 15956 V mpv     : [ytdl_hook:v] ytdl:// hook 
03-13 10:43:00.425 11297 15956 V mpv     : [ytdl_hook:v] not a ytdl:// url 
03-13 10:43:00.425 11297 15956 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load
03-13 10:43:00.425 11297 15956 V mpv     : [ytdl_hook:v] playlist hook 
03-13 10:43:00.425 11297 15956 V mpv     : [ffmpeg:v] Opening https://jelly.xxx.net/Items/xxx/Download?api_key=xxx
03-13 10:43:00.429 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:43:00.430 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:43:00.451 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:43:00.477 11297 15956 V mpv     : [ffmpeg:error] tls: A fatal alert message was received from the peer, has the peer a correct certificate?
03-13 10:43:00.478 11297 15956 V mpv     : [stream:error] Failed to open https://jelly.xxx.net/Items/xxx/Download?api_key=xxx.
03-13 10:43:00.478 11297 15956 V mpv     : [cplayer:v] Opening failed or was aborted: https://jelly.xxx.net/Items/xxx/Download?api_key=xxx
03-13 10:43:00.478 11297 15956 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load_fail
03-13 10:43:00.478 11297 15956 V mpv     : [ytdl_hook:v] full hook 
03-13 10:43:00.478 11297 15956 V mpv     : [ytdl_hook:v] No youtube-dl found with path yt-dlp in config directories 
03-13 10:43:00.496 11297 15956 V mpv     : [ytdl_hook:v] youtube-dl with path yt-dlp not found in PATH or not enough permissions 
03-13 10:43:00.496 11297 15956 V mpv     : [ytdl_hook:v] No youtube-dl found with path yt-dlp_x86 in config directories 
03-13 10:43:00.514 11297 15956 V mpv     : [ytdl_hook:v] youtube-dl with path yt-dlp_x86 not found in PATH or not enough permissions 
03-13 10:43:00.514 11297 15956 V mpv     : [ytdl_hook:v] No youtube-dl found with path youtube-dl in config directories 
03-13 10:43:00.533 11297 15956 V mpv     : [ytdl_hook:v] youtube-dl with path youtube-dl not found in PATH or not enough permissions 
03-13 10:43:00.533 11297 15956 V mpv     : [ytdl_hook:v] status: -3 
03-13 10:43:00.533 11297 15956 V mpv     : [ytdl_hook:v] reason: init 
03-13 10:43:00.533 11297 15956 V mpv     : [ytdl_hook:v] stdout:  
03-13 10:43:00.533 11297 15956 V mpv     : event: end-file
03-13 10:43:00.533 11297 15956 V mpv     : event: shutdown
03-13 10:43:00.541 11297 15956 V mpv     : [ytdl_hook:v] stderr:  
03-13 10:43:00.541 11297 15956 V mpv     : [ytdl_hook:error]  
03-13 10:43:00.541 11297 15956 V mpv     : [ytdl_hook:error] youtube-dl failed: not found or not enough permissions 
03-13 10:43:00.541 11297 15956 V mpv     : [cplayer:v] finished playback, loading failed (reason 4)
03-13 10:43:00.554 11297 11297 E mpv     : mpv_get_property(video-format) format 1 returned error property unavailable
03-13 10:43:00.592 11297 11297 V mpv     : returned from player
03-13 10:43:00.902 11297 11297 W mpv     : detaching surface
03-13 10:43:00.904 11297 15956 V mpv     : [vo/null:v] Assuming 60.000004 FPS for display sync.
03-13 10:43:00.904 11297 15956 V mpv     : [vo/null:v] reconfig to 960x540 unknown auto/auto/auto/auto/auto CL=unknown
03-13 10:43:00.904 11297 15956 V mpv     : event: video-reconfig
03-13 10:43:00.904 11297 15956 V mpv     : [cplayer:v] Set property: vo="null" -> 1
03-13 10:43:00.914 11297 11297 V mpv     : Exiting.
03-13 10:43:15.077 11297 11297 V mpv     : Skipping copy of asset file (exists same size): subfont.ttf
03-13 10:43:15.077 11297 11297 V mpv     : Skipping copy of asset file (exists same size): cacert.pem
03-13 10:43:15.102 11297 11297 V mpv     : Display 0 reports FPS of 60.000004
03-13 10:43:15.108 11297 11297 V mpv     : You're using the 64-bit build of mpv!
03-13 10:43:15.113 11297 16023 V mpv     : [cplayer:v] Applying profile 'fast'...
03-13 10:43:15.113 11297 16023 V mpv     : [cplayer:v] Setting option 'scale' = 'bilinear' (flags = 4)
03-13 10:43:15.113 11297 16023 V mpv     : [cplayer:v] Setting option 'dscale' = 'bilinear' (flags = 4)
03-13 10:43:15.114 11297 16023 V mpv     : [cplayer:v] Setting option 'dither' = 'no' (flags = 4)
03-13 10:43:15.114 11297 16023 V mpv     : [cplayer:v] Setting option 'correct-downscaling' = 'no' (flags = 4)
03-13 10:43:15.114 11297 16023 V mpv     : [cplayer:v] Setting option 'linear-downscaling' = 'no' (flags = 4)
03-13 10:43:15.114 11297 16023 V mpv     : [cplayer:v] Setting option 'sigmoid-upscaling' = 'no' (flags = 4)
03-13 10:43:15.114 11297 16023 V mpv     : [cplayer:v] Setting option 'hdr-compute-peak' = 'no' (flags = 4)
03-13 10:43:15.114 11297 16023 V mpv     : [cplayer:v] Setting option 'allow-delayed-peak-detect' = 'yes' (flags = 4)
03-13 10:43:15.114 11297 16023 V mpv     : [cplayer:v] mpv v0.37.0-55-g8b4a995a9d Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
03-13 10:43:15.114 11297 16023 V mpv     : [cplayer:v]  built on Nov 30 2023 16:40:32
03-13 10:43:15.114 11297 16023 V mpv     : [cplayer:v] libplacebo version: v6.338.0-60-g795600a4
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v] FFmpeg version: n6.1
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v] FFmpeg library versions:
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v]    libavutil       58.29.100
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v]    libavcodec      60.31.102
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v]    libavformat     60.16.100
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v]    libswscale      7.5.100
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v]    libavfilter     9.12.100
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v]    libswresample   4.12.100
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v] 
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v] Configuration: -Diconv=disabled -Dlua=enabled -Dlibmpv=true -Dcplayer=false -Dmanpage-build=disabled -Ddefault_library=shared --cross-file=/var/tmp/mpv-android/buildscripts/prefix/arm64/crossfile.txt
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v] List of enabled features: android android-media-ndk av-channel-layout avif-muxer build-date cplugins dvbin egl-android egl-helpers ffmpeg gl glibc-thread-name gpl jpegxl lavu-uuid libass libavdevice libdl libm libplacebo linux-fstatfs lua noexecstack opensles posix ppoll pthread-condattr-setclock threads vector vt.h zlib
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v] Reading config file /data/user/0/is.xyz.mpv/files/mpv.conf
03-13 10:43:15.117 11297 16023 V mpv     : [file:v] Opening /data/user/0/is.xyz.mpv/files/mpv.conf
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v] Applying profile 'default'...
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v] Setting option 'demuxer-max-bytes' = '500MiB' (flags = 4)
03-13 10:43:15.117 11297 16023 V mpv     : [cplayer:v] Waiting for scripts...
03-13 10:43:15.118 11297 16023 V mpv     : [cplayer:v] Done loading scripts.
03-13 10:43:15.118 11297 16023 V mpv     : event: idle
03-13 10:43:15.141 11297 11297 W mpv     : attaching surface
03-13 10:43:15.142 11297 16023 V mpv     : event: start-file
03-13 10:43:15.148 11297 16023 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load
03-13 10:43:15.148 11297 16023 V mpv     : [ytdl_hook:v] ytdl:// hook 
03-13 10:43:15.148 11297 16023 V mpv     : [cplayer:v] Set property: android-surface-size="1080x2340" -> 1
03-13 10:43:15.148 11297 16023 V mpv     : [ytdl_hook:v] not a ytdl:// url 
03-13 10:43:15.148 11297 16023 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load
03-13 10:43:15.148 11297 16023 V mpv     : [ytdl_hook:v] playlist hook 
03-13 10:43:15.148 11297 16023 V mpv     : [ffmpeg:v] Opening https://jelly.xxx.net/Items/xxx/Download?api_key=xxx
03-13 10:43:15.152 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:43:15.152 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:43:15.165 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:43:15.182 11297 16023 V mpv     : [ffmpeg:error] tls: A fatal alert message was received from the peer, has the peer a correct certificate?
03-13 10:43:15.182 11297 16023 V mpv     : [stream:error] Failed to open https://jelly.xxx.net/Items/xxx/Download?api_key=xxx.
03-13 10:43:15.182 11297 16023 V mpv     : [cplayer:v] Opening failed or was aborted: https://jelly.xxx.net/Items/xxx/Download?api_key=xxx
03-13 10:43:15.182 11297 16023 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load_fail
03-13 10:43:15.182 11297 16023 V mpv     : [ytdl_hook:v] full hook 
03-13 10:43:15.183 11297 16023 V mpv     : [ytdl_hook:v] No youtube-dl found with path yt-dlp in config directories 
03-13 10:43:15.203 11297 16023 V mpv     : [ytdl_hook:v] youtube-dl with path yt-dlp not found in PATH or not enough permissions 
03-13 10:43:15.211 11297 16023 V mpv     : [ytdl_hook:v] No youtube-dl found with path yt-dlp_x86 in config directories 
03-13 10:43:15.219 11297 16023 V mpv     : [ytdl_hook:v] youtube-dl with path yt-dlp_x86 not found in PATH or not enough permissions 
03-13 10:43:15.219 11297 16023 V mpv     : [ytdl_hook:v] No youtube-dl found with path youtube-dl in config directories 
03-13 10:43:15.242 11297 16023 V mpv     : [ytdl_hook:v] youtube-dl with path youtube-dl not found in PATH or not enough permissions 
03-13 10:43:15.242 11297 16023 V mpv     : event: end-file
03-13 10:43:15.243 11297 16023 V mpv     : event: shutdown
03-13 10:43:15.247 11297 11297 E mpv     : mpv_get_property(video-format) format 1 returned error property unavailable
03-13 10:43:15.247 11297 16023 V mpv     : [ytdl_hook:v] status: -3 
03-13 10:43:15.248 11297 16023 V mpv     : [ytdl_hook:v] reason: init 
03-13 10:43:15.248 11297 16023 V mpv     : [ytdl_hook:v] stdout:  
03-13 10:43:15.248 11297 16023 V mpv     : [ytdl_hook:v] stderr:  
03-13 10:43:15.248 11297 16023 V mpv     : [ytdl_hook:error]  
03-13 10:43:15.248 11297 16023 V mpv     : [ytdl_hook:error] youtube-dl failed: not found or not enough permissions 
03-13 10:43:15.248 11297 16023 V mpv     : [cplayer:v] finished playback, loading failed (reason 4)
03-13 10:43:15.277 11297 11297 V mpv     : returned from player
03-13 10:43:15.588 11297 11297 W mpv     : detaching surface
03-13 10:43:15.590 11297 16023 V mpv     : [vo/null:v] Assuming 60.000004 FPS for display sync.
03-13 10:43:15.590 11297 16023 V mpv     : [vo/null:v] reconfig to 960x540 unknown auto/auto/auto/auto/auto CL=unknown
03-13 10:43:15.590 11297 16023 V mpv     : event: video-reconfig
03-13 10:43:15.590 11297 16023 V mpv     : [cplayer:v] Set property: vo="null" -> 1
03-13 10:43:15.599 11297 11297 V mpv     : Exiting.
03-13 10:43:52.801 11297 11297 V mpv     : Skipping copy of asset file (exists same size): subfont.ttf
03-13 10:43:52.801 11297 11297 V mpv     : Skipping copy of asset file (exists same size): cacert.pem
03-13 10:43:52.836 11297 11297 V mpv     : Display 0 reports FPS of 60.000004
03-13 10:43:52.844 11297 11297 V mpv     : You're using the 64-bit build of mpv!
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] Applying profile 'fast'...
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] Setting option 'scale' = 'bilinear' (flags = 4)
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] Setting option 'dscale' = 'bilinear' (flags = 4)
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] Setting option 'dither' = 'no' (flags = 4)
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] Setting option 'correct-downscaling' = 'no' (flags = 4)
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] Setting option 'linear-downscaling' = 'no' (flags = 4)
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] Setting option 'sigmoid-upscaling' = 'no' (flags = 4)
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] Setting option 'hdr-compute-peak' = 'no' (flags = 4)
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] Setting option 'allow-delayed-peak-detect' = 'yes' (flags = 4)
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] mpv v0.37.0-55-g8b4a995a9d Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v]  built on Nov 30 2023 16:40:32
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] libplacebo version: v6.338.0-60-g795600a4
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] FFmpeg version: n6.1
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v] FFmpeg library versions:
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v]    libavutil       58.29.100
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v]    libavcodec      60.31.102
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v]    libavformat     60.16.100
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v]    libswscale      7.5.100
03-13 10:43:52.846 11297 16675 V mpv     : [cplayer:v]    libavfilter     9.12.100
03-13 10:43:52.847 11297 16675 V mpv     : [cplayer:v]    libswresample   4.12.100
03-13 10:43:52.847 11297 16675 V mpv     : [cplayer:v] 
03-13 10:43:52.847 11297 16675 V mpv     : [cplayer:v] Configuration: -Diconv=disabled -Dlua=enabled -Dlibmpv=true -Dcplayer=false -Dmanpage-build=disabled -Ddefault_library=shared --cross-file=/var/tmp/mpv-android/buildscripts/prefix/arm64/crossfile.txt
03-13 10:43:52.847 11297 16675 V mpv     : [cplayer:v] List of enabled features: android android-media-ndk av-channel-layout avif-muxer build-date cplugins dvbin egl-android egl-helpers ffmpeg gl glibc-thread-name gpl jpegxl lavu-uuid libass libavdevice libdl libm libplacebo linux-fstatfs lua noexecstack opensles posix ppoll pthread-condattr-setclock threads vector vt.h zlib
03-13 10:43:52.847 11297 16675 V mpv     : [cplayer:v] Reading config file /data/user/0/is.xyz.mpv/files/mpv.conf
03-13 10:43:52.847 11297 16675 V mpv     : [file:v] Opening /data/user/0/is.xyz.mpv/files/mpv.conf
03-13 10:43:52.847 11297 16675 V mpv     : [cplayer:v] Applying profile 'default'...
03-13 10:43:52.847 11297 16675 V mpv     : [cplayer:v] Setting option 'demuxer-max-bytes' = '500MiB' (flags = 4)
03-13 10:43:52.847 11297 16675 V mpv     : [cplayer:v] Waiting for scripts...
03-13 10:43:52.858 11297 16675 V mpv     : event: idle
03-13 10:43:52.859 11297 16675 V mpv     : [cplayer:v] Done loading scripts.
03-13 10:43:52.883 11297 11297 W mpv     : attaching surface
03-13 10:43:52.885 11297 16675 V mpv     : event: start-file
03-13 10:43:52.885 11297 16675 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load
03-13 10:43:52.893 11297 16675 V mpv     : [ytdl_hook:v] ytdl:// hook 
03-13 10:43:52.893 11297 16675 V mpv     : [ytdl_hook:v] not a ytdl:// url 
03-13 10:43:52.893 11297 16675 V mpv     : [cplayer:v] Set property: android-surface-size="1080x2340" -> 1
03-13 10:43:52.893 11297 16675 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load
03-13 10:43:52.893 11297 16675 V mpv     : [ytdl_hook:v] playlist hook 
03-13 10:43:52.893 11297 16675 V mpv     : [ffmpeg:v] Opening https://jelly.xxx.net/Items/xxx/Download?api_key=xxx
03-13 10:43:52.898 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:43:52.898 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:43:52.917 11297 11297 E mpv     : mpv_get_property(hwdec-current) format 1 returned error property unavailable
03-13 10:43:52.932 11297 16675 V mpv     : [ffmpeg:error] tls: A fatal alert message was received from the peer, has the peer a correct certificate?
03-13 10:43:52.932 11297 16675 V mpv     : [stream:error] Failed to open https://jelly.xxx.net/Items/xxx/Download?api_key=xxx.
03-13 10:43:52.932 11297 16675 V mpv     : [cplayer:v] Opening failed or was aborted: https://jelly.xxx.net/Items/xxx/Download?api_key=xxx
03-13 10:43:52.932 11297 16675 V mpv     : [cplayer:v] Running hook: ytdl_hook/on_load_fail
03-13 10:43:52.932 11297 16675 V mpv     : [ytdl_hook:v] full hook 
03-13 10:43:52.937 11297 16675 V mpv     : [ytdl_hook:v] No youtube-dl found with path yt-dlp in config directories 
03-13 10:43:52.970 11297 16675 V mpv     : [ytdl_hook:v] youtube-dl with path yt-dlp not found in PATH or not enough permissions 
03-13 10:43:52.971 11297 16675 V mpv     : [ytdl_hook:v] No youtube-dl found with path yt-dlp_x86 in config directories 
03-13 10:43:52.995 11297 16675 V mpv     : [ytdl_hook:v] youtube-dl with path yt-dlp_x86 not found in PATH or not enough permissions 
03-13 10:43:52.995 11297 16675 V mpv     : [ytdl_hook:v] No youtube-dl found with path youtube-dl in config directories 
03-13 10:43:53.015 11297 16675 V mpv     : [ytdl_hook:v] youtube-dl with path youtube-dl not found in PATH or not enough permissions 
03-13 10:43:53.015 11297 16675 V mpv     : [ytdl_hook:v] status: -3 
03-13 10:43:53.015 11297 16675 V mpv     : event: end-file
03-13 10:43:53.015 11297 16675 V mpv     : event: shutdown
03-13 10:43:53.023 11297 11297 E mpv     : mpv_get_property(video-format) format 1 returned error property unavailable
03-13 10:43:53.023 11297 16675 V mpv     : [ytdl_hook:v] reason: init 
03-13 10:43:53.023 11297 16675 V mpv     : [ytdl_hook:v] stdout:  
03-13 10:43:53.024 11297 16675 V mpv     : [ytdl_hook:v] stderr:  
03-13 10:43:53.024 11297 16675 V mpv     : [ytdl_hook:error]  
03-13 10:43:53.024 11297 16675 V mpv     : [ytdl_hook:error] youtube-dl failed: not found or not enough permissions 
03-13 10:43:53.024 11297 16675 V mpv     : [cplayer:v] finished playback, loading failed (reason 4)
03-13 10:43:53.053 11297 11297 V mpv     : returned from player
03-13 10:43:53.354 11297 11297 W mpv     : detaching surface
03-13 10:43:53.355 11297 16675 V mpv     : [vo/null:v] Assuming 60.000004 FPS for display sync.
03-13 10:43:53.355 11297 16675 V mpv     : [vo/null:v] reconfig to 960x540 unknown auto/auto/auto/auto/auto CL=unknown
03-13 10:43:53.355 11297 16675 V mpv     : event: video-reconfig
03-13 10:43:53.355 11297 16675 V mpv     : [cplayer:v] Set property: vo="null" -> 1
03-13 10:43:53.364 11297 11297 V mpv     : Exiting.
ivanjx commented 2 months ago

doing ffprobe on linux desktop with the same url works fine:

Input #0, matroska,webm, from 'https://jelly.xxx.net/Items/xxx/Download?api_key=xxx':
  Metadata:
    title           : xxx - 01
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
    creation_time   : 2022-02-21T06:17:29.000000Z
  Duration: 00:16:15.64, start: 0.000000, bitrate: 2539 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 30.130000
      Metadata:
        title           : Intro
    Chapter #0:1: start 30.130000, end 55.314000
      Metadata:
        title           : Title
    Chapter #0:2: start 55.314000, end 198.465000
      Metadata:
        title           : Part 1
    Chapter #0:3: start 198.465000, end 454.145000
      Metadata:
        title           : Part 2
    Chapter #0:4: start 454.145000, end 609.584000
      Metadata:
        title           : Part 3
    Chapter #0:5: start 609.584000, end 828.261000
      Metadata:
        title           : Part 4
    Chapter #0:6: start 828.261000, end 879.520000
      Metadata:
        title           : Part 5
    Chapter #0:7: start 879.520000, end 975.637000
      Metadata:
        title           : Ending
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1280x720, SAR 1:1 DAR 16:9, 23.81 fps, 23.81 tbr, 1k tbn (default)
    Metadata:
      BPS             : 2328048
      DURATION        : 00:16:15.582000000
      NUMBER_OF_FRAMES: 23744
      NUMBER_OF_BYTES : 283900217
      _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-02-21 06:17:29
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(jpn): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : xxx
      BPS             : 189373
      DURATION        : 00:16:15.637000000
      NUMBER_OF_FRAMES: 45733
      NUMBER_OF_BYTES : 23094924
      _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-02-21 06:17:29
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: ass (default)
    Metadata:
      title           : xxx
      BPS             : 120
      DURATION        : 00:16:11.710000000
      NUMBER_OF_FRAMES: 231
      NUMBER_OF_BYTES : 14626
      _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-02-21 06:17:29
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
sfan5 commented 2 months ago
03-13 10:43:00.425 11297 15956 V mpv     : [ffmpeg:v] Opening https://jelly.xxx.net/Items/xxx/Download?api_key=xxx
03-13 10:43:00.477 11297 15956 V mpv     : [ffmpeg:error] tls: A fatal alert message was received from the peer, has the peer a correct certificate?
03-13 10:43:00.478 11297 15956 V mpv     : [stream:error] Failed to open https://jelly.xxx.net/Items/xxx/Download?api_key=xxx.

is your certificate globally valid or self-signed / custom CA / something else? does tls-verify=no help? restrictive server settings could also be the problem, take note of this document.

ivanjx commented 2 months ago

i got the cert from acme.sh and yes it is still valid (automatically updated):

image

ivanjx commented 2 months ago

i tried adding tls-verify=no to mpv.conf but it still crashes

sfan5 commented 2 months ago

What you should do now is compile the source from here and check using ssl_client2 whether you can connect to your server. If not then that's a bug report / feature request for mbedTLS or your server configuration.