Skip to content

Commit 07bfacf

Browse files
committed
bump version, fix naming
1 parent 16c4d17 commit 07bfacf

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

README.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ It is part of [Membrane Multimedia Framework](https://membraneframework.org).
1313
Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`.
1414

1515
```elixir
16-
{:membrane_camera_capture_plugin, "~> 0.7.0"}
16+
{:membrane_camera_capture_plugin, "~> 0.7.1"}
1717
```
1818

1919
This package depends on the [ffmpeg](https://www.ffmpeg.org) libraries. The precompiled builds will be pulled and linked automatically. However, should there be any problems, consider installing it manually.
2020

21-
### Manual instalation of dependencies
21+
### Manual installation of dependencies
2222
#### Ubuntu
2323

2424
```bash
@@ -39,34 +39,35 @@ brew install ffmpeg
3939

4040
## Sample Usage
4141

42-
Dependencies:
42+
This example displays the stream from your camera on the screen:
4343

4444
```elixir
45-
def deps do
46-
[
47-
{:membrane_camera_capture_plugin, "~> 0.7.0"}
48-
{:membrane_h264_ffmpeg_plugin, "~> 0.21"},
49-
{:membrane_file_plugin, "~> 0.10"},
50-
{:membrane_ffmpeg_swscale_plugin, "~> 0.10"}
51-
]
52-
end
53-
```
45+
Logger.configure(level: :info)
46+
47+
Mix.install([
48+
{:membrane_camera_capture_plugin, "~> 0.7.1"},
49+
:membrane_h264_ffmpeg_plugin,
50+
:membrane_ffmpeg_swscale_plugin,
51+
:membrane_sdl_plugin
52+
])
5453

55-
```elixir
5654
defmodule Example do
5755
use Membrane.Pipeline
5856

5957
@impl true
6058
def handle_init(_ctx, _options) do
61-
structure =
62-
child(:source, Membrane.CameraCapture)
63-
|> child(:converter, %Membrane.FFmpeg.SWScale.PixelFormatConverter{format: :I420})
64-
|> child(:encoder, Membrane.H264.FFmpeg.Encoder)
65-
|> child(:sink, %Membrane.File.Sink{location: "output.h264"})
59+
spec =
60+
child(Membrane.CameraCapture)
61+
|> child(%Membrane.FFmpeg.SWScale.PixelFormatConverter{format: :I420})
62+
|> child(Membrane.SDL.Player)
6663

67-
{[spec: structure], %{}}
64+
{[spec: spec], %{}}
6865
end
6966
end
67+
68+
Membrane.Pipeline.start_link(Example)
69+
70+
Process.sleep(:infinity)
7071
```
7172

7273
## Testing
File renamed without changes.
File renamed without changes.

test/membrane_media_capture_plugin/camera_capture_plugin_test.exs renamed to test/membrane_camera_capture_test.exs

File renamed without changes.

0 commit comments

Comments
 (0)