[FFmpeg-user] Automatic encoder selection failed for output stream

Michele Salerno mikysal78 at gmail.com
Sun Mar 1 15:12:27 EET 2020


I run this command on file testing:

ffmpeg -y -hide_banner -threads 8 -hwaccel nvdec -hwaccel_output_format 
cuda -i Saving Mr Banks (2013).mkv -vf scale_cuda=-1:720 -c:v h264_nvenc 
-rc vbr_hq -profile:v main -minrate 1500k -maxrate 4M -bufsize 5M 
-acodec ac3 -ac 6 -strict experimental -ar 48000 -b:a 640k -preset slow 
-flags +loop -cmp chroma -subq 6 -me_range 16 -g 250 -keyint_min 25 
-sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -map 0:v -map 
0:m:language:ita -metadata title=Saving Mr Banks (2013) -metadata 
description=Films -metadata comment=Films ../Films-720p/Saving Mr Banks 
(2013).mp4

I run my script ansible for install ffmpeg with cuda

https://github.com/mikysal78/ffmpeg-cuda

and scripts:

https://github.com/mikysal78/scripting/blob/master/videoconverter

what is missing?
Thanks.


Input #0, matroska,webm, from 'Saving Mr Banks (2013).mkv':

   Metadata:
     encoder         : libebml v1.3.1 + libmatroska v1.4.2
     creation_time   : 2015-10-10T11:17:33.000000Z
   Duration: 02:05:40.58, start: 0.040000, bitrate: 1485 kb/s
     Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 
1280x544 [SAR 51:50 DAR 12:5], SAR 209:205 DAR 1672:697, 23.98 fps, 
23.98 tbr, 1k tbn, 47.95 tbc (default)
     Metadata:
       BPS             : 1149816
       BPS-eng         : 1149816
       DURATION        : 02:05:40.533000000
       DURATION-eng    : 02:05:40.533000000
       NUMBER_OF_FRAMES: 180792
       NUMBER_OF_FRAMES-eng: 180792
       NUMBER_OF_BYTES : 1083778510
       NUMBER_OF_BYTES-eng: 1083778510
       _STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 
64bit
       _STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to 
fly') 64bit
       _STATISTICS_WRITING_DATE_UTC: 2015-10-10 11:17:33
       _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-10 11:17:33
       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
     Stream #0:1(ita): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
     Metadata:
       title           : Stereo
       BPS             : 159999
       BPS-eng         : 159999
       DURATION        : 02:05:40.523000000
       DURATION-eng    : 02:05:40.523000000
       NUMBER_OF_FRAMES: 353462
       NUMBER_OF_FRAMES-eng: 353462
       NUMBER_OF_BYTES : 150810454
       NUMBER_OF_BYTES-eng: 150810454
       _STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 
64bit
       _STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to 
fly') 64bit
       _STATISTICS_WRITING_DATE_UTC: 2015-10-10 11:17:33
       _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-10 11:17:33
       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
     Stream #0:2(eng): Audio: aac (LC), 48000 Hz, stereo, fltp
     Metadata:
       title           : Stereo
       BPS             : 160000
       BPS-eng         : 160000
       DURATION        : 02:05:40.544000000
       DURATION-eng    : 02:05:40.544000000
       NUMBER_OF_FRAMES: 353463
       NUMBER_OF_FRAMES-eng: 353463
       NUMBER_OF_BYTES : 150810881
       NUMBER_OF_BYTES-eng: 150810881
       _STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 
64bit
       _STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to 
fly') 64bit
       _STATISTICS_WRITING_DATE_UTC: 2015-10-10 11:17:33
       _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-10 11:17:33
       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
     Stream #0:3(ita): Subtitle: dvd_subtitle, 1920x1080
     Metadata:
       title           : italian
       BPS             : 5851
       BPS-eng         : 5851
       DURATION        : 02:01:50.502000000
       DURATION-eng    : 02:01:50.502000000
       NUMBER_OF_FRAMES: 1654
       NUMBER_OF_FRAMES-eng: 1654
       NUMBER_OF_BYTES : 5347009
       NUMBER_OF_BYTES-eng: 5347009
       _STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 
64bit
       _STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to 
fly') 64bit
       _STATISTICS_WRITING_DATE_UTC: 2015-10-10 11:17:33
       _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-10 11:17:33
       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
     Stream #0:4(eng): Subtitle: dvd_subtitle, 1920x1080
     Metadata:
       title           : english
       BPS             : 7072
       BPS-eng         : 7072
       DURATION        : 02:02:43.062000000
       DURATION-eng    : 02:02:43.062000000
       NUMBER_OF_FRAMES: 2068
       NUMBER_OF_FRAMES-eng: 2068
       NUMBER_OF_BYTES : 6509712
       NUMBER_OF_BYTES-eng: 6509712
       _STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 
64bit
       _STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to 
fly') 64bit
       _STATISTICS_WRITING_DATE_UTC: 2015-10-10 11:17:33
       _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-10 11:17:33
       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Automatic encoder selection failed for output stream #0:2. Default 
encoder for format mp4 (codec none) is probably disabled. Please choose 
an encoder manually.
Error selecting an encoder for stream 0:2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4019 bytes
Desc: Firma crittografica S/MIME
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20200301/7ca6ce75/attachment.bin>


More information about the ffmpeg-user mailing list