Bug 76243 - [h264encode][IVB] h264encode encoding's ssim value less than 0.99
Summary: [h264encode][IVB] h264encode encoding's ssim value less than 0.99
Status: VERIFIED WONTFIX
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: haihao
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-17 01:46 UTC by ZhaoShengyan
Modified: 2014-03-28 01:16 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description ZhaoShengyan 2014-03-17 01:46:22 UTC
Test Env:
================================
Libdrm:         (master)libdrm-2.4.52-8-gee8c9a1383d4a50871e146ade2fe15b25f3377d4
Mesa:           (master)551d459af421a2eb937e9e16301bb64da4624f89
Xserver:                (master)xorg-server-1.15.99.901-62-g81a4952d3dcab9ca3a1ee399c773f5ac352036c4
Xf86_video_intel:               (master)2.99.910-93-g4368a74b1c904625158f0b6baf98ef2a60bb54d4
Cairo:          (master)ed175b2a2bebb6def85133257bc11a875d13b0dd
Libva:          (staging)bf2e1773d4373619232c4c653b8cda19ea329441
Libva_intel_driver:             (staging)6e1baecded9d23b32daa8e34828b6a5d32a27c46
Ffmpeg:         (master)7d7487e85c066bf3f4e5821a49081f520b6bc1e7
Mplayer:                (hwaccel-vaapi)1923fa10ed77bbf8408f2ce312d85a97dab1f0f3
Infrastructure:         b5c27b39e2e63a4880c729632e29356476abee6d

Test Steps:
================================
make script named libva_encoder_func.sh:
#file libva_encoder_func.sh

rm -rf /opt/h264encode_work || exit 1
mkdir -p /opt/h264encode_work || exit 1
/opt/X11R7/bin/h264encode -w 1280 -h 720 --srcyuv /root/media_tools/encoder/encoderbitstreams/720p5994_parkrun_ter.yuv -framecount 0 -f 25 -o /opt/h264encode_work/720p5994_parkrun_ter.yuv.mp4 || exit 1
/opt/X11R7/ffmpeg/bin/ffmpeg -i /opt/h264encode_work/720p5994_parkrun_ter.yuv.mp4 /opt/h264encode_work/720p5994_parkrun_ter.yuv.mp4.yuv || exit 1
/root/media_tools/decoder/ssim_op 1280 720 604 0 0 /opt/h264encode_work/720p5994_parkrun_ter.yuv.mp4.yuv /root/media_tools/encoder/encoderbitstreams/720p5994_parkrun_ter.yuv 1>/opt/h264encode_work/720p5994_parkrun_ter.yuv.ssim_value.1 2>/opt/h264encode_work/720p5994_parkrun_ter.yuv.ssim_value.2 || exit 1
Y_MIN_SSIM=$(grep Y_MIN_SSIM /opt/h264encode_work/720p5994_parkrun_ter.yuv.ssim_value.1 | awk '{print $3}')
Y_AVERAGE_SSIM=$(grep Y_AVERAGE_SSIM /opt/h264encode_work/720p5994_parkrun_ter.yuv.ssim_value.1 | awk '{print $3}')
U_MIN_SSIM=$(grep U_MIN_SSIM /opt/h264encode_work/720p5994_parkrun_ter.yuv.ssim_value.1 | awk '{print $3}')
U_AVERAGE_SSIM=$(grep U_AVERAGE_SSIM /opt/h264encode_work/720p5994_parkrun_ter.yuv.ssim_value.1 | awk '{print $3}')
V_MIN_SSIM=$(grep V_MIN_SSIM /opt/h264encode_work/720p5994_parkrun_ter.yuv.ssim_value.1 | awk '{print $3}')
V_AVERAGE_SSIM=$(grep V_AVERAGE_SSIM /opt/h264encode_work/720p5994_parkrun_ter.yuv.ssim_value.1 | awk '{print $3}')
echo "720p5994_parkrun_ter.yuv ${Y_MIN_SSIM} ${Y_AVERAGE_SSIM} ${U_MIN_SSIM} ${U_AVERAGE_SSIM} ${V_MIN_SSIM} ${V_AVERAGE_SSIM} 604 604 0">/tmp/media_other_temp

cat /tmp/media_other_temp
720p5994_parkrun_ter.yuv 0.932995 0.953949 0.762171 0.789309 0.829620 0.852846 604 604 0

In addition, we replay the output .mp4 file, the rendering situation is also incorrect, especially for chroma vectors.

Reproduced rate:
================================
100%
Comment 1 haihao 2014-03-24 05:26:43 UTC
You should use --fourcc to specify the format, for most YUV files, the format is IYUV (the alias of I420)
Comment 2 zhenxiang.li 2014-03-26 02:54:42 UTC
After add prama fourcc, I got the following result:
720p5994_parkrun_ter.yuv 0.932995 0.953949 0.911788 0.920043 0.927842 0.934705 604 604 0
Comment 3 zhenxiang.li 2014-03-27 02:01:34 UTC
Since the ssim is about 0.93, so reopen it.
Comment 4 haihao 2014-03-27 02:51:02 UTC
Don't define the criteria for this case.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.