[FFmpeg-user] How to check if a youtube URL is valid before starting download?

Bo Berglund bo.berglund at gmail.com
Fri Jul 9 13:04:56 EEST 2021

On Fri, 9 Jul 2021 10:10:11 +0100, Christian Ebert <bcc at phloxic.productions>

>> However, the grep command does the same (nothing) in both cases!
>ffmpeg writes the log output to stderr, so redirect it to stdout:
>ffmpeg -i bluearrow.mp4 -vf "freezedetect=n=0.01:d=5" -map  0:v:0 -f null - 2>&1 | grep -q 'lavfi.freezedetect.freeze_start: '

I ran this:

ffmpeg -hide_banner -i bluearrow.mp4 -vf "freezedetect=n=0.01:d=5" -map 0:v:0 -f
null - 2>&1 > freezeoutput.txt

And the freezeoutput.txts still empty...

Bo Berglund
Developer in Sweden

More information about the ffmpeg-user mailing list