http ts to hlssink pipeline
Melli Mails
mailsanmich at gmx.li
Thu Oct 20 08:12:55 UTC 2016
Hello,
I am new to gstreamer and I struggle with a basic problem.
I use gstreamer 1.8.3 and I would like to create a pipeline that has a HTTP TS stream as a source (coming from an enigma2 DVB receiver, details below) and hlssink (http live streaming) as a sink. Later I would like to transcoding too but I already struggle with the basics and I asking for your help.
Here is what I do. (The options are mostly guesses because my knowledge is very limited at the moment.
sudo gst-launch-1.0 -v souphttpsrc location="http://gb800ueplusduo:8001/1:0:19:2B66:3F3:1:C00000:0:0:0:" is-live=true ! tsdemux parse-private-sections=false name=demux demux.audio_17e9 ! queue ! mpegaudioparse ! mpegtsmux name=mux ! hlssink max-files=5 location=/var/www/html/stream/segment%05d.ts playlist-root=http://192.168.1.2/stream/ target-duration=10 demux. ! queue ! h264parse ! queue ! mux.
My problem is that hlssink does not create multiple segment files (but only a single segment file that keeps growing) and no playlist file either.
Not sure if it matters but my hardware is a Raspberry Pi 3 running raspbian stretch (which comes with pre-compiled gstreamer 1.8.3 packages)
Thank you for your help!
Best regards,
Alex
P.S.:
more information about my source:
ANG=C gst-discoverer-1.0 -v http://gb800ueplus:8001/1:0:19:2B66:3F3:1:C00000:0:0:0: Analyzing http://gb800ueplus:8001/1:0:19:2B66:3F3:1:C00000:0:0:0:
Done discovering http://gb800ueplus:8001/1:0:19:2B66:3F3:1:C00000:0:0:0:
Missing plugins
(gstreamer|1.0|gst-discoverer-1.0|Teletext decoder|decoder-application/x-teletext)
Topology:
container: video/mpegts, systemstream=(boolean)true, packetsize=(int)188
subtitles: subpicture/x-dvb
Tags:
language code: de
subtitle codec: DVB subtitles
Codec:
subpicture/x-dvb
Additional info:
None
Stream ID: 122f24b4ce741a179fcd8b47b72231328a3ab5ab3945259f387545bad1adc6e9/000017f3
Language: de
unknown: application/x-teletext
audio: audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)48000, channels=(int)2, parsed=(boolean)true
Tags:
language code: mul
audio codec: MPEG-1 Audio
has crc: true
channel mode: stereo
nominal bitrate: 192000
bitrate: 192000
Codec:
audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)48000, channels=(int)2, parsed=(boolean)true
Additional info:
None
Stream ID: 122f24b4ce741a179fcd8b47b72231328a3ab5ab3945259f387545bad1adc6e9/000017eb
Language: mul
Channels: 2
Sample rate: 48000
Depth: 32
Bitrate: 192000
Max bitrate: 0
audio: audio/x-ac3
Tags:
language code: de
audio codec: AC-3 (ATSC A/52)
bitrate: 448000
Codec:
audio/x-ac3
Additional info:
None
Stream ID: 122f24b4ce741a179fcd8b47b72231328a3ab5ab3945259f387545bad1adc6e9/000017ea
Language: de
Channels: 2
Sample rate: 48000
Depth: 32
Bitrate: 448000
Max bitrate: 0
audio: audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)48000, channels=(int)2, parsed=(boolean)true
Tags:
language code: mis
audio codec: MPEG-1 Audio
has crc: true
channel mode: stereo
nominal bitrate: 192000
bitrate: 192000
Codec:
audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)48000, channels=(int)2, parsed=(boolean)true
Additional info:
None
Stream ID: 122f24b4ce741a179fcd8b47b72231328a3ab5ab3945259f387545bad1adc6e9/000017e9
Language: mis
Channels: 2
Sample rate: 48000
Depth: 32
Bitrate: 192000
Max bitrate: 0
audio: audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)48000, channels=(int)2, parsed=(boolean)true
Tags:
language code: de
audio codec: MPEG-1 Audio
has crc: true
channel mode: stereo
nominal bitrate: 256000
bitrate: 256000
Codec:
audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)48000, channels=(int)2, parsed=(boolean)true
Additional info:
None
Stream ID: 122f24b4ce741a179fcd8b47b72231328a3ab5ab3945259f387545bad1adc6e9/000017e8
Language: de
Channels: 2
Sample rate: 48000
Depth: 32
Bitrate: 256000
Max bitrate: 0
video: video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal
Tags:
video codec: H.264
bitrate: 37764800
Codec:
video/x-h264, stream-format=(string)byte-stream, alignment=(string)nal
Additional info:
None
Stream ID: 122f24b4ce741a179fcd8b47b72231328a3ab5ab3945259f387545bad1adc6e9/000017de
Width: 1280
Height: 720
Depth: 24
Frame rate: 50/1
Pixel aspect ratio: 1/1
Interlaced: false
Bitrate: 37764800
Max bitrate: 0
Properties:
Duration: 99:99:99.999999999
Seekable: yes
Tags:
language code: mis
audio codec: MPEG-1 Audio
has crc: true
channel mode: stereo
nominal bitrate: 192000
bitrate: 192000
video codec: H.264
More information about the gstreamer-devel
mailing list