[FFmpeg-devel] NVENC dosenot support Tesla M2090

Steven Liu lingjiujianke at gmail.com
Mon Aug 17 13:47:29 CEST 2015


Hi Timo Rothenpieler


        I have try to transcode the input rtmp stream use nvenc, It give me
the message bellow:

OS info:
[root at localhost ffmpeg]# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
[root at localhost ffmpeg]#

[root at localhost NVIDIA_CUDA-7.0_Samples]# uname -m && cat /etc/*release
x86_64
CentOS Linux release 7.0.1406 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CentOS Linux release 7.0.1406 (Core)
CentOS Linux release 7.0.1406 (Core)



[root at localhost release]# ./deviceQuery
./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "Tesla M2090"
  CUDA Driver Version / Runtime Version          7.0 / 7.0
  CUDA Capability Major/Minor version number:    2.0
  Total amount of global memory:                 5375 MBytes (5636554752
bytes)
  (16) Multiprocessors, ( 32) CUDA Cores/MP:     512 CUDA Cores
  GPU Max Clock rate:                            1301 MHz (1.30 GHz)
  Memory Clock rate:                             1848 Mhz
  Memory Bus Width:                              384-bit
  L2 Cache Size:                                 786432 bytes
  Maximum Texture Dimension Size (x,y,z)         1D=(65536), 2D=(65536,
65535), 3D=(2048, 2048, 2048)
  Maximum Layered 1D Texture Size, (num) layers  1D=(16384), 2048 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(16384, 16384), 2048
layers
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       49152 bytes
  Total number of registers available per block: 32768
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  1536
  Maximum number of threads per block:           1024
  Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
  Max dimension size of a grid size    (x,y,z): (65535, 65535, 65535)
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             512 bytes
  Concurrent copy and kernel execution:          Yes with 2 copy engine(s)
  Run time limit on kernels:                     No
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Enabled
  Device supports Unified Addressing (UVA):      Yes
  Device PCI Domain ID / Bus ID / location ID:   0 / 1 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device
simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 7.0, CUDA Runtime
Version = 7.0, NumDevs = 1, Device0 = Tesla M2090
Result = PASS
[root at localhost release]#





=============================ffmpeg output message===============

[root at localhost ffmpeg]# ./x86/ffmpeg -v verbose -i rtmp://
192.168.100.5/live/liuqi -vcodec nvenc -b:v 2000k -s 800x480 -preset slow
-an a.mkv
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
[flv @ 0x25684c0] max_analyze_duration 5000000 reached at 5000000
microseconds st:0
Input #0, flv, from 'rtmp://192.168.100.5/live/liuqi':
  Metadata:
    Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
    displayWidth    : 1280
    displayHeight   : 720
    fps             : 20
    profile         :
    level           :
  Duration: 00:00:00.00, start: 11886.384000, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), 3 reference frames, yuv420p(tv),
1280x720 [SAR 1:1 DAR 16:9], 5120 kb/s, 8 fps, 8 tbr, 1k tbn, 16 tbc
File 'a.mkv' already exists. Overwrite ? [y/N] y
[graph 0 input from stream 0:0 @ 0x2592820] w:1280 h:720 pixfmt:yuv420p
tb:1/1000 fr:8/1 sar:1/1 sws_param:flags=2
[scaler for output stream 0:0 @ 0x25b0180] w:800 h:480 flags:'bicubic'
interl:0
[scaler for output stream 0:0 @ 0x25b0180] w:1280 h:720 fmt:yuv420p sar:1/1
-> w:800 h:480 fmt:yuv420p sar:16/15 flags:0x4
[nvenc @ 0x2591c20] 1 CUDA capable devices found
[nvenc @ 0x2591c20] [ GPU #0 - < Tesla M2090 > has Compute SM 2.0, NVENC
Not Available ]
[nvenc @ 0x2591c20] No NVENC capable devices found
Output #0, matroska, to 'a.mkv':
  Metadata:
    Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
    displayWidth    : 1280
    displayHeight   : 720
    fps             : 20
    profile         :
    level           :
    Stream #0:0: Video: h264, 1 reference frame, none, q=2-31, 128 kb/s,
SAR 16:15 DAR 0:0, 8 fps
    Metadata:
      encoder         : Lavc56.57.100 nvenc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (nvenc))
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
[root at localhost ffmpeg]#


More information about the ffmpeg-devel mailing list