From: Antonio Ospite Date: Fri, 14 Dec 2018 11:44:11 +0000 (+0100) Subject: gst-raiplay-download.sh: rename tsdemux from "ts" to "demux" X-Git-Url: https://git.ao2.it/experiments/gstreamer.git/commitdiff_plain/a594457d7a30ecb0ec09d2193f9ea789d1430e46?hp=d770cdb54f40ecd58f411e8d185228bac4d3c10f gst-raiplay-download.sh: rename tsdemux from "ts" to "demux" The more general name would make it possible to change the element in the future without changing the pads names. --- diff --git a/shell/gst-raiplay-download.sh b/shell/gst-raiplay-download.sh index 51af243..7e1f93e 100755 --- a/shell/gst-raiplay-download.sh +++ b/shell/gst-raiplay-download.sh @@ -9,6 +9,7 @@ set -e SOURCE_URL="$1" OUTPUT_FILE="$2" +# use the avimux element because my TV set does not like the output of mp4mux # use a high value for connection-speed to download the best quality video gst-launch-1.0 \ \ @@ -17,12 +18,12 @@ gst-launch-1.0 \ \ "$SOURCE_URL" ! \ hlsdemux connection-speed=4294967 ! \ - tsdemux name=ts \ + tsdemux name=demux \ \ - ts.video_0_0100 ! h264parse ! queue ! \ + demux.video_0_0100 ! queue ! h264parse ! queue ! \ mp4.video_00 \ \ - ts.audio_0_0101 ! decodebin ! audioconvert ! lamemp3enc ! queue ! \ + demux.audio_0_0101 ! queue ! decodebin ! audioconvert ! lamemp3enc ! queue ! \ mp4.audio_00 # NOTE: the audio re-encoding is necessary because aacparse lacks some