i.MX8MP: How to evaluate the size reduction of H264 and H265 encoding on i.MX8MPEVK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8MP: How to evaluate the size reduction of H264 and H265 encoding on i.MX8MPEVK

711 Views
lazy12316
Contributor II

Hi community,

 

I want to evaluate the size reduction when using H264 and H265 encoding on i.MX8MPEVK. I am using GStreamer based encoding plugins to perform the experiments.  

Tried so far,

gst-launch-1.0 v4l2src device=/dev/video3 ! "video/x-raw, width=1280, height=720" ! vpuenc_hevc bitrate=10000 ! h265parse ! filesink location="test_h265.mp4" -e
gst-launch-1.0 v4l2src device=/dev/video3 ! "video/x-raw, width=1280, height=720" ! vpuenc_h264 bitrate=10000 ! h264parse ! filesink location="test_h264.mp4" -e

I use this command line and save the encoded video into mp4 container for 10 secs. The size of the recorded video files are ~11 MB.

lazy12316_0-1646801937587.png

According to the information on H265 in wikipedia, the H265 reduces nearly 40-48% for 720p resolution.

lazy12316_1-1646802355854.png

 

But as per my experimentation, size reduction is not the case. In fact, it is same for both the encoding techniques. So I need some clarity over my approach.

Is my approach correct? or am I missing something?

Thanks.

0 Kudos
Reply
1 Reply

680 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @lazy12316 

H264 and H265 gstreamer plugin in i.MX8MPlus are v4l2h264enc and v4l2h265enc .Please follow Linux User Guide 

nxf65025_1-1647929849107.png

 

 

0 Kudos
Reply