Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing pipeline including h264 parser in the middle of processing raises an error #798

Open
wkozyra95 opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels

Comments

@wkozyra95
Copy link

Not sure if this is a supported case but when I'm removing pipeline fragment while it is still processing I'm getting

10:44:54.298 [error] GenServer #PID<0.376.0> terminating
** (MatchError) no match of right hand side value: ""
    (membrane_h26x_plugin 0.10.1) lib/membrane_h264_plugin/h26x/exp_golomb_converter.ex:57: Membrane.H26x.ExpGolombConverter.cut_zeros/2
    (membrane_h26x_plugin 0.10.1) lib/membrane_h264_plugin/h26x/exp_golomb_converter.ex:20: Membrane.H26x.ExpGolombConverter.to_integer/2
    (membrane_h26x_plugin 0.10.1) lib/membrane_h264_plugin/h26x/nalu_parser/scheme_parser.ex:118: anonymous fn/3 in Membrane.H26x.NALuParser.SchemeParser.do_parse_with_scheme/4
    (elixir 1.16.2) lib/enum.ex:2528: Enum."-reduce/3-lists^foldl/2-0-"/3
    (membrane_h26x_plugin 0.10.1) lib/membrane_h264_plugin/h26x/nalu_parser/scheme_parser.ex:105: Membrane.H26x.NALuParser.SchemeParser.parse_with_scheme/4
    (membrane_h26x_plugin 0.10.1) lib/membrane_h264_plugin/h264/nalu_parser.ex:28: Membrane.H264.NALuParser.parse_proper_nalu_type/3
    (membrane_h26x_plugin 0.10.1) lib/membrane_h264_plugin/h26x/nalu_parser.ex:71: Membrane.H264.NALuParser.parse/4
    (elixir 1.16.2) lib/enum.ex:1826: Enum."-map_reduce/3-lists^mapfoldl/2-0-"/3
Last message: {Membrane.Core.Message, :terminate, [], []}

Example pipeline:

      child({:video_src, input_id}, %Membrane.File.Source{
        location: sample_path
      })
      |> child({:input_parser, input_id}, %Membrane.H264.Parser{
        output_alignment: :nalu,
        generate_best_effort_timestamps: %{framerate: {30, 1}}
      })
      |> child({:realtimer, input_id}, Membrane.Realtimer)
      |> ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

3 participants