Opened 9 years ago

Closed 7 years ago

#4424 closed defect (needs_more_info)

OpenEncodeSessionEx failed: 0x2 ...

Reported by: Steven Blatz Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: nvenc
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

Videocard:

Nvidia Gforce 840M

Trying to encode using nvenc it comes a kind of error regarding a "key missing !?" and some invalid params for output stream!

How to reproduce:
root@nvenc:~/bin# ./ffmpeg -vsync -1 -re -i "http://192.168.1.15:4022/udp/232.12.13.1:1234" -acodec libfdk_aac -ac 2 -ar 44100 -ab 96k -codec:v nvenc -b:v 1024k -minrate:v 1024k -maxrate:v 1024k -s 704x576 -aspect 16:9 -g 25 -filter:v yadif -profile:v high -preset hq -f flv "rtmp://22.22.22.22:1935/live/test"
ffmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developers

built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-nvenc
libavutil 54. 22.100 / 54. 22.100
libavcodec 56. 33.100 / 56. 33.100
libavformat 56. 28.100 / 56. 28.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 13.101 / 5. 13.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100

[mpeg2video @ 0x38a6ba0] Invalid frame dimensions 0x0.

Last message repeated 20 times

Input #0, mpegts, from 'http://192.168.1.129:4022/udp/232.12.13.1:1234':

Duration: N/A, start: 77302.676911, bitrate: N/A
Program 3135

Stream #0:0[0x1d6]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 704x576 [SAR 16:11 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1d7](ita): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s

[nvenc @ 0x3933740] OpenEncodeSessionEx failed: 0x2 - invalid license key?

Output #0, flv, to 'rtmp://22.22.22.22:1935/live/test':

Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 16:11 DAR 0:0, 25 fps
Metadata:

encoder : Lavc56.33.100 nvenc

Stream #0:1(ita): Audio: aac, 0 channels, 128 kb/s
Metadata:

encoder : Lavc56.33.100 libfdk_aac

Stream mapping:

Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (nvenc))
Stream #0:1 -> #0:1 (mp2 (native) -> aac (libfdk_aac))

Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

################
ffmpeg version
ffmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developers

built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)

Thank's Steve HQ

Change History (4)

comment:1 by crocus, 9 years ago

The answer is here: http://blog.mediacoderhq.com/mediacoder-nvenc/
NVIDIA GeForce – and all others not in the list above (Kepler and Maxwell GPUs) – Desktop and Mobile Computers – limited to 2 encode sessions per system

comment:2 by Steven Blatz, 9 years ago

Yes but not in our case. I use it for test encoding for one stream only.
Unfortunatly don't work -ask for "a key"

comment:3 by Carl Eugen Hoyos, 8 years ago

Is this still reproducible?

comment:4 by Carl Eugen Hoyos, 7 years ago

Resolution: needs_more_info
Status: newclosed
Note: See TracTickets for help on using tickets.