rpicamsrc: Buffer has no PTS

Abu Abdullah falcon.sheep at gmail.com
Wed Jan 11 15:12:50 UTC 2023


On Wed, Jan 11, 2023 at 2:06 PM Jan Schmidt <thaytan at noraisin.net> wrote:
> 1) You still have `inline-headers=true` in your command-line
>
> 2) You should probably be using hlssink2 instead of hlssink to generate
> your HLS. Failing that, the original hlssink requires the input to be
> muxed MPEG-TS - so put a mpegtsmux in front.
>
> 3) If you want to mux to both mp4 via splitmuxsink and MPEG-TS via
> hlssink or hlssink2, you need 2 different representations of the H.264
> stream, so you need a separate h264parse for each one, after the tee.
>
> Something like:
>
> gst-launch-1.0 -e rpicamsrc preview=false
> keyframe-interval=30 !
> video/x-h264,width=640,height=480,framerate=30/1,profile=high ! tee name=t t. ! queue ! h264parse ! splitmuxsink
> location=/home/pi/snapshots_tmp/snap_%03d.mp4
> max-size-time=30000000000 max-size-bytes=2000000
> t. ! queue ! h264parse config-interval=-1 ! hlssink2
> max-files=5 target-duration=5
> location=/home/pi/snapshots_tmp/segment_%05d.ts
> playlist-location=/home/pi/snapshots_tmp/playlist.m3u8
>
> Cheers,
> Jan.

Many thanks for the hints and support. the last pipeline is clear and
works as expected now. thanks


More information about the gstreamer-devel mailing list