gstreamerを使用してhslストリームを正常に作成できます。コードは次のとおりです。
gst-launch-1.0 -v \
videotestsrc is-live=true \
! omxh264enc target-bitrate=2000000 control-rate=variable \
! "video/x-h264,profile=high,width=600,height=300" \
! mpegtsmux \
! hlssink \
playlist-root=http://192.168.0.51:9000/hlssink/ \
location=/home/attila/frontend/hlssink/hlssink.%05d.ts \
max-files=5 \
target-duration=10 \
playlist-location=/home/attila/frontend/playlist.m3u8
うまくいきますが、hlssinkによって生成されたファイルの属性行に基づく欠陥があります。
location=/home/attila/frontend/hlssink/hlssink.%05d.ts
ループはありません。したがって、クライアントは常にプレイリストを再ロードする必要があります。ファイル名でgstreamerループを作成するには?