bare-ffmpeg 1.0.0-8 → 1.0.0-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CMakeLists.txt CHANGED
@@ -8,7 +8,7 @@ project(bare_ffmpeg C CXX)
8
8
 
9
9
  fetch_package("github:holepunchto/libjstl#5b85a24")
10
10
 
11
- find_port(ffmpeg FEATURES dav1d svt-av1 x264)
11
+ find_port(ffmpeg FEATURES gpl dav1d svt-av1 x264 opus)
12
12
 
13
13
  add_bare_module(bare_ffmpeg)
14
14
 
package/lib/codec.js CHANGED
@@ -37,5 +37,6 @@ module.exports = class FFmpegCodec {
37
37
  static MJPEG = this.for(constants.codecs.MJPEG)
38
38
  static H264 = this.for(constants.codecs.H264)
39
39
  static AAC = this.for(constants.codecs.AAC)
40
+ static OPUS = this.for(constants.codecs.OPUS)
40
41
  static AV1 = this.for(constants.codecs.AV1)
41
42
  }
package/lib/constants.js CHANGED
@@ -5,6 +5,7 @@ module.exports = exports = {
5
5
  MJPEG: binding.AV_CODEC_ID_MJPEG,
6
6
  H264: binding.AV_CODEC_ID_H264,
7
7
  AAC: binding.AV_CODEC_ID_AAC,
8
+ OPUS: binding.AV_CODEC_ID_OPUS,
8
9
  AV1: binding.AV_CODEC_ID_AV1
9
10
  },
10
11
  pixelFormats: {
@@ -71,6 +71,7 @@ let defaultURL = null
71
71
 
72
72
  switch (Bare.platform) {
73
73
  case 'darwin':
74
+ case 'ios':
74
75
  defaultURL = '0:0'
75
76
  break
76
77
  case 'linux':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-ffmpeg",
3
- "version": "1.0.0-8",
3
+ "version": "1.0.0-9",
4
4
  "description": "Low-level FFmpeg bindings for Bare",
5
5
  "exports": {
6
6
  ".": "./index.js",