Gstreamer splitmuxsink randomly generate corrupt videos

stekla stefan.klappe at gmail.com
Thu Jun 4 11:01:07 UTC 2020


Hi, 
I have a problem that I'm not able to solve and was hoping I could get some
help on. 

I'm using gst-launch to store 2 seconds long snippets from a rtsp stream
from an Axis network camera. 

The snippets are then used to create a video with splitmuxsrc to create a
video. However the videos are randomly not "working". The video is always
playable in VLC but in a web application the video not working freeze in the
beginning and is not able to loop in the player. 

This is the command I use to record the snippets
gst-launch-1.0.exe  -e rtspsrc
location=rtsp://192.168.1.5/axis-media/media.amp ! rtph264depay ! h264parse
config-interval=-1  ! splitmuxsink location=snippets/Gstream%02d.mp4
max-size-time=2000000000 max-files=7

I then copy these segments, order them accordingly and rename them to
out_%02d.mpg and remove the last segment which is uncomplete. These files I
then combine with splitmuxsrc according to the command below:
gst-launch-1.0.exe -e splitmuxsrc location="snippets/out_*.mp4" ! h264parse
! mp4mux ! filesink location="output.mp4"

The videofiles, snippets and resulting output.mp4 for one corrupt and one
video working can be downloaded from the following url:
https://fvt.egnyte.com/fl/hzhkQEfeoO <https://fvt.egnyte.com/fl/hzhkQEfeoO>  

I can't find any difference in the files and I don't know what I am doing
wrong. Any help would be greatly appreciated. 



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list