This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A7-Q1: Unable to get a working HLS stream using v4l2h264enc and hlssink2 using gstreamer

Part Number: AM62A7-Q1

Tool/software:

Hello,

I am trying to generate a HLS stream using the following pipeline:

gst-launch-1.0 -v videotestsrc is-live=true ! \
    v4l2h264enc extra-controls="enc,prepend_sps_and_pps_to_idr=1,video_gop_size=5,frame_level_rate_control_enable=1,video_bitrate_mode=0,vbv_buffer_size=3000,video_bitrate=6000000" ! \
    h264parse ! \
    hlssink2 \
        location=/var/www/html/segment%04d.ts \
        playlist-location=/var/www/html/playlist.m3u8

On AM62A, this outputs the first segment, and then stalls.

When I try something similar on my x86 linux machine using the following pipeline

gst-launch-1.0 videotestsrc is-live=true ! clockoverlay ! x264enc ! h264parse ! hlssink2

this works fine. I believe hlssink2 tries to make the encoder generate a key frame, and I'm not sure whether the wave5 encoder supports this.

Any idea how to solve this?

Regards,

Bas Vermeulen