[FFmpeg-user] problem ffmpeg with cuda and scale

Moritz Barsnick barsnick at gmx.net
Thu Oct 17 12:28:58 EEST 2019


On Thu, Oct 17, 2019 at 01:08:37 +0200, Michele Salerno wrote:
> > #!/bin/bash
> > for i in *.mp4; do
> >     ffmpeg -threads 8 -hwaccel nvdec -i "$i" -vf scale_cuda=720:-1
> > -c:v h264_nvenc -preset slow "convert/$i";
> > done
>
> No work, i have this error:
> At least one output file must be specified
> ./1.sh: riga 4: -c:v: comando non trovato

This looks like you need to remove the newline between these lines:
    ffmpeg -threads 8 -hwaccel nvdec -i "$i" -vf scale_cuda=720:-1
-c:v h264_nvenc -preset slow "convert/$i";

They are one command and need to be on one line.

Moritz


More information about the ffmpeg-user mailing list