Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE

Running ffserver with cuda hw acceleration

Discussions about problems encountered using ffserver.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

Running ffserver with cuda hw acceleration

Postby akwolf » Tue Dec 20, 2016 11:40 pm

Hello! I am trying to stream to an ffserver but am having some issues. I am using ffmpeg to stream to the ffserver, and the command that I am using is:

Code: Select all
ffmpeg.exe -hwaccel cuvid -c:v h264_cuvid -i input.h264 -c:v h264_nvenc -profile:v high444 -pixel_format yuv444p X.X.X.X/feed1.ffm

When running this command, I get the following error: "CUVID hwaccel requested, but impossible to achieve". I think this is because the ffserver is not running with hw acceleration enabled. When I run the ffmpeg command above with output to a file instead of ffserver feed, I don't receive any errors.

I have found this command in the ffserver guide, hwupload_cuda (ffmpeg org/ffserver-all.html#hwupload_005fcuda-1) but I am unsure on how to use it. Does anyone know on how I can add this command to my ffserver.conf and if this command would help with my problem?

Also when checking decoders on ffserver, cuvid does show up:

Code: Select all
ffserver version N-82880-g02aa070 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libx264 --enable-nonfree --enable-nvenc --enable-cuda --enable-cuvid --extra-cflags=-I../ffmpeg/nv_sdk --extra-ldflags=-L../ffmpeg/nv_sdk
  libavutil      55. 43.100 / 55. 43.100
  libavcodec     57. 68.100 / 57. 68.100
  libavformat    57. 61.100 / 57. 61.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 68.100 /  6. 68.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
 V..... h264_cuvid           Nvidia CUVID H264 decoder (codec h264)
 V..... hevc_cuvid           Nvidia CUVID HEVC decoder (codec hevc)
 V..... mjpeg_cuvid          Nvidia CUVID MJPEG decoder (codec mjpeg)
 V..... mpeg1_cuvid          Nvidia CUVID MPEG1VIDEO decoder (codec mpeg1video)
 V..... mpeg2_cuvid          Nvidia CUVID MPEG2VIDEO decoder (codec mpeg2video)
 V..... mpeg4_cuvid          Nvidia CUVID MPEG4 decoder (codec mpeg4)
 V..... vc1_cuvid            Nvidia CUVID VC1 decoder (codec vc1)
 V..... vp8_cuvid            Nvidia CUVID VP8 decoder (codec vp8)
 V..... vp9_cuvid            Nvidia CUVID VP9 decoder (codec vp9)
Posts: 1
Joined: Tue Dec 20, 2016 11:27 pm

Return to ffserver

Who is online

Users browsing this forum: No registered users and 2 guests