最新版好像不显示日志了
anyingxiuluo opened this issue · 11 comments
大佬,用docker logs -f -n 10 nginx-emby 2>&1 | grep js:命令,最新版不显示日志了
还有embyPathMapping参数2似乎不生效
最新版不显示日志了
1.不好意思,改动了容器名,忘了改这个命令了
// docker logs -f -n 10 容器名称 2>&1 | grep js:
docker logs -f -n 10 nginx-emby 2>&1 | grep js:
2.刚简单测试了下,好像是没问题的,只是 sign 有点问题,alist 有启用 sign 吗?
mount emby file path: https://xxx:5244/d/.../xxx - 1080p.mkv
sourceStrValue, alistRes = https://xxx:5244/d/.../xxx - 1080p.mkv
sourceStrValue, r.variables.remote_addr = xxx
embyPathMapping: [[0,0,"/AList",""],[0,2,":5244","/alist"]]
strMapping replace: :5244 => /alist
mapped emby file path: https://xxx/alist/d/.../xxx - 1080p.mkv
1.改了容器名称还是不显示日志,我直接在/nginx/log/error.log里面看的日志。
2.我播放 内部为/开头的相对路径的 stem时显示日志
2024/05/07 13:40:48 [warn] 20#20: *3 js: mount emby file path: /CloudNAS/115/test/AEGE/AEGE-005/AEGE-005.mp4
2024/05/07 13:40:48 [warn] 20#20: *3 js: embyPathMapping: [[0,0,"/sp",""],[0,1,"/CloudNAS",""]]
2024/05/07 13:40:48 [warn] 20#20: *3 js: strMapping replace: /sp =>
2024/05/07 13:40:48 [warn] 20#20: *3 js: mapped emby file path: /CloudNAS/115/test/AEGE/AEGE-005/AEGE-005.mp4
2024/05/07 13:40:48 [warn] 20#20: *3 js: 2ms, fetchAlistPathApi async function cost
2024/05/07 13:40:48 [warn] 20#20: *3 js: fetchAlistPathApi, UA: libmpv
2024/05/07 13:40:48 [warn] 20#20: *3 js: alistRes: error500: alist_path_api 500 failed get storage: storage not found; rawPath: /CloudNAS/115/test/AEGE/AEGE-005/AEGE-005.mp4
按道理应该匹配[0,1,"/CloudNAS",""]规则而不是[0,0,"/sp",""]
3.我使用了sign,没发现有什么问题
1.嗯,其实直接看这个日志文件更全更清晰
2从路径来看这个媒体是挂载后的本地路径开头了,是 strm 文件吗?
3.我测试是有点问题了,稍后我提交下修复
1.嗯,其实直接看这个日志文件更全更清晰
2从路径来看这个媒体是挂载后的本地路径开头了,是 strm 文件吗?
3.我测试是有点问题了,稍后我提交下修复
是strm文件,文件内的路径是/CloudNAS/115/test/AEGE/AEGE-005/AEGE-005.mp4
[
{
"Codec": "h264",
"CodecTag": "avc1",
"Language": "und",
"ColorTransfer": "bt709",
"ColorPrimaries": "bt709",
"ColorSpace": "bt709",
"TimeBase": "1/60000",
"VideoRange": "SDR",
"DisplayTitle": "1080p H264",
"NalLengthSize": "4",
"IsInterlaced": false,
"BitRate": 5970832,
"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": 40,
"IsAnamorphic": false,
"ExtendedVideoType": "None",
"ExtendedVideoSubType": "None",
"ExtendedVideoSubTypeDescription": "None",
"AttachmentSize": 0
},
{
"Codec": "aac",
"CodecTag": "mp4a",
"Language": "und",
"TimeBase": "1/48000",
"DisplayTitle": "AAC stereo (默认)",
"IsInterlaced": false,
"ChannelLayout": "stereo",
"BitRate": 317374,
"Channels": 2,
"SampleRate": 48000,
"IsDefault": true,
"IsForced": false,
"IsHearingImpaired": false,
"Profile": "LC",
"Type": "Audio",
"Index": 1,
"IsExternal": false,
"IsTextSubtitleStream": false,
"SupportsExternalStream": false,
"Protocol": "File",
"ExtendedVideoType": "None",
"ExtendedVideoSubType": "None",
"ExtendedVideoSubTypeDescription": "None",
"AttachmentSize": 0
}
]
另外我发现用infuse播放时能正常判断,用fileball播放时不能正确判断strm,下面是用infuse播放时的日志
2024/05/08 14:28:07 [warn] 20#20: *1098 js: 30ms, fetchEmbyFilePath async function cost
2024/05/08 14:28:07 [warn] 20#20: *1098 js: mount emby file path: /CloudNAS/115/test/AEGE/AEGE-005/AEGE-005.mp4
2024/05/08 14:28:07 [warn] 20#20: *1098 js: embyPathMapping: [[0,0,"/sp","/ASP"],[0,1,"/CloudNAS",""]]
2024/05/08 14:28:07 [warn] 20#20: *1098 js: strMapping replace: /CloudNAS =>
2024/05/08 14:28:07 [warn] 20#20: *1098 js: mapped emby file path: /115/test/AEGE/AEGE-005/AEGE-005.mp4
2024/05/08 14:28:10 [warn] 20#20: *1098 js: hit cilentSelfAlistRule
2024/05/08 14:28:10 [warn] 20#20: *1098 js: 3003ms, fetchAlistPathApi async function cost
2024/05/08 14:28:10 [warn] 20#20: *1098 js: fetchAlistPathApi, UA: Infuse-Direct/7.7.4
奇怪,strm 内部文本是 / 开头的路径应该是不会补充入库 MediaStreams 信息来着,只有 http 开头的在第一次播放后才会有这个信息,我这边修复下吧,去掉缓存路径的代码,也差不了十几毫秒
应该已经修复了
f2e925c
应该已经修复了 f2e925c
问题已经解决了,感谢大佬