On Mon, 18 Apr 2022 12:53:19 +0200, stefano roveda <[email protected]> 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...
#!/bin/bash
URLFILE="/path/to/urlfile"
read -r VIDEOURL M3U8URL < $URLFILE #URLFILE referer and m3u8 URL
MODE="-referer \"${VIDEOURL}\""
CAPTURETIME="$1"
TARGETFILE="$2"
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
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".