AnsweredAssumed Answered

Gapless play on imx6q

Question asked by Onur Calili on Oct 25, 2016
Latest reply on Oct 26, 2016 by Onur Calili

Hello community,


I have Karo-tx6q-1010 Module. I managed to save a sample video encoded with h264 algorithm using

gst-launch-1.0 -vvv videotestsrc pattern=1 ! video/x-raw,format="I420", framerate=25/1, width=720, height=576 ! timeoverlay text="Stream time:" shaded-background=false ! imxvpuenc_h264 bitrate=32500 gop_size=0 ! avimux name=avimuxer ! filesink location=/home/root/test.avi

.The sample video can be played without problem using;

gst-play-1.0 test.avi

It only gives me a warning which is "g2d_alloc: alloc memory fail with size 16!". But when i use

gst-play-1.0 --videosink imxipuvideosink test.avi

the warning is gone and gain video played without any problem.

My problem is, when i use

gst-play-1.0 --videosink imxipuvideosink --gapless test.avi test.avi

which uses "about-to-finish" signal of "playbin", the two video is played consequently and in expected duration but between video transitions i think playing stops approximately 300 ms because screen hangs for a visible duration and the start time of "timeoverlay" is nearly 0:00:00:300 as far as i can see. When i tried the same command on my pc using the same command video transition is very smooth.

I have to play my consequent videos gaplessly. How can i overcome this problem?


Best regards