Skip to content

Commit

Permalink
Merge pull request #104 from membraneframework/decoder-annexb
Browse files Browse the repository at this point in the history
Add stream structure constraint to decoder
  • Loading branch information
mat-hek authored Nov 27, 2023
2 parents d16809d + 9b5d4c4 commit 85c9201
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Note: `Membrane.H264.FFmpeg.Parser` has been removed. Now you can use our pure E
Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`.

```elixir
{:membrane_h264_ffmpeg_plugin, "~> 0.31.1"}
{:membrane_h264_ffmpeg_plugin, "~> 0.31.2"}
```

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.
Expand Down
2 changes: 1 addition & 1 deletion lib/membrane_h264_ffmpeg/decoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Membrane.H264.FFmpeg.Decoder do

def_input_pad :input,
flow_control: :auto,
accepted_format: %H264{alignment: :au}
accepted_format: %H264{alignment: :au, stream_structure: :annexb}

def_output_pad :output,
flow_control: :auto,
Expand Down
2 changes: 1 addition & 1 deletion lib/membrane_h264_ffmpeg/encoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule Membrane.H264.FFmpeg.Encoder do

def_output_pad :output,
flow_control: :auto,
accepted_format: %H264{alignment: :au}
accepted_format: %H264{alignment: :au, stream_structure: :annexb}

@default_crf 23
@default_sc_threshold 40
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Membrane.H264.FFmpeg.Plugin.MixProject do
use Mix.Project

@version "0.31.1"
@version "0.31.2"
@github_url "https://github.com/membraneframework/membrane_h264_ffmpeg_plugin"

def project do
Expand Down

0 comments on commit 85c9201

Please sign in to comment.