[FFmpeg-user] ffmpeg with nvenc transcoding alloc buffer error

Steven Liu lingjiujianke at gmail.com
Thu Aug 27 08:26:34 CEST 2015


Hi guys,

       I first use the cuda nvenc to transcoding with ffmpeg nvenc, but the
ffmpeg give me an error bellow:




[root at localhost ffmpeg]# ./x86/ffmpeg -v verbose -i ~/a.mp4 -pix_fmt
yuv420p -vcodec nvenc_h264 -profile:v high -b:v 500k -s 800x480 -preset
llhq -r:v 30 -an b.mp4
ffmpeg version N-74455-g3afca32 Copyright (c) 2000-2015 the FFmpeg
developers
  built with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-16)
  configuration: --enable-nvenc --enable-nonfree
  libavutil      54. 30.100 / 54. 30.100
  libavcodec     56. 57.100 / 56. 57.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 33.100 /  5. 33.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/root/a.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2015-08-19 13:23:08
  Duration: 01:09:02.00, start: 0.000000, bitrate: 2959 kb/s
    Stream #0:0(und): Video: h264 (High), 3 reference frames (avc1 /
0x31637661), yuv420p(tv, bt709), 1920x816, 2765 kb/s, 25 fps, 25 tbr, 25k
tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2015-08-19 13:23:08
      handler_name    : GPAC ISO Video Handler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 190 kb/s (default)
    Metadata:
      creation_time   : 2015-08-19 13:23:14
      handler_name    : GPAC ISO Audio Handler
File 'b.mp4' already exists. Overwrite ? [y/N] y
[graph 0 input from stream 0:0 @ 0x22a22e0] w:1920 h:816 pixfmt:yuv420p
tb:1/25000 fr:25/1 sar:0/1 sws_param:flags=2
[scaler for output stream 0:0 @ 0x22a70e0] w:800 h:480 flags:'bicubic'
interl:0
[scaler for output stream 0:0 @ 0x22a70e0] w:1920 h:816 fmt:yuv420p sar:0/1
-> w:800 h:480 fmt:yuv420p sar:0/1 flags:0x4
[nvenc_h264 @ 0x22a5e60] 1 CUDA capable devices found
[nvenc_h264 @ 0x22a5e60] [ GPU #0 - < Tesla K20c > has Compute SM 3.5,
smver 53 target_smver 48 NVENC Available ]
[nvenc_h264 @ 0x22a5e60] Nvenc initialized successfully
[nvenc_h264 @ 0x22a5e60] CreateInputBuffer failed 0xA
[nvenc_h264 @ 0x22a5e60] Nvenc unloaded
Output #0, mp4, to 'b.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    Stream #0:0(und): Video: h264, 1 reference frame, none, q=2-31, 128
kb/s, 30 fps (default)
    Metadata:
      creation_time   : 2015-08-19 13:23:08
      handler_name    : GPAC ISO Video Handler
      encoder         : Lavc56.57.100 nvenc_h264
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (nvenc_h264))
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
[root at localhost ffmpeg]#


The error Message is [nvenc_h264 @ 0x22a5e60] CreateInputBuffer failed 0xA


or are there any attention with it?



Thanks
 Steven


More information about the ffmpeg-user mailing list