Closed slcio closed 2 months ago
方便提供下日志吗?位于 ../nginx/log:/var/log/nginx
error.log
中,安卓的 yamby 开启 MPV 播放器需要 PRO 账号 😂 我这边不太好测试
以下是播放来自 115 的内容,最近可能被影响到的两个地方,因 115 比较特殊,所以和其它网盘的直链实现存在细微区别,
1.有这样一种可能,半月之前抽取重构导致历史配置参数可能有点问题,之前位于emby2Alist\nginx\conf.d\config\constant-mount.js
中的配置参数改名了,
cilentSelfAlistRule
=> il 之前大意写反了
clientSelfAlistRule
https://github.com/chen3861229/embyExternalUrl/issues/60#issuecomment-2250881685
2.还有种可能是,重构抽取了 handleAlistRawUrl 导致的,现在如果 alist 开启了链接签名的,必须正确配置alistSignExpireTime
参数
// alist 是否启用了 sign
const alistSignEnable = true;
// alist 中设置的直链过期时间,以小时为单位
const alistSignExpireTime = 0;
https://github.com/bpking1/embyExternalUrl/issues/291#issuecomment-2233466159
状态就是 任意一个可以切换mpv播放器的软件,默认的播放器(不开启mpv)是正常播放的。 开启后mpv播放器就无法播放,抓包看起来请求之类的都有,在一开始一瞬间好像也有瞬间下载一下文件。
感觉和字幕有关
以下是mpv播放器时的错误 2024/08/10 14:24:10 [notice] 1#1: using the "epoll" event method 2024/08/10 14:24:10 [notice] 1#1: nginx/1.27.0 2024/08/10 14:24:10 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14) 2024/08/10 14:24:10 [notice] 1#1: OS: Linux 5.15.0-47-generic 2024/08/10 14:24:10 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 2024/08/10 14:24:10 [notice] 1#1: start worker processes 2024/08/10 14:24:10 [notice] 1#1: start worker process 20 2024/08/10 14:24:10 [notice] 1#1: start worker process 21 2024/08/10 14:24:10 [notice] 1#1: start worker process 22 2024/08/10 14:24:10 [notice] 1#1: start worker process 23 2024/08/10 14:24:10 [notice] 1#1: start cache manager process 24 2024/08/10 14:24:10 [notice] 1#1: start cache loader process 25 2024/08/10 14:24:43 [notice] 21#21: 1 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000004, client: 172.18.0.1, server: default, request: "POST /emby/Items/290067/PlaybackInfo?UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=false&AutoOpenLiveStream=false&StartTimeTicks=0&MaxStreamingBitrate=2147483647 HTTP/1.1", host: "172.18.88.88:8091" 2024/08/10 14:24:43 [warn] 21#21: 1 js: playbackinfo proxy uri: /proxy/emby/Items/290067/PlaybackInfo 2024/08/10 14:24:43 [warn] 21#21: 1 js: playbackinfo proxy query string: UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=false&AutoOpenLiveStream=false&StartTimeTicks=0&MaxStreamingBitrate=2147483647 2024/08/10 14:24:43 [warn] 21#21: 1 js: origin playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"4e10386e40c282d4484135c49c8c33c2","Path":"https://XXXXXXXXXX/电影合集/H2N/L/露梁海战 (2023)/露梁海战 (2023) - BluRay.mkv","Type":"Default","Container":"strm","Size":0,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"SupportsTranscoding":true,"SupportsDirectStream":false,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[],"Formats":[],"RequiredHttpHeaders":{},"DirectStreamUrl":"/videos/290067/master.m3u8?DeviceId=3311e9e2-3628-455e-aeeb-3d7b0664ce94&MediaSourceId=4e10386e40c282d4484135c49c8c33c2&PlaySessionId=4849f6e622b647cb9d5187d1cfd28ecf&api_key=220d2d5f67134d4083641160dafc9d11&VideoCodec=hevc,h264,mpeg4&VideoBitrate=2147483647&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported","AddApiKeyToDirectStreamUrl":false,"TranscodingUrl":"/videos/290067/master.m3u8?DeviceId=3311e9e2-3628-455e-aeeb-3d7b0664ce94&MediaSourceId=4e10386e40c282d4484135c49c8c33c2&PlaySessionId=4849f6e622b647cb9d5187d1cfd28ecf&api_key=220d2d5f67134d4083641160dafc9d11&VideoCodec=hevc,h264,mpeg4&VideoBitrate=2147483647&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported","TranscodingSubProtocol":"hls","TranscodingContainer":"ts","ReadAtNativeFramerate":false,"ItemId":"290067"}],"PlaySessionId":"4849f6e622b647cb9d5187d1cfd28ecf"} 2024/08/10 14:24:43 [warn] 21#21: 1 js: modify direct play supports all true 2024/08/10 14:24:43 [warn] 21#21: 1 js: modify direct play info 2024/08/10 14:24:43 [warn] 21#21: 1 js: 8ms, transfer playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"4e10386e40c282d4484135c49c8c33c2","Path":"https://XXXXXXXXXX/电影合集/H2N/L/露梁海战 (2023)/露梁海战 (2023) - BluRay.mkv","Type":"Default","Container":"strm","Size":0,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"SupportsTranscoding":false,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[],"Formats":[],"RequiredHttpHeaders":{},"DirectStreamUrl":"/videos/290067/stream.strm?UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=false&AutoOpenLiveStream=false&MaxStreamingBitrate=2147483647&api_key=b2683877856b43b39772335987195dd1&MediaSourceId=4e10386e40c282d4484135c49c8c33c2&PlaySessionId=4849f6e622b647cb9d5187d1cfd28ecf&Static=true","AddApiKeyToDirectStreamUrl":false,"TranscodingUrl":"/videos/290067/master.m3u8?DeviceId=3311e9e2-3628-455e-aeeb-3d7b0664ce94&MediaSourceId=4e10386e40c282d4484135c49c8c33c2&PlaySessionId=4849f6e622b647cb9d5187d1cfd28ecf&api_key=220d2d5f67134d4083641160dafc9d11&VideoCodec=hevc,h264,mpeg4&VideoBitrate=2147483647&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported","TranscodingSubProtocol":"hls","TranscodingContainer":"ts","ReadAtNativeFramerate":false,"ItemId":"290067","XRouteMode":"redirect","XOriginDirectStreamUrl":"/videos/290067/master.m3u8?DeviceId=3311e9e2-3628-455e-aeeb-3d7b0664ce94&MediaSourceId=4e10386e40c282d4484135c49c8c33c2&PlaySessionId=4849f6e622b647cb9d5187d1cfd28ecf&api_key=220d2d5f67134d4083641160dafc9d11&VideoCodec=hevc,h264,mpeg4&VideoBitrate=2147483647&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported","XModifyDirectStreamUrlSuccess":true}],"PlaySessionId":"4849f6e622b647cb9d5187d1cfd28ecf"} 2024/08/10 14:24:43 [warn] 21#21: 1 js: === transferPlaybackInfo: /emby/Items/290067/PlaybackInfo, the NJS VM is destroyed === 2024/08/10 14:24:44 [warn] 22#22: 4 js: === itemsFilter: /emby/Items/290067/Similar, the NJS VM is destroyed === 2024/08/10 14:24:49 [notice] 22#22: 3 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000012, client: 172.18.0.1, server: default, request: "POST /emby/Items/290067/PlaybackInfo?UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=true&AutoOpenLiveStream=true&StartTimeTicks=0&MaxStreamingBitrate=2147483647&MediaSourceId=4e10386e40c282d4484135c49c8c33c2 HTTP/1.1", host: "172.18.88.88:8091" 2024/08/10 14:24:49 [warn] 22#22: 3 js: playbackinfo proxy uri: /proxy/emby/Items/290067/PlaybackInfo 2024/08/10 14:24:49 [warn] 22#22: 3 js: playbackinfo proxy query string: UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=true&AutoOpenLiveStream=true&StartTimeTicks=0&MaxStreamingBitrate=2147483647&MediaSourceId=4e10386e40c282d4484135c49c8c33c2 2024/08/10 14:25:01 [warn] 22#22: 3 js: origin playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"4e10386e40c282d4484135c49c8c33c2","Path":"https://XXXXXXXXXX/电影合集/H2N/L/露梁海战 (2023)/露梁海战 (2023) - BluRay.mkv","Type":"Default","Container":"mkv","Size":15003778650,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":91684270000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":13091692,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":804,"Width":1920,"AverageFrameRate":24,"RealFrameRate":24,"Profile":"High","Type":"Video","AspectRatio":"160:67","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"dts","Language":"kor","TimeBase":"1/1000","Title":"Korean","DisplayTitle":"Korean DTS-HD MA 5.1 (默认)","DisplayLanguage":"Korean","IsInterlaced":false,"ChannelLayout":"5.1","BitDepth":16,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Profile":"DTS-HD MA","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"PGSSUB","Language":"chi","TimeBase":"1/1000","Title":"chs","DisplayTitle":"Chinese Simplified (默认 PGSSUB)","DisplayLanguage":"Chinese Simplified","IsInterlaced":false,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Type":" 2024/08/10 14:25:01 [warn] 22#22: 3 js: modify direct play supports all true 2024/08/10 14:25:01 [warn] 22#22: 3 js: modify direct play info 2024/08/10 14:25:01 [warn] 22#22: 3 js: 12620ms, transfer playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"4e10386e40c282d4484135c49c8c33c2","Path":"https://XXXXXXXXXX/电影合集/H2N/L/露梁海战 (2023)/露梁海战 (2023) - BluRay.mkv","Type":"Default","Container":"mkv","Size":15003778650,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":91684270000,"SupportsTranscoding":false,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":13091692,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":804,"Width":1920,"AverageFrameRate":24,"RealFrameRate":24,"Profile":"High","Type":"Video","AspectRatio":"160:67","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"dts","Language":"kor","TimeBase":"1/1000","Title":"Korean","DisplayTitle":"Korean DTS-HD MA 5.1 (默认)","DisplayLanguage":"Korean","IsInterlaced":false,"ChannelLayout":"5.1","BitDepth":16,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Profile":"DTS-HD MA","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"PGSSUB","Language":"chi","TimeBase":"1/1000","Title":"chs","DisplayTitle":"Chinese Simplified (默认 PGSSUB)","DisplayLanguage":"Chinese Simplified","IsInterlaced":false,"IsDefault":true,"IsForced":false,"IsHearingImpaired":fa 2024/08/10 14:25:01 [warn] 22#22: 3 js: === transferPlaybackInfo: /emby/Items/290067/PlaybackInfo, the NJS VM is destroyed === 2024/08/10 14:25:10 [notice] 25#25: http file cache: /var/cache/nginx/emby/images 0.695M, bsize: 4096 2024/08/10 14:25:10 [notice] 25#25: http file cache: /var/cache/nginx/emby/subtitles 0.000M, bsize: 4096 2024/08/10 14:25:11 [notice] 1#1: signal 17 (SIGCHLD) received from 25 2024/08/10 14:25:11 [notice] 1#1: cache loader process 25 exited with code 0 2024/08/10 14:25:11 [notice] 1#1: signal 29 (SIGIO) received 2024/08/10 14:25:55 [notice] 22#22: 3 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000013, client: 172.18.0.1, server: default, request: "POST /emby/Items/290067/PlaybackInfo?UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=false&AutoOpenLiveStream=false&StartTimeTicks=0&MaxStreamingBitrate=2147483647 HTTP/1.1", host: "172.18.88.88:8091" 2024/08/10 14:25:55 [warn] 22#22: 3 js: playbackinfo proxy uri: /proxy/emby/Items/290067/PlaybackInfo 2024/08/10 14:25:55 [warn] 22#22: 3 js: playbackinfo proxy query string: UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=false&AutoOpenLiveStream=false&StartTimeTicks=0&MaxStreamingBitrate=2147483647 2024/08/10 14:25:55 [warn] 22#22: 3 js: origin playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"4e10386e40c282d4484135c49c8c33c2","Path":"https://XXXXXXXXXX/电影合集/H2N/L/露梁海战 (2023)/露梁海战 (2023) - BluRay.mkv","Type":"Default","Container":"mkv","Size":15003778650,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":91684270000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":13091692,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":804,"Width":1920,"AverageFrameRate":24,"RealFrameRate":24,"Profile":"High","Type":"Video","AspectRatio":"160:67","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"dts","Language":"kor","TimeBase":"1/1000","Title":"Korean","DisplayTitle":"Korean DTS-HD MA 5.1 (默认)","DisplayLanguage":"Korean","IsInterlaced":false,"ChannelLayout":"5.1","BitDepth":16,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Profile":"DTS-HD MA","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"PGSSUB","Language":"chi","TimeBase":"1/1000","Title":"chs","DisplayTitle":"Chinese Simplified (默认 PGSSUB)","DisplayLanguage":"Chinese Simplified","IsInterlaced":false,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Type":" 2024/08/10 14:25:55 [warn] 22#22: 3 js: modify direct play supports all true 2024/08/10 14:25:55 [warn] 22#22: 3 js: modify direct play info 2024/08/10 14:25:55 [warn] 22#22: 3 js: 6ms, transfer playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"4e10386e40c282d4484135c49c8c33c2","Path":"https://XXXXXXXXXX/电影合集/H2N/L/露梁海战 (2023)/露梁海战 (2023) - BluRay.mkv","Type":"Default","Container":"mkv","Size":15003778650,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":91684270000,"SupportsTranscoding":false,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":13091692,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":804,"Width":1920,"AverageFrameRate":24,"RealFrameRate":24,"Profile":"High","Type":"Video","AspectRatio":"160:67","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"dts","Language":"kor","TimeBase":"1/1000","Title":"Korean","DisplayTitle":"Korean DTS-HD MA 5.1 (默认)","DisplayLanguage":"Korean","IsInterlaced":false,"ChannelLayout":"5.1","BitDepth":16,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Profile":"DTS-HD MA","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"PGSSUB","Language":"chi","TimeBase":"1/1000","Title":"chs","DisplayTitle":"Chinese Simplified (默认 PGSSUB)","DisplayLanguage":"Chinese Simplified","IsInterlaced":false,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false, 2024/08/10 14:25:55 [warn] 22#22: *3 js: === transferPlaybackInfo: /emby/Items/290067/PlaybackInfo, the NJS VM is destroyed ===
2024/08/10 14:36:16 [notice] 1#1: using the "epoll" event method 2024/08/10 14:36:16 [notice] 1#1: nginx/1.27.0 2024/08/10 14:36:16 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14) 2024/08/10 14:36:16 [notice] 1#1: OS: Linux 5.15.0-47-generic 2024/08/10 14:36:16 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 2024/08/10 14:36:16 [notice] 1#1: start worker processes 2024/08/10 14:36:16 [notice] 1#1: start worker process 20 2024/08/10 14:36:16 [notice] 1#1: start worker process 21 2024/08/10 14:36:16 [notice] 1#1: start worker process 22 2024/08/10 14:36:16 [notice] 1#1: start worker process 23 2024/08/10 14:36:16 [notice] 1#1: start cache manager process 24 2024/08/10 14:36:16 [notice] 1#1: start cache loader process 25 2024/08/10 14:36:35 [notice] 20#20: 1 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000001, client: 172.18.0.1, server: default, request: "POST /emby/Items/362860/PlaybackInfo?UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=false&AutoOpenLiveStream=false&StartTimeTicks=0&MaxStreamingBitrate=2147483647 HTTP/1.1", host: "172.18.88.88:8091" 2024/08/10 14:36:35 [warn] 20#20: 1 js: playbackinfo proxy uri: /proxy/emby/Items/362860/PlaybackInfo 2024/08/10 14:36:35 [warn] 20#20: 1 js: playbackinfo proxy query string: UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=false&AutoOpenLiveStream=false&StartTimeTicks=0&MaxStreamingBitrate=2147483647 2024/08/10 14:36:35 [warn] 20#20: 1 js: origin playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"134205924a440468d15d278c5bca4f29","Path":"https://XXXXXXXXXX/电影合集/待归档/最新电影/他们在岛屿写作:无岸之河 (2014)/他们在岛屿写作:无岸之河 (2014) - BluRay.mkv","Type":"Default","Container":"strm","Size":0,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"SupportsTranscoding":true,"SupportsDirectStream":false,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[],"Formats":[],"RequiredHttpHeaders":{},"DirectStreamUrl":"/videos/362860/master.m3u8?DeviceId=3311e9e2-3628-455e-aeeb-3d7b0664ce94&MediaSourceId=134205924a440468d15d278c5bca4f29&PlaySessionId=a3943c2369ee42e0b58deb94fc2d840c&api_key=220d2d5f67134d4083641160dafc9d11&VideoCodec=hevc,h264,mpeg4&VideoBitrate=2147483647&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported","AddApiKeyToDirectStreamUrl":false,"TranscodingUrl":"/videos/362860/master.m3u8?DeviceId=3311e9e2-3628-455e-aeeb-3d7b0664ce94&MediaSourceId=134205924a440468d15d278c5bca4f29&PlaySessionId=a3943c2369ee42e0b58deb94fc2d840c&api_key=220d2d5f67134d4083641160dafc9d11&VideoCodec=hevc,h264,mpeg4&VideoBitrate=2147483647&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported","TranscodingSubProtocol":"hls","TranscodingContainer":"ts","ReadAtNativeFramerate":false,"ItemId":"362860"}],"PlaySessionId":"a3943c2369ee42e0b58deb94fc2d840c"} 2024/08/10 14:36:35 [warn] 20#20: 1 js: modify direct play supports all true 2024/08/10 14:36:35 [warn] 20#20: 1 js: modify direct play info 2024/08/10 14:36:35 [warn] 20#20: 1 js: 6ms, transfer playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"134205924a440468d15d278c5bca4f29","Path":"https://XXXXXXXXXX/电影合集/待归档/最新电影/他们在岛屿写作:无岸之河 (2014)/他们在岛屿写作:无岸之河 (2014) - BluRay.mkv","Type":"Default","Container":"strm","Size":0,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"SupportsTranscoding":false,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[],"Formats":[],"RequiredHttpHeaders":{},"DirectStreamUrl":"/videos/362860/stream.strm?UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=false&AutoOpenLiveStream=false&MaxStreamingBitrate=2147483647&api_key=b2683877856b43b39772335987195dd1&MediaSourceId=134205924a440468d15d278c5bca4f29&PlaySessionId=a3943c2369ee42e0b58deb94fc2d840c&Static=true","AddApiKeyToDirectStreamUrl":false,"TranscodingUrl":"/videos/362860/master.m3u8?DeviceId=3311e9e2-3628-455e-aeeb-3d7b0664ce94&MediaSourceId=134205924a440468d15d278c5bca4f29&PlaySessionId=a3943c2369ee42e0b58deb94fc2d840c&api_key=220d2d5f67134d4083641160dafc9d11&VideoCodec=hevc,h264,mpeg4&VideoBitrate=2147483647&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported","TranscodingSubProtocol":"hls","TranscodingContainer":"ts","ReadAtNativeFramerate":false,"ItemId":"362860","XRouteMode":"redirect","XOriginDirectStreamUrl":"/videos/362860/master.m3u8?DeviceId=3311e9e2-3628-455e-aeeb-3d7b0664ce94&MediaSourceId=134205924a440468d15d278c5bca4f29&PlaySessionId=a3943c2369ee42e0b58deb94fc2d840c&api_key=220d2d5f67134d4083641160dafc9d11&VideoCodec=hevc,h264,mpeg4&VideoBitrate=2147483647&TranscodingMaxAudioChannels=6&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported","XModifyDirectStreamUrlSuccess":true}],"PlaySessionId":"a3943c2369 2024/08/10 14:36:35 [warn] 20#20: 1 js: === transferPlaybackInfo: /emby/Items/362860/PlaybackInfo, the NJS VM is destroyed === 2024/08/10 14:36:35 [warn] 20#20: 1 js: === itemsFilter: /emby/Items/362860/Similar, the NJS VM is destroyed === 2024/08/10 14:36:36 [notice] 20#20: 15 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000008, client: 172.18.0.1, server: default, request: "POST /emby/Items/362860/PlaybackInfo?UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=true&AutoOpenLiveStream=true&StartTimeTicks=0&MaxStreamingBitrate=2147483647&MediaSourceId=134205924a440468d15d278c5bca4f29 HTTP/1.1", host: "172.18.88.88:8091" 2024/08/10 14:36:36 [warn] 20#20: 15 js: playbackinfo proxy uri: /proxy/emby/Items/362860/PlaybackInfo 2024/08/10 14:36:36 [warn] 20#20: 15 js: playbackinfo proxy query string: UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=true&AutoOpenLiveStream=true&StartTimeTicks=0&MaxStreamingBitrate=2147483647&MediaSourceId=134205924a440468d15d278c5bca4f29 2024/08/10 14:36:44 [warn] 20#20: 15 js: origin playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"134205924a440468d15d278c5bca4f29","Path":"https://XXXXXXXXXX/电影合集/待归档/最新电影/他们在岛屿写作:无岸之河 (2014)/他们在岛屿写作:无岸之河 (2014) - BluRay.mkv","Type":"Default","Container":"mkv","Size":7872428036,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":55292480000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","ColorPrimaries":"bt709","ColorSpace":"bt709","TimeBase":"1/1000","Title":"晓飞@CMCT","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":11390233,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"ac3","Language":"chi","TimeBase":"1/1000","Title":"国语","DisplayTitle":"Chinese Simplified AC3 stereo (默认)","DisplayLanguage":"Chinese Simplified","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":384000,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"ass","Language":"chi","TimeBase":"1/1000","Title":"简体中文ASS","DisplayTitle":"Chines 2024/08/10 14:36:44 [warn] 20#20: 15 js: modify direct play supports all true 2024/08/10 14:36:44 [warn] 20#20: 15 js: modify direct play info 2024/08/10 14:36:44 [warn] 20#20: 15 js: 7140ms, transfer playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"134205924a440468d15d278c5bca4f29","Path":"https://XXXXXXXXXX/电影合集/待归档/最新电影/他们在岛屿写作:无岸之河 (2014)/他们在岛屿写作:无岸之河 (2014) - BluRay.mkv","Type":"Default","Container":"mkv","Size":7872428036,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":55292480000,"SupportsTranscoding":false,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","ColorPrimaries":"bt709","ColorSpace":"bt709","TimeBase":"1/1000","Title":"晓飞@CMCT","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":11390233,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"ac3","Language":"chi","TimeBase":"1/1000","Title":"国语","DisplayTitle":"Chinese Simplified AC3 stereo (默认)","DisplayLanguage":"Chinese Simplified","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":384000,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"ass","Language":"chi","TimeBase":"1/1000","Title":"简体中文ASS","DisplayTit 2024/08/10 14:36:44 [warn] 20#20: 15 js: === transferPlaybackInfo: /emby/Items/362860/PlaybackInfo, the NJS VM is destroyed === 2024/08/10 14:37:16 [notice] 25#25: http file cache: /var/cache/nginx/emby/images 0.480M, bsize: 4096 2024/08/10 14:37:16 [notice] 25#25: http file cache: /var/cache/nginx/emby/subtitles 0.000M, bsize: 4096 2024/08/10 14:37:16 [notice] 1#1: signal 17 (SIGCHLD) received from 25 2024/08/10 14:37:16 [notice] 1#1: cache loader process 25 exited with code 0 2024/08/10 14:37:16 [notice] 1#1: signal 29 (SIGIO) received 2024/08/10 14:37:16 [notice] 1#1: cache loader process 25 exited with code 0 2024/08/10 14:37:16 [notice] 1#1: signal 29 (SIGIO) received 2024/08/10 14:38:50 [notice] 20#20: 19 a client request body is buffered to a temporary file /var/cache/nginx/client_temp/0000000009, client: 172.18.0.1, server: default, request: "POST /emby/Items/362860/PlaybackInfo?UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=false&AutoOpenLiveStream=false&StartTimeTicks=0&MaxStreamingBitrate=2147483647 HTTP/1.1", host: "172.18.88.88:8091" 2024/08/10 14:38:50 [warn] 20#20: 19 js: playbackinfo proxy uri: /proxy/emby/Items/362860/PlaybackInfo 2024/08/10 14:38:50 [warn] 20#20: 19 js: playbackinfo proxy query string: UserId=68c349880ec14d89b3e8d91012cd3929&IsPlayback=false&AutoOpenLiveStream=false&StartTimeTicks=0&MaxStreamingBitrate=2147483647 2024/08/10 14:38:50 [warn] 20#20: 19 js: origin playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"134205924a440468d15d278c5bca4f29","Path":"https://XXXXXXXXXX/电影合集/待归档/最新电影/他们在岛屿写作:无岸之河 (2014)/他们在岛屿写作:无岸之河 (2014) - BluRay.mkv","Type":"Default","Container":"mkv","Size":7872428036,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":55292480000,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","ColorPrimaries":"bt709","ColorSpace":"bt709","TimeBase":"1/1000","Title":"晓飞@CMCT","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":11390233,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"ac3","Language":"chi","TimeBase":"1/1000","Title":"国语","DisplayTitle":"Chinese Simplified AC3 stereo (默认)","DisplayLanguage":"Chinese Simplified","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":384000,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"ass","Language":"chi","TimeBase":"1/1000","Title":"简体中文ASS","DisplayTitle":"Chines 2024/08/10 14:38:50 [warn] 20#20: 19 js: modify direct play supports all true 2024/08/10 14:38:50 [warn] 20#20: 19 js: modify direct play info 2024/08/10 14:38:50 [warn] 20#20: 19 js: 14ms, transfer playbackinfo: {"MediaSources":[{"Protocol":"Http","Id":"134205924a440468d15d278c5bca4f29","Path":"https://XXXXXXXXXX/电影合集/待归档/最新电影/他们在岛屿写作:无岸之河 (2014)/他们在岛屿写作:无岸之河 (2014) - BluRay.mkv","Type":"Default","Container":"mkv","Size":7872428036,"Name":"BluRay","IsRemote":true,"HasMixedProtocols":false,"RunTimeTicks":55292480000,"SupportsTranscoding":false,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"h264","ColorPrimaries":"bt709","ColorSpace":"bt709","TimeBase":"1/1000","Title":"晓飞@CMCT","VideoRange":"SDR","DisplayTitle":"1080p H264","NalLengthSize":"4","IsInterlaced":false,"BitRate":11390233,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":29.97003,"RealFrameRate":29.97003,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false,"ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"ac3","Language":"chi","TimeBase":"1/1000","Title":"国语","DisplayTitle":"Chinese Simplified AC3 stereo (默认)","DisplayLanguage":"Chinese Simplified","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":384000,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","ExtendedVideoType":"None","ExtendedVideoSubType":"None","ExtendedVideoSubTypeDescription":"None","AttachmentSize":0},{"Codec":"ass","Language":"chi","TimeBase":"1/1000","Title":"简体中文ASS","DisplayTitle 2024/08/10 14:38:50 [warn] 20#20: *19 js: === transferPlaybackInfo: /emby/Items/362860/PlaybackInfo, the NJS VM is destroyed ===
1、服务端302后的地址有正常接到请求,请求也有正常的http的返回 2、客户端抓包也有看到正常请求302前后的请求 状态就是 任意一个可以切换mpv播放器的软件,默认的播放器(不开启mpv)是正常播放的。 开启后mpv播放器就无法播放,抓包看起来请求之类的都有,在一开始一瞬间好像也有瞬间下载一下文件。
感觉和字幕有关
1.和字幕可能无关,因为都是直链播放的串流地址,理论上这些专业播放器支持格式更广
2.通过描述已经排除了,alist 签名问题,因为有加载媒体二进制流数据的下载流量过程了
6月的脚本还行,但是7月8月的代码不行。。。估计某个改动引起。
3.响应串流直链这块没太大变化,不过唯一能想到的就是 115 网盘的 UA 限制处理这边比较特殊,假如是 115 内容,可以尝试注释下这个,假如不是,忽略这条信息,
emby2Alist\nginx\conf.d\config\constant-mount.js
中 clientSelfAlistRule
的 [2, strHead["115"], alistPublicAddr],
,
注释后代表直接响应 115 网盘商的公网直链,而不是默认的 alist 的 /d 文件直链地址,注释这条后相当于回到最初兼容 115 直链的实现状态,但是存在下述客户端的进度条拖动黑屏 bug
// 指定客户端自己请求并获取 alist 直链的规则,代码优先级在 redirectStrmLastLinkRule 之后
// 特殊情况使用,则此处必须使用域名且公网畅通,用不着请保持默认
// 参数1: 分组名,组内为与关系(全部匹配),多个组和没有分组的规则是或关系(任一匹配),然后下面参数序号-1
// 参数2: 匹配类型或来源(字符串参数类型),优先级高"filePath": 文件路径(Item.Path),默认为"alistRes": alist 返回的链接 raw_url
// ,有分组时不可省略填写,可为表达式
// 参数3: 0: startsWith(str), 1: endsWith(str), 2: includes(str), 3: match(/ain/g)
// 参数4: 匹配目标,为数组的多个参数时,数组内为或关系(任一匹配)
// 参数5: 指定转发给客户端的 alist 的 host 前缀,兼容 sign 参数
const clientSelfAlistRule = [
// "Emby for iOS"和"Infuse"对于 115 的进度条拖动依赖于此
// 如果 nginx 为 https,则此 alist 也必须 https,浏览器行为客户端会阻止非 https 请求
// [2, strHead["115"], alistPublicAddr],
];
4.理论上响应给客户端的直链,即 error.log
中 redirect to
后的链接能用浏览器或其它工具直接访问的话,播放器播放不了就属于播放器自身的兼容性问题了,我这边 win 版官方独立的 MPV 是正常播放的,平时自用的安卓第三方修改强化版,内置的也是替换为了 libmpv 内嵌库的版本,也是正常播放的
我试了一下,开启mpv可以播放呀
比如IOS的fileball,安卓的yamby,是支持使用mpv播放的,但是使用emby2alist并且开启mpv后就无法正常播放了。
6月的脚本还行,但是7月8月的代码不行。。。估计某个改动引起。