Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Compiling ffmpeg 3.0.X with QuickSync and NVENC for ubuntu 16.04LTS

  1. #11
    Join Date
    Jul 2016
    Beans
    4

    Re: Compiling ffmpeg 3.0.X with QuickSync and NVENC for ubuntu 16.04LTS

    Please Post your /etc/Environment.

    root@tvh1:~# /opt/intel/mediasdk/samples/sample_multi_transcode -i::h264 /opt/intel/mediasdk/samples/streams/test_stream.264 -o::h264 /home/test-stream-264
    Multi Transcoding Sample Version 7.0.16053497

    libva info: VA-API version 0.99.0
    libva info: va_getDriverName() returns 0
    libva info: User requested driver 'iHD'
    libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_0_32
    libva info: va_openDriver() returns 0
    Pipeline surfaces number (DecPool): 20
    MFX HARDWARE Session 0 API ver 1.19 parameters:
    Input video: AVC
    Output video: AVC

    Session 0 was NOT joined with other sessions

    Transcoding started
    ..
    Transcoding finished

    Common transcoding time is 0.06 sec
    MFX session 0 transcoding PASSED:
    Processing time: 0.06 sec
    Number of processed frames: 101

    The test PASSED





    seems everything ok or?



    root@tvh1:/home/jan# ./sys_analyzer_linux.py
    --------------------------
    Hardware readiness checks:
    --------------------------
    [ OK ] Processor name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
    --------------------------
    OS readiness checks:
    --------------------------
    [ OK ] GPU visible to OS
    --------------------------
    Intel(R) Media Server Studio Install:
    --------------------------
    [ OK ] user in video group
    [ OK ] libva.so.1 found
    [ OK ] vainfo reports valid codec entry points
    [ ERROR ] could not open /dev/dri/renderD128

    --------------------------
    Media SDK Plugins available:
    (for more info see /opt/intel/mediasdk/plugins/plugins.cfg)
    --------------------------
    H264LA Encoder = 588f1185d47b42968dea377bb5d0dcb4
    VP8 Decoder = f622394d8d87452f878c51f2fc9b4131
    HEVC Decoder = 33a61c0b4c27454ca8d85dde757c6f8e
    HEVC Encoder = 6fadc791a0c2eb479ab6dcd5ea9da347
    --------------------------
    Component Smoke Tests:
    --------------------------
    [ OK ] Media SDK HW API level:1.19
    [ OK ] Media SDK SW API level:1.19
    [ OK ] OpenCL checklatform:Intel(R) OpenCL GPU OK CPU OK



    the compile from ffmpeg had an error...

    ./configure --enable-nonfree --enable-gpl --enable-libmfx --prefix=/home/ffmpeg --incdir=/opt/intel/mediasdk/include/mfx

    make

    /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm.o): In Funktion `va_DisplayContextGetDriverName':
    (.text+0xaa): Nicht definierter Verweis auf `drmGetMagic'
    /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm_auth.o): In Funktion `va_drm_is_authenticated':
    (.text+0x6a): Nicht definierter Verweis auf `drmGetClient'
    /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm_auth.o): In Funktion `va_drm_authenticate':
    (.text+0xf8): Nicht definierter Verweis auf `drmAuthMagic'
    /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm_utils.o): In Funktion `VA_DRM_GetDriverName':
    (.text+0x2e): Nicht definierter Verweis auf `drmGetVersion'
    /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm_utils.o): In Funktion `VA_DRM_GetDriverName':
    (.text+0x7d): Nicht definierter Verweis auf `drmFreeVersion'
    /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libva-drm.a(va_drm_utils.o): In Funktion `VA_DRM_IsRenderNodeFd':
    (.text+0x133): Nicht definierter Verweis auf `drmGetDeviceNameFromFd'
    collect2: error: ld returned 1 exit status
    Makefile:131: die Regel für Ziel „ffmpeg_g“ scheiterte
    make: *** [ffmpeg_g] Fehler 1

  2. #12
    Join Date
    Mar 2006
    Beans
    90

    Re: Compiling ffmpeg 3.0.X with QuickSync and NVENC for ubuntu 16.04LTS

    Anyone managed to get this working with the latest version? - Could you provide up to date instructions?
    Interested in Linux based CCTV/Security? - Check out the live demo: http://xanview.co.uk

  3. #13
    Join Date
    Jun 2007
    Beans
    17,337

    Re: Compiling ffmpeg 3.0.X with QuickSync and NVENC for ubuntu 16.04LTS

    Quote Originally Posted by hackeron View Post
    Anyone managed to get this working with the latest version? - Could you provide up to date instructions?
    nvenc can simply be enabled in any recent or current git master, ex.
    $ ffmpeg -encoders |grep nvenc
    ffmpeg version git-2017-01-22-7f9978b Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
    configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --disable-ffserver --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libtheora --enable-libwavpack --enable-libopenjpeg --enable-libgsm --enable-nvenc
    libavutil 55. 44.100 / 55. 44.100
    libavcodec 57. 75.100 / 57. 75.100
    libavformat 57. 63.100 / 57. 63.100
    libavdevice 57. 2.100 / 57. 2.100
    libavfilter 6. 69.100 / 6. 69.100
    libavresample 3. 2. 0 / 3. 2. 0
    libswscale 4. 3.101 / 4. 3.101
    libswresample 2. 4.100 / 2. 4.100
    libpostproc 54. 2.100 / 54. 2.100
    V..... h264_nvenc NVIDIA NVENC H.264 encoder (codec h264)
    V..... nvenc NVIDIA NVENC H.264 encoder (codec h264)
    V..... nvenc_h264 NVIDIA NVENC H.264 encoder (codec h264)
    V..... nvenc_hevc NVIDIA NVENC hevc encoder (codec hevc)
    V..... hevc_nvenc NVIDIA NVENC hevc encoder (codec hevc)

  4. #14
    Join Date
    Mar 2006
    Beans
    90

    Re: Compiling ffmpeg 3.0.X with QuickSync and NVENC for ubuntu 16.04LTS

    I do not have an nvidia card - Anyone had any luck with QuickSync?
    Interested in Linux based CCTV/Security? - Check out the live demo: http://xanview.co.uk

  5. #15
    Join Date
    Nov 2008
    Beans
    75

    Re: Compiling ffmpeg 3.0.X with QuickSync and NVENC for ubuntu 16.04LTS

    Compiling ffmpeg should be reasonable start forward I use the following:

    #!/bin/bash
    export LDFLAGS=-L/usr/lib/nvidia-367
    ./configure --enable-nonfree --enable-gpl --enable-version3 --enable-libmfx --enable-libnpp --enable-cuda --enable-nvenc --enable-gcrypt --enable-avisynth --enable-gcrypt --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librtmp --enable-libssh --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-opengl --enable-openssl --enable-libvpx --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libwebp --prefix=/websites/emby_data/ffmpeg --incdir=/opt/intel/mediasdk/include/mfx --enable-opencl
    make
    make clean
    make install

    I just downloaded 3.2 from git and compiled it last week. The key sections are in BOLD

    ERIC

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •