hlssink does not seperate ts segments when not going through encoder
gugovind
gxguru at gmail.com
Tue Jun 15 05:48:56 UTC 2021
Hi,
I have a RTSP source that I want to ingest which is already in H264 format.
So all I want to do is just mux it and then save it as hls segments without
doing any decoding or encoding. However my pipeline saves the ts file as one
large file and does not follow the parameters specified in hlssink.
For example the following pipeline does not generate ts segments at 5
seconds. It generates one large ts file.
```
*gst-launch-1.0 rtspsrc
location="rtsp://user:pass@10.0.0.23:554/cam/realmonitor?channel=1&subtype=0"
! rtph264depay ! h264parse ! mpegtsmux ! hlssink playlist-length=5
max-files=10 target-duration=5 playlist-root="http://localhost/hls/"
playlist-location="stream0.m3u8" location="fragment%05d.ts"*
```
But if I add decoder and encoder it generates ts segments at 5 second
intervals as specified in hlssink params.
```
*gst-launch-1.0 rtspsrc
location="rtsp://user:pass@10.0.0.23:554/cam/realmonitor?channel=1&subtype=0"
! rtph264depay ! h264parse ! decodebin ! videoscale ! x264enc ! mpegtsmux !
hlssink playlist-length=5 max-files=10 target-duration=5
playlist-root="http://localhost/hls/" playlist-location="stream0.m3u8"
location="fragment%05d.ts"*
```
I dont want to add a decode and encode as I want to just save it as
H264encoded file which I am already getting from my source.
Please help!
Thanks a lot
Guru
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list