Don't mean to bump an old thread, but i ran into some problems with this. After compiling, i am getting the following when trying to record with nvenc:
Code:
ben@ben-MS-7887:~/bin$ ./ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 -vcodec nvenc -b:v 4500k ~/test.mkv
ffmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.1 (Ubuntu 4.9.1-16ubuntu6)
configuration: --prefix=/home/ben/ffmpeg_build --extra-cflags=-I/home/ben/ffmpeg_build/include --extra-ldflags=-L/home/ben/ffmpeg_build/lib --bindir=/home/ben/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-nvenc
libavutil 54. 21.100 / 54. 21.100
libavcodec 56. 32.100 / 56. 32.100
libavformat 56. 26.101 / 56. 26.101
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
Input #0, x11grab, from ':0.0':
Duration: N/A, start: 1427760847.294773, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 30 fps, 30 tbr, 1000k tbn, 30 tbc
[nvenc @ 0x34aeb60] >> dl_fn->cu_init(0) - failed with error code 0x3e7
Output #0, matroska, to '/home/ben/test.mkv':
Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, 30 fps
Metadata:
encoder : Lavc56.32.100 nvenc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (nvenc))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Here is the script that I used to compile ffmpeg.
http://www.mediafire.com/view/oc79wc...fmpeg_nvenc.sh
Bookmarks