[FFmpeg-user] How can I extract m3u8 URL for use with ffmpeg on this site?

Bo Berglund bo.berglund at gmail.com
Mon Apr 18 16:01:31 EEST 2022

On Mon, 18 Apr 2022 12:53:19 +0200, stefano roveda <stfrvd at gmail.com> wrote:

>Dear reino, i found the thread very interesting.
>Anyway thank you for taking care.

I can supply the exact ffmpeg command I use in the script for the download if
that would make it better suited here...

read -r VIDEOURL M3U8URL < $URLFILE #URLFILE referer and m3u8 URL
MODE="-referer \"${VIDEOURL}\""
CMD="ffmpeg -hide_banner ${MODE} -i \"${M3U8URL}\" -vf scale=w=-4:h=480 -c:v
libx264 -preset fast -crf 26 -c:a copy -t ${CAPTURETIME} ${TARGETFILE}"
eval "$CMD" #Run the download

Bo Berglund
Developer in Sweden

More information about the ffmpeg-user mailing list