All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/ffmpeg: disable build of nvidia hardware acceleration support
@ 2017-07-22 15:13 Bernd Kuhls
  2017-07-22 19:39 ` Thomas Petazzoni
  2017-07-25 22:10 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2017-07-22 15:13 UTC (permalink / raw)
  To: buildroot

ffmpeg always enables support for nvenc/cuda even if their support
libraries are not present:

External libraries providing hardware acceleration:
cuda cuvid nvenc
[...]
Enabled hwaccels:
h264_cuvid mjpeg_cuvid mpeg2_cuvid vc1_cuvid vp9_cuvid
hevc_cuvid mpeg1_cuvid mpeg4_cuvid vp8_cuvid

This leads to a crash in freeswitch git master when transcoding video
streams on a system without nvidia hardware:

2017-07-22 15:06:27.306760 [INFO] avcodec.c:1077 initializing encoder 352x288
2017-07-22 15:06:27.306760 [NOTICE] avcodec.c:828 NVENC HW CODEC ENABLED

This patch disables the support of nvidia hardware acceleration support
for now until the needed packages are added to buildroot. For details
about this please refer to https://developer.nvidia.com/ffmpeg

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/ffmpeg/ffmpeg.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index d41670dec..6dfc62ee7 100644
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -42,6 +42,9 @@ FFMPEG_CONF_OPTS = \
 	--disable-mipsdspr2 \
 	--disable-msa \
 	--enable-hwaccels \
+	--disable-cuda \
+	--disable-cuvid \
+	--disable-nvenc \
 	--disable-avisynth \
 	--disable-frei0r \
 	--disable-libopencore-amrnb \
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/ffmpeg: disable build of nvidia hardware acceleration support
  2017-07-22 15:13 [Buildroot] [PATCH 1/1] package/ffmpeg: disable build of nvidia hardware acceleration support Bernd Kuhls
@ 2017-07-22 19:39 ` Thomas Petazzoni
  2017-07-25 22:10 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-07-22 19:39 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat, 22 Jul 2017 17:13:06 +0200, Bernd Kuhls wrote:
> ffmpeg always enables support for nvenc/cuda even if their support
> libraries are not present:
> 
> External libraries providing hardware acceleration:
> cuda cuvid nvenc
> [...]
> Enabled hwaccels:
> h264_cuvid mjpeg_cuvid mpeg2_cuvid vc1_cuvid vp9_cuvid
> hevc_cuvid mpeg1_cuvid mpeg4_cuvid vp8_cuvid
> 
> This leads to a crash in freeswitch git master when transcoding video
> streams on a system without nvidia hardware:
> 
> 2017-07-22 15:06:27.306760 [INFO] avcodec.c:1077 initializing encoder 352x288
> 2017-07-22 15:06:27.306760 [NOTICE] avcodec.c:828 NVENC HW CODEC ENABLED
> 
> This patch disables the support of nvidia hardware acceleration support
> for now until the needed packages are added to buildroot. For details
> about this please refer to https://developer.nvidia.com/ffmpeg
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/ffmpeg/ffmpeg.mk | 3 +++
>  1 file changed, 3 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/ffmpeg: disable build of nvidia hardware acceleration support
  2017-07-22 15:13 [Buildroot] [PATCH 1/1] package/ffmpeg: disable build of nvidia hardware acceleration support Bernd Kuhls
  2017-07-22 19:39 ` Thomas Petazzoni
@ 2017-07-25 22:10 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-07-25 22:10 UTC (permalink / raw)
  To: buildroot

>>>>> "Bernd" == Bernd Kuhls <bernd.kuhls@t-online.de> writes:

 > ffmpeg always enables support for nvenc/cuda even if their support
 > libraries are not present:

 > External libraries providing hardware acceleration:
 > cuda cuvid nvenc
 > [...]
 > Enabled hwaccels:
 > h264_cuvid mjpeg_cuvid mpeg2_cuvid vc1_cuvid vp9_cuvid
 > hevc_cuvid mpeg1_cuvid mpeg4_cuvid vp8_cuvid

 > This leads to a crash in freeswitch git master when transcoding video
 > streams on a system without nvidia hardware:

 > 2017-07-22 15:06:27.306760 [INFO] avcodec.c:1077 initializing encoder 352x288
 > 2017-07-22 15:06:27.306760 [NOTICE] avcodec.c:828 NVENC HW CODEC ENABLED

 > This patch disables the support of nvidia hardware acceleration support
 > for now until the needed packages are added to buildroot. For details
 > about this please refer to https://developer.nvidia.com/ffmpeg

 > Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Committed to 2017.02.x and 2017.05.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-25 22:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-22 15:13 [Buildroot] [PATCH 1/1] package/ffmpeg: disable build of nvidia hardware acceleration support Bernd Kuhls
2017-07-22 19:39 ` Thomas Petazzoni
2017-07-25 22:10 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.