You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add support for avfoundation (macOS)
* feat: add framerate and resolution selection to device input
* remove custom os flag from Makefile
* refactor: move driver definitions to top of file
* feat: remove default settings for framerate and video_size
* refactor: use explixit defined for every os flag
"the framerate a a 2-element tuple with the first element beign the nominator and the second element the denominator. Will only be used when reading from a device."
39
+
],
40
+
width: [type: :non_neg_integer,default: 0,doc: "the width of the device resolution. Only used when reading from a device."],
41
+
height: [type: :non_neg_integer,default: 0,doc: "the height of the device resolution. Only used when reading from a device."]
34
42
]
35
43
36
44
@typet()::%__MODULE__{
@@ -66,8 +74,16 @@ defmodule Xav.Reader do
66
74
Creates a new audio/video reader.
67
75
68
76
Both reading from a file and from a video camera are supported.
69
-
In case of using a video camera, the v4l2 driver is required, and FPS are
70
-
locked to 10.
77
+
78
+
Linux:
79
+
In case of using a video camera, the v4l2 driver is required.
80
+
81
+
macOS:
82
+
In case of using a video camera, the avfoundation driver is required.
83
+
The name of the device can be found with `ffmpeg -f avfoundation -list_devices true -i ""`
84
+
85
+
Windows:
86
+
In case of using a video camera, the dshow driver is required.
0 commit comments