video append of 5656b failed for segment #2 in playlist

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

video append of 5656b failed for segment #2 in playlist

thohtdelta
This post was updated on .
I'm trying to forward an RTSP stream(video and audio) using GStreamer and stream it to HLS.

 
Here is what I'm running on the RTSP server send:

        ./test-launch 'v4l2src device=/dev/video0 ! clockoverlay ! nvvidconv ! nvv4l2h264enc ! h264parse ! rtph264pay name=pay0 pt=96 alsasrc device="hw:2,0" ! voaacenc ! rtpmp4apay pt=97 name=pay1'

The command I'm trying to use to receive is:

        gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test name=rtspsrchls ! queue ! rtph264depay ! h264parse ! mpegtsmux name=mux ! hlssink location="/home/nano128/tdservice/hls_rtsp/public/segment%05d.ts" playlist-location=/home/nano128/tdservice/hls_rtsp/public/playlist.m3u8 target-duration=20 max-files=5 rtspsrchls. ! queue ! rtpmp4adepay ! aacparse ! audio/mpeg ! mux.


The HLS stream starts and I am able to see it on my browser. But I get these errors on the browser.

video append of 5656b failed for segment #2 in playlist


When I try to play the segment0.ts on vlc it is playing properly but when i l play sement1.ts I see hear only audio.

What is wrong with my GStreamer command?