[FFmpeg-user] problem ffmpeg with cuda and scale

Michele Salerno mikysal78 at gmail.com
Thu Oct 17 15:30:38 EEST 2019


Il giorno gio 17 ott 2019 alle ore 11:29 Moritz Barsnick
<barsnick at gmx.net> ha scritto:
>
> 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.
>
Thanks, i see...
but i have this error now:
Impossible to convert between the formats supported by the filter
'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
[aac @ 0x55c2aefc8880] Qavg: 21991.418
[aac @ 0x55c2aefc8880] 2 frames left in the queue on closing
Conversion failed!


More information about the ffmpeg-user mailing list