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

Icecast ogg/flac output disconnects when switching to/from fallback source #3770

Open
rmens opened this issue Feb 25, 2024 · 0 comments
Open

Comments

@rmens
Copy link

rmens commented Feb 25, 2024

This is a follow-up to #2965

The bug described in above ticket seems to be back in Liquidsoap 2.2.4 on Debian 12.

I'm using ogg/flac as input via SRT to output three streams to icecast: one mp3, one aac+ and one ogg/flac. When switching from the SRT source to a fallback file the ogg/flac stream disconnects and re-connects after that.

In the log there is an error 2024/02/19 20:14:31 [ZuidWest_FM:2] Error while sending data: could not write data to host: Unix.Unix_error(Unix.EPIPE, "write", "")!

My .liq file can be found here

The full log as reference:

2024/02/19 20:14:14 >>> LOG START
2024/02/19 20:14:09 [ffmpeg.filter.bitstream:3] No valid mode found for filter pgs_frame_merge!
2024/02/19 20:14:09 [main:3] Liquidsoap 2.2.4-1
2024/02/19 20:14:09 [clock:3] Using native (high-precision) implementation for latency control
2024/02/19 20:14:13 [main:3] Standard library loaded in 4.31 seconds.
2024/02/19 20:14:14 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz main.
2024/02/19 20:14:14 [frame:3] Video frame size set to: 1280x720
2024/02/19 20:14:14 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples.
2024/02/19 20:14:14 [frame:3] Targeting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks.
2024/02/19 20:14:14 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks.
2024/02/19 20:14:14 [sandbox:3] Sandboxing disabled
2024/02/19 20:14:14 [startup:3] DSSI plugins registration: 0.00s
2024/02/19 20:14:14 [startup:3] FFmpeg filters registration: 0.02s
2024/02/19 20:14:14 [startup:3] FFmpeg bitstream filters registration: 0.00s
2024/02/19 20:14:14 [startup:3] Lilv plugins registration: 0.00s
2024/02/19 20:14:14 [startup:3] Frei0r plugin registration: 0.00s
2024/02/19 20:14:14 [startup:3] LADSPA plugins registration: 0.00s
2024/02/19 20:14:14 [startup:3] Typechecking: 4.11s
2024/02/19 20:14:14 [startup:3] Evaluation: 0.01s
2024/02/19 20:14:14 [startup:3] Typechecking: 0.03s
2024/02/19 20:14:14 [startup:3] Evaluation: 0.00s
2024/02/19 20:14:14 [startup:3] Typechecking: 0.01s
2024/02/19 20:14:14 [startup:3] Evaluation: 0.42s
2024/02/19 20:14:14 [startup:3] Loaded /etc/liquidsoap/radio.liq: 0.42s
2024/02/19 20:14:14 [blank.strip:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [buffer.producer:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [dummy:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [stereotool.2:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [stereotool:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [source:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [single:3] "/var/audio/fallback.ogg" is static, resolving once for all...
2024/02/19 20:14:14 [stereotool:3] Stereotool initialized! Valid license: true, latency: 0.14s, API/software version: 256/10210
2024/02/19 20:14:14 [single:3] Prepared "/var/audio/fallback.ogg" (RID 0).
2024/02/19 20:14:14 [ZuidWest_FM:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [ZuidWest_FM.2:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [ZuidWest_FM.3:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [clock.main:3] Streaming loop starts in auto-sync mode
2024/02/19 20:14:14 [clock.main:3] Delegating synchronization to CPU clock
2024/02/19 20:14:14 [buffer.consumer:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [safe_blank:3] Content type is {audio=pcm(stereo)}.
2024/02/19 20:14:14 [clock.input.srt:3] Streaming loop starts in auto-sync mode
2024/02/19 20:14:14 [clock.input.srt:3] Delegating synchronization to CPU clock
2024/02/19 20:14:14 [video.converter:3] Using preferred video converter: ffmpeg.
2024/02/19 20:14:14 [audio.converter:3] Using samplerate converter: libsamplerate.
2024/02/19 20:14:14 [video.text:3] Using sdl implementation
2024/02/19 20:14:15 [switch.2:3] Switch to source.
2024/02/19 20:14:15 [mksafe:3] Switch to safe_blank.
2024/02/19 20:14:15 [ZuidWest_FM:3] Connecting mount /zuidwest.stl for source@localhost...
2024/02/19 20:14:15 [ZuidWest_FM:3] Connection setup was successful.
2024/02/19 20:14:15 [ZuidWest_FM.2:3] Connecting mount /zuidwest.mp3 for source@localhost...
2024/02/19 20:14:15 [ZuidWest_FM.2:3] Connection setup was successful.
2024/02/19 20:14:15 [ZuidWest_FM.3:3] Connecting mount /zuidwest.aac for source@localhost...
2024/02/19 20:14:15 [ZuidWest_FM.3:3] Connection setup was successful.
2024/02/19 20:14:16 [switch.2:3] Switch to blank.strip with transition.
2024/02/19 20:14:31 [switch.2:3] Switch to source with forgetful transition.
2024/02/19 20:14:31 [ZuidWest_FM:2] Error while sending data: could not write data to host: Unix.Unix_error(Unix.EPIPE, "write", "")!
2024/02/19 20:14:31 [ZuidWest_FM:3] Closing connection...
2024/02/19 20:14:31 [ZuidWest_FM:3] Will try to reconnect in 3.00 seconds.
2024/02/19 20:14:35 [ZuidWest_FM:3] Connecting mount /zuidwest.stl for source@localhost...
2024/02/19 20:14:35 [ZuidWest_FM:3] Connection setup was successful.
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

1 participant