Bug 202313

Summary: multimedia/ffmpeg: add OPENH264 option
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Thomas Zander <riggs>
Status: Closed FIXED    
Severity: Affects Only Me CC: riggs
Priority: --- Keywords: feature, needs-qa, patch
Version: LatestFlags: bugzilla: maintainer-feedback? (multimedia)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
v0 none

Description Jan Beich freebsd_committer freebsd_triage 2015-08-14 00:46:08 UTC
Created attachment 159853 [details]
v0

multimedia/openh264 doesn't install h264enc/h264dec binaries, so testing the implementation before was a bit non-trivial.

$ ffmpeg -codecs 2>/dev/null | fgrep -i 264
 DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_vdpau ) (encoders: libx264 libx264rgb libopenh264 )

$ ffmpeg -f x11grab -i :0 -codec:v libopenh264 foo.mp4
[...]
Input #0, x11grab, from ':0':
  Duration: N/A, start: 1439513005.309265, bitrate: N/A
    Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 640x480, 29.97 fps, 29.97 tbr, 1000k tbn, 29.97 tbc
[OpenH264] this = 0x0x80ca67090, Warning:bEnableFrameSkip = 0,bitrate can't be controlled for RC_QUALITY_MODE,RC_BITRATE_MODE and RC_TIMESTAMP_MODE without enabling skip frame.
Output #0, mp4, to 'foo.mp4':
  Metadata:
    encoder         : Lavf56.36.100
    Stream #0:0: Video: h264 (libopenh264) ([33][0][0][0] / 0x0021), yuv420p, 640x480, q=2-31, 200 kb/s, 29.97 fps, 30k tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc56.41.100 libopenh264
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libopenh264))
Press [q] to stop, [?] for help
frame=  249 fps= 30 q=-1.0 Lsize=     617kB time=00:00:08.30 bitrate= 608.4kbits/s
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-08-15 11:13:14 UTC
A commit references this bug:

Author: riggs
Date: Sat Aug 15 11:12:45 UTC 2015
New revision: 394295
URL: https://svnweb.freebsd.org/changeset/ports/394295

Log:
  Add non-default OPTION to support multimedia/openh264

  PR:		202313
  Submitted by:	jbeich@FreeBSD.org

Changes:
  head/multimedia/ffmpeg/Makefile