3 # example pipeline to download HSL streams from raiplay.it
7 { [ "x$1" = "x" ] || [ "x$2" = x ]; } && { echo "usage: $(basename "$0") <source_m3u8_url> <output_file>" 1>&2; exit 1; }
12 # use a high value for connection-speed to download the best quality video
15 mp4mux name=mp4 fragment-duration=10 ! \
16 filesink location="$OUTPUT_FILE" \
19 hlsdemux connection-speed=4294967 ! \
22 ts.video_0_0100 ! h264parse ! queue ! \
25 ts.audio_0_0101 ! decodebin ! audioconvert ! lamemp3enc ! queue ! \
28 # NOTE: the audio re-encoding is necessary because aacparse lacks some
30 # https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/106