此博客中的热门博文
Squid2.5+自定义日记
Squid2.6由于不能自由定义不同源的虚拟主机,所以只好使用2.5,可惜2.5的日志不能自定义。 补丁下载的网址: http://devel.squid-cache.org/customlog/ 可以生成Apache combined日志补丁 下载回来放到源码目录,运行 patch -p0 然后重新编译: ./configure --prefix=/usr/local/squid --enable-delay-pools --enable-useragent-log --enable-referer-log --enable-default-err-language=Simplify_Chinese --enable-x-accelerator-vary --enable-kill-parent-hack --enable-err-languages="Simplif y_Chinese English" --with-pthreads --with-aio --enable-cache-digests --with-large-files 编译结束后, 在 squid.conf 中添加: logformat combined %>a - %un [%{%d/%b/%Y:%H:%M:%S +0800}tl] "%rm %ru HTTP/%rv" %Hs % h" "%{User-agent}>h" cache_access_log /var/squid/logs/access.log combined 一个支持 combined 日志模式的 Squid 即告完成。 注意, 这里用了 +0800 ,绕过了使用 tl 的 %z 或者 %Z 的问题,用 z% ,将显示为 25%z ,可能是 patch 有问题。 Squid custom log format Basic syntax: %...field where ... is an optional field width. On numeric fields the output will be 0 padded if the field width starts with a 0. If the field width s...
HDR2SDR 全显卡过程中一些问题和解决
反馈主题:RTX 5090 在 Vulkan + libplacebo + NVENC 处理 Dolby Vision 增强层时编码速度骤降 环境说明 - pc01:Ubuntu 24.04、RTX 5070 Ti、NVIDIA 驱动 580.65.06、FFmpeg 自行编译(支持 --enable-libplacebo --enable-nvenc)、CUDA 12.6。HDR→SDR(Dolby Vision → SDR)流程稳定,转码速度 4~6×。 - pc02:Ubuntu 24.04、RTX 5090。最初驱动 580.95.05,后回退到 580.65.06;FFmpeg 与 pc01 同源同配 置(CUDA 12.6,libplacebo 一致),命令完全相同;输入视频是 Dolby Vision Profile 7(包含增强层 NAL type 63)。 复现命令(示例) ffmpeg -v error -stats \ -init_hw_device vulkan=vk:0 -hwaccel vulkan \ -hwaccel_output_format vulkan -filter_hw_device vk \ -fflags +genpts -i <DolbyVision_profile7.mp4> \ -map 0:v:0 -r 24 \ -c:v hevc_nvenc -gpu 0 -preset p5 -rc vbr \ -vf libplacebo=tonemapping=mobius:colorspace=bt709:color_primaries=bt709:color_trc=bt709:format=nv12,hw download,format=nv12 \ -b:v 12M -maxrate 20M -bufsize 40M \ -pix_fmt yuv...


评论