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

%external encoder fails to start #3020

Closed
vitoyucepi opened this issue Apr 23, 2023 · 1 comment
Closed

%external encoder fails to start #3020

vitoyucepi opened this issue Apr 23, 2023 · 1 comment

Comments

@vitoyucepi
Copy link
Collaborator

Describe the bug

2.0.7

output.icecast(%external) starts and works good.
Liquidsoap can't properly terminate the child processes.
Requires SIGKILL to terminate.

2.1.4, 2.2.0+git

output.icecast(%external) doesn't start and throws exception.
Liquidsoap doesn't start and can't terminate itself.
Requires SIGKILL to terminate.

Log
2023/04/23 12:09:41 [clock.main:2] Source radio failed while streaming: Invalid_argument("option is None")!
2023/04/23 12:09:41 [clock.main:2] Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
2023/04/23 12:09:41 [clock.main:2] Called from Stdlib__Option.get in file "option.ml" (inlined), line 21, characters 41-69
2023/04/23 12:09:41 [clock.main:2] Called from External_encoder.encoder.encode in file "src/core/encoder/external_encoder.ml", line 115, characters 24-44
2023/04/23 12:09:41 [clock.main:2] Called from Output.encoded#send_frame.output_chunks.f in file "src/core/outputs/output.ml", line 235, characters 21-59
2023/04/23 12:09:41 [clock.main:2] Called from Output.output#output in file "src/core/outputs/output.ml", line 174, characters 10-35
2023/04/23 12:09:41 [clock.main:2] Called from Clock.MkClock.clock#end_tick.(fun) in file "src/core/clock.ml", line 305, characters 16-24

To Reproduce

Liquidsoap config
encoder = %external(process="lame - -")
output.icecast(
  encoder,
  sine(),
  format = "audio/mpeg",
  host = "icecast",
  port = 8000,
  user = "source",
  password = "hackme",
  mount = "radio"
)

Expected behavior

Version details

  • OS: ubuntu:22.04 in docker
  • Version: 2.1.4, 2.2.0+git@1c17b38

Install method
Deb package from liquidsoap releases at github

Common issues
#3019

toots added a commit that referenced this issue Apr 23, 2023
@toots toots closed this as completed in 04ca200 Apr 23, 2023
@toots
Copy link
Member

toots commented Apr 23, 2023

Thanks for reporting. this should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants