[FFmpeg-trac] #4424(avcodec:new): OpenEncodeSessionEx failed: 0x2 ...
FFmpeg
trac at avcodec.org
Fri Apr 3 16:41:07 CEST 2015
#4424: OpenEncodeSessionEx failed: 0x2 ...
---------------------------------+--------------------------------------
Reporter: steve | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: git-master
Keywords: nvenc | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+--------------------------------------
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 at 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
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4424>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list