Encoding performence releted.

cancel
Showing results for 
Search instead for 
Did you mean: 

Encoding performence releted.

166 Views
rajkishor
Contributor I

I am using imx6solo processor. I have some confusion regrading mjpeg and h264 encoder.

It takes around 50-60 millisecond.

I want improve my encoding performance, how i Can improve it encoding performence.

this is  tested on opencv.

Kindly suggest me the better way to do this.

thanks

Raj kishor

Labels (1)
0 Kudos
2 Replies

97 Views
joanxie
NXP TechSupport
NXP TechSupport

did you try to use gstreamer to test? the command like:

$GSTL filesrc location=test.yuv
! videoparse format=2 witdh=$WIDTH height=$HEIGHT framerate=30/1
! vpuenc_jpeg ! $MUXER ! filesink location=$output

The $MUXER can be set to qtmux, matroskamux, mp4mux, avimux, or flvmux.

0 Kudos

97 Views
rajkishor
Contributor I

Hi Joan Xie,

Thanks,

Actually I tested it with gst pipe line also. I guess that in pipe line also it take around 50-60 millisecond.

when i run  gst pipe line for just display image on autovideosink without encoding it takes 50-55 millisecond.

for example:   gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! autovideosink

And

when i run same pipe line with encoding , decode it through decodebin and display on autovideosink it takes 110-115.

millisecond.

for example: gst-launch-1.0 imxv4l2videosrc device=/dev/video0 !  imxvpuenc_mjpeg  ! decodebin ! autovideosink

and my requirement is the video should stream with maximum 80 millisecond delay.

Thank

Raj kishor

0 Kudos