Bug 204511 - multimedia/ffmpeg: add more options for codecs in port libraries
Summary: multimedia/ffmpeg: add more options for codecs in port libraries
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Thomas Zander
URL:
Keywords: feature, patch
Depends on:
Blocks:
 
Reported: 2015-11-13 06:59 UTC by Jan Beich
Modified: 2015-11-14 15:41 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (multimedia)
riggs: merge-quarterly-


Attachments
v1 (beware of typos) (9.18 KB, patch)
2015-11-13 06:59 UTC, Jan Beich
no flags Details | Diff
v1.1 (beware of typos) (9.26 KB, patch)
2015-11-13 07:32 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2015-11-13 06:59:17 UTC
Created attachment 163075 [details]
v1 (beware of typos)

Build log: http://sprunge.us/SHWL
All dependencies are also present in branches/2015Q4.

STRIP=off use case: profiling with pmcstat or dtrace.

$ make showconfig (defaults)
...
     BS2B=off: Bauer Stereophonic-to-Binaural filter
     CACA=off: libcaca graphics library support
     DC1394=off: IIDC-1394 grabbing using libdc1394
     FLITE=off: Voice synthesis support via libflite
     FRIBIDI=off: Bidirectional text support via GNU FriBidi
     GME=off: Game Music Emu demuxer
     ILBC=off: Internet Low Bit Rate codec
     LADSPA=off: LADSPA audio plugins support
     OPENCL=off: Heterogeneous computing via OpenCL
     OPENGL=off: 2D/3D rendering support via OpenGL
     QUVI=off: Flash media stream URLs
     RTCPU=on: Detect CPU capabilities at runtime
     SNAPPY=off: Snappy compression library support
     SSH=off: SSH protocol support
     STRIP=on: Strip binaries before installation
     TWOLAME=off: TwoLAME MP2 audio encoder support
     VIDSTAB=off: Video stabilization filter
     WAVPACK=off: WavPack lossless audio format support
     WEBP=off: WebP image format support
     XCB=on: X11 grabbing using XCB
     ZMQ=off: Message passing via libzmq4
     ZVBI=off: Teletext support via libzvbi

ffmpeg-2.8 also supports the following codecs but their implementations aren't in ports or I couldn't find:

  --enable-libdcadec       enable DCA decoding via libdcadec [no]
  --enable-libiec61883     enable iec61883 via libiec61883 [no]
  --enable-libkvazaar      enable HEVC encoding via libkvazaar [no]
  --enable-libmfx          enable HW acceleration through libmfx
  --enable-libnut          enable NUT (de)muxing via libnut,
                           native (de)muxer exists [no]
  --enable-libshine        enable fixed-point MP3 encoding via libshine [no]
  --enable-libsoxr         enable Include libsoxr resampling [no]
  --enable-libutvideo      enable Ut Video encoding and decoding via libutvideo [no]
  --enable-libxavs         enable AVS encoding via xavs [no]
  --enable-nvenc           enable NVIDIA NVENC support [no]

NVENC requires libnvidia-encode.so.1 which internally depends on libcuda.so.1 and thus NOT provided by x11/nvidia-driver. Linuxulator may help but then one needs recent videocard to avoid "CreateInputBuffer failed" and in linux64 case also fixing libcuda.so.1 to avoid "dl_fn->cu_init(0) - failed with error code 0x3e7" (aka CUDA_ERROR_UNKNOWN).
Comment 1 Jan Beich freebsd_committer freebsd_triage 2015-11-13 07:32:58 UTC
Created attachment 163076 [details]
v1.1 (beware of typos)

Oops, disable XCB and expose XVIDEO. PORTREVISION bump is still preferred for folks who any of the new options set globally in make.conf.
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-11-14 15:35:50 UTC
A commit references this bug:

Author: riggs
Date: Sat Nov 14 15:35:12 UTC 2015
New revision: 401575
URL: https://svnweb.freebsd.org/changeset/ports/401575

Log:
  Update to release 2.8.2 [1], add support for more external codecs [2]

  PR:		204511
  Submitted by:	jbeich [2]
  Reviewed by:	riggs [1]

Changes:
  head/multimedia/ffmpeg/Makefile
  head/multimedia/ffmpeg/distinfo
  head/multimedia/ffmpeg/pkg-plist
Comment 3 Thomas Zander freebsd_committer freebsd_triage 2015-11-14 15:41:20 UTC
Combined this patch with update to upstream release 2.8.2 with one minor change. I really like the simplicity of strip/debug that we had before. Is this really such a common use case? If so, we can still commit afterwards.