前言
子方没想到,多年以前探索的硬解码竟然实现了。lxc on proxmox。jellyfin没问题,可是emby要会员。
烦恼又来了,视频文件存在多级分类,在jellyfin无法全部展示,需要先进入文件夹,然后又想到了emby。看了两天,知道大概要做个伪装服务器。本文不太适合纯小白。
教程
1、lnmp服务器,本地或外网均可.新建网站mb3admin.com
2、自签ssl证书,也可以找个网站生成
3、修改vhost.conf
4、emby的服务器mb3admin.com host要指向自己的服务器
5、小金牌是点亮了,转码过程查看gpu是有变化的
二次补充
经测试,硬件解码找不到设备。也使用jellyfin进行了验证,即lxc中是能看到显卡信息的,只是启用硬件解码时会提示错误。那么,这至少说明不是破解的问题,而是在lxc环境中,显卡直通比较复杂,也涉及到硬件型号等,这里不再进一步研究。
对于emby是否完成破解,目前看来是看控制台是否出现金色小徽章。对于是否调用硬解,至少转码选项中的高级,应该能看到硬解具体选项。
使用本方式时,需要同步修改各用户端的host。这一点需要特别提出。
server
{
listen 443 ssl http2;
#listen [::]:443 ssl http2;
server_name mb3admin.com ;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/mb3admin.com;
ssl_certificate /usr/local/nginx/conf/ssl/mb3admin.pem;
ssl_certificate_key /usr/local/nginx/conf/ssl/mb3admin.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers "TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AE>
ssl_session_cache builtin:1000 shared:SSL:10m;
# openssl dhparam -out /usr/local/nginx/conf/ssl/dhparam.pem 2048
ssl_dhparam /usr/local/nginx/conf/ssl/dhparam.pem;
include rewrite/none.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location /admin/service/registration/validateDevice {
default_type application/json;
return 200 '{"cacheExpirationDays": 3650,"message": "Device Valid","resultC>
}
location /admin/service/registration/validate {
default_type application/json;
return 200 '{"featId":"","registered":true,"expDate":"2099-01-01","key":""}>
}
location /admin/service/registration/getStatus {
default_type application/json;
return 200 '{"deviceStatus":"","planType":"Lifetime","subscriptions":{}}';
}
location /admin/service/appstore/register {
default_type application/json;
return 200 '{"featId": "","registered": true,"expDate": "2099-01-01","key":>
}
location /emby/Plugins/SecurityInfo {
default_type application/json;
return 200 '{SupporterKey: "", IsMBSupporter: true}';
}
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers *;
add_header Access-Control-Allow-Method *;
add_header Access-Control-Allow-Credentials true;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log off;
}
