計算PSNR我有一個我想與ffmpeg的比較來計算的PSNRffmpeg的:對RGB三個通道
的ffmpeg自動計算PSNR上YUV渠道,而不是RGB 2張rgb48le TIF圖片。 這是我使用 「的ffmpeg-20160119-混帳cc83177-Win64的靜態」 的命令:
ffmpeg -y -an -i image1.tif -i image2.tif -filter_complex "psnr" output.tif
,這是輸出:
[tiff_pipe @ 045b36a0] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, tiff_pipe, from 'image1.tif':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: tiff, rgb48le, 7680x4320 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
[tiff_pipe @ 045c53a0] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #1, tiff_pipe, from 'image2.tif':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: tiff, rgb48le, 7680x4320 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'output.tif':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: tiff, rgb48le, 7680x4320 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:
encoder : Lavc56.60.100 tiff
Stream mapping:
Stream #0:0 (tiff) -> psnr:main
Stream #1:0 (tiff) -> psnr:reference
psnr -> Stream #0:0 (tiff)
Press [q] to stop, [?] for help
frame= 1 fps=0.3 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:195568kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[Parsed_psnr_0 @ 045cf760] PSNR y:46.00 u:49.32 v:50.34 average:48.14 min:48.14 max:48.14
這是正常的嗎? 有沒有辦法強制PSNR在RGB48每個通道上計算?
嘗試將兩個圖像轉換爲像素格式GBRP16LE或BE – Mulvya