# use a high value for connection-speed to download the best quality video
gst-launch-1.0 \
\
- mp4mux name=mp4 fragment-duration=10 ! \
+ mp4mux name=mux ! \
filesink location="$OUTPUT_FILE" \
\
"$SOURCE_URL" ! \
tsdemux name=demux \
\
demux.video_0_0100 ! queue ! h264parse ! queue ! \
- mp4.video_00 \
+ mux.video_00 \
\
demux.audio_0_0101 ! queue ! decodebin ! audioconvert ! lamemp3enc ! queue ! \
- mp4.audio_00
+ mux.audio_00
# NOTE: the audio re-encoding is necessary because aacparse lacks some
# functionality, see: