Live recorded MP4(h264+mp3) video file can't be seek to play in gstreamer on PC

rickyqiqi rickyqiqi at
Wed Sep 19 07:19:31 UTC 2018

Hi, I'm using a NXP imx6Q board (with gstreamer 1.8.1) to record live videos
using the following scripts:
FN="/mnt/edisk/record-"$(date +%Y%m%d_%H%M%S)"-%05d.mp4"

gst-launch-1.0 -e v4l2src device="${DEV_VIDEO_264}" do-timestamp=true  \
	! queue flush-on-eos=true silent=true leaky=0 max-size-buffers=0
max-size-time=0 max-size-bytes=0 \
	! h264parse disable_passthrough=true \
	! queue flush-on-eos=true silent=true leaky=0 max-size-buffers=0
max-size-time=0 max-size-bytes=0 \
	! mux. alsasrc device="${DEV_AUDIO}" \
	! 'audio/x-raw,format=S16LE,rate=48000,channels=2' \
	! audioconvert \
	! imxmp3enc bitrate=48 \
	! queue \
	! mux.audio_0 \
	splitmuxsink location="${FN}" reserved-max-duration=3000000000000000000
reserved-moov-update-period=1000000000 max-size-time=900000000000
mp4mux=mp4mux name=mux

It records video files successfully. The video files can be played on IMX6Q
board using gst-play-1.0 and also I can play forward or backward using < or
> keys pressing. Everything seems alright.

But when I copy these video files into my PC, an unexpected issue occures:
These files can be played and also seekable in some of the media player,
such as VLC, MPC-HC and so on. But they can't be successfully seekable in
using gstreamer base programs on PC (can be played but can't be seeked.
We've tried on an self-programed application and also KMPlayer with similar
seek issues.). Here I attached a short video sample file(zipped in two files
because of uploading file size limit) to hope if someone can help me. Thank
you in advance.


Sent from:

More information about the gstreamer-devel mailing list