On Thu, 17 Oct 2019 at 15:31, Michele Salerno <[email protected]> wrote: > > Il giorno gio 17 ott 2019 alle ore 11:29 Moritz Barsnick > <[email protected]> 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!
My bad, try this: ffmpeg -threads 8 -hwaccel nvdec -hwaccel_output_format cuda -i "$i" -vf scale_cuda=720:-1 -c:v h264_nvenc -preset slow "convert/$i"; That should fix the issue above. _______________________________________________ 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".
