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

WAV header is not written in each file using output.file and reopen_when #3675

Closed
yan-sag opened this issue Jan 29, 2024 · 1 comment · Fixed by #3676
Closed

WAV header is not written in each file using output.file and reopen_when #3675

yan-sag opened this issue Jan 29, 2024 · 1 comment · Fixed by #3676

Comments

@yan-sag
Copy link

yan-sag commented Jan 29, 2024

Describe the bug
When using output.file with %wav encoder and the reopen_when argument, the WAV header is written only once in the first file.
The following files contain the data but are headerless.

To Reproduce

radio = mksafe( playlist('/home/some/music') )

output.file(
    id="output_file",
    %wav(stereo=true, channels=2, samplesize=16, header=true, duration=60.),
    {time.string("/home/primitive/pige/%Y-%m-%d/%Y-%m-%d-%H_%M_%S.wav")},
    reopen_delay=60.,
    reopen_when={0s},
    radio        
)

Version details

  • OS: Debian bookworm
  • Liquidsoap 2.2.3

Install method
opam

@yan-sag
Copy link
Author

yan-sag commented Jan 30, 2024

I confirm that is fixed.
Thanks @toots

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

Successfully merging a pull request may close this issue.

1 participant