Advertisement
Guest User

Untitled

a guest
May 12th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. When calculating psnr with my own tools (python/numpy) I get identical
  2. results compared to ffmpeg and tiny_ssim if I look at the values per frame.
  3. However, if I run ffmpeg || tiny_ssim an I look at the calculated average
  4. I get something different. This I don't get!
  5.  
  6. Per frame data:
  7. ycbcr.py ffmpeg tiny_ssim
  8. 26.194 26.19 26.194
  9. 25.950652 25.95 25.951
  10. 25.73425 25.73 25.734
  11. 26.296376 26.3 26.296
  12. 26.298215 26.3 26.298
  13. 26.324584 26.32 26.325
  14. 26.671997 26.67 26.672
  15. 26.365405 26.37 26.365
  16. 26.250325 26.25 26.25
  17. 26.915763 26.92 26.916
  18. 26.747261 26.75 26.747
  19. 26.774038 26.77 26.774
  20. 27.126952 27.13 27.127
  21. 27.597209 27.6 27.597
  22. 27.794023 27.79 27.794
  23. 28.070067 28.07 28.07
  24. 27.949201 27.95 27.949
  25. 27.996252 28 27.996
  26. 28.066139 28.07 28.066
  27. 28.084215 28.08 28.084
  28. 27.970032 27.97 27.97
  29. 27.958326 27.96 27.958
  30. 28.030713 28.03 28.031
  31. 28.190591 28.19 28.191
  32. 28.079677 28.08 28.08
  33. 28.285431 28.29 28.285
  34. 28.113496 28.11 28.113
  35. 28.342119 28.34 28.342
  36. 28.502148 28.5 28.502
  37. 28.268838 28.27 28.269
  38. 28.391678 28.39 28.392
  39. 28.417471 28.42 28.417
  40.  
  41. My calculated average
  42. 27.429920125 27.43 27.42984375
  43.  
  44. When running tiny_ssim:
  45. Total 32 frames | PSNR Y:27.340 U:37.820 V:40.238 All:28.950 | SSIM Y:0.83673 U:0.92946 V:0.95301 All:0.87157 (8.91322)
  46.  
  47. when running ffmpeg:
  48. [Parsed_psnr_1 @ 0x2ee3960] PSNR y:27.339519 u:37.820406 v:40.238118 average:28.916038 min:27.338981 max:30.077372
  49.  
  50. tiny_ssim and ffmpeg give same result, which is different from the average calculated above.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement