codemirror-lang-liquidsoap 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +8 -8
- package/dist/index.js +7 -7
- package/package.json +1 -1
- package/src/liquidsoap.grammar +10 -4
- package/src/parser.js +6 -6
- package/tests/liquidsoap/.codespellignore +1 -0
- package/tests/liquidsoap/.github/ISSUE_TEMPLATE/bug_report.yml +16 -0
- package/tests/liquidsoap/.github/docker/alpine.dockerfile +20 -0
- package/tests/liquidsoap/.github/docker/debian.dockerfile +55 -0
- package/tests/liquidsoap/.github/opam/{liquidsoap-core-windows.opam → liquidsoap-windows.opam} +8 -5
- package/tests/liquidsoap/.github/renovate.json +23 -0
- package/tests/liquidsoap/.github/scripts/add-local-opam-packages.sh +5 -3
- package/tests/liquidsoap/.github/scripts/build-apk.sh +10 -19
- package/tests/liquidsoap/.github/scripts/build-deb.sh +6 -15
- package/tests/liquidsoap/.github/scripts/build-details.sh +15 -4
- package/tests/liquidsoap/.github/scripts/build-posix.sh +11 -20
- package/tests/liquidsoap/.github/scripts/build-website.sh +1 -1
- package/tests/liquidsoap/.github/scripts/build-win32.sh +6 -2
- package/tests/liquidsoap/.github/scripts/push-docker.sh +13 -15
- package/tests/liquidsoap/.github/workflows/ci.yml +291 -185
- package/tests/liquidsoap/.ocamlformat +1 -1
- package/tests/liquidsoap/.pre-commit-config.yaml +2 -2
- package/tests/liquidsoap/CHANGES.md +112 -3
- package/tests/liquidsoap/README.md +10 -9
- package/tests/liquidsoap/ROADMAP.md +14 -8
- package/tests/liquidsoap/bin/liquidsoap-macos-instruments +7 -0
- package/tests/liquidsoap/doc/content/build.md +0 -1
- package/tests/liquidsoap/doc/content/faq.md +2 -4
- package/tests/liquidsoap/doc/content/icy_metadata.md +2 -2
- package/tests/liquidsoap/doc/content/install.md +13 -2
- package/tests/liquidsoap/doc/content/json.md +1 -1
- package/tests/liquidsoap/doc/content/language.md +4 -4
- package/tests/liquidsoap/doc/content/liq/beets-protocol.liq +1 -1
- package/tests/liquidsoap/doc/content/liq/crossfade.liq +1 -1
- package/tests/liquidsoap/doc/content/liq/harbor-simple.liq +1 -1
- package/tests/liquidsoap/doc/content/liq/radiopi.liq +10 -9
- package/tests/liquidsoap/doc/content/liq/request.dynamic.liq +1 -1
- package/tests/liquidsoap/doc/content/migrating.md +25 -3
- package/tests/liquidsoap/doc/content/playlist_parsers.md +46 -1
- package/tests/liquidsoap/doc/content/script_loading.md +3 -0
- package/tests/liquidsoap/doc/content/xml.md +160 -0
- package/tests/liquidsoap/doc/dune.inc +129 -0
- package/tests/liquidsoap/dune-project +29 -49
- package/tests/liquidsoap/liquidsoap +1 -1
- package/tests/liquidsoap/{liquidsoap-js.opam → opam/liquidsoap-js.opam} +3 -2
- package/tests/liquidsoap/{liquidsoap-lang.opam → opam/liquidsoap-lang.opam} +4 -3
- package/tests/liquidsoap/{liquidsoap-mode.opam → opam/liquidsoap-mode.opam} +3 -2
- package/tests/liquidsoap/{liquidsoap-core.opam → opam/liquidsoap.opam} +46 -17
- package/tests/liquidsoap/{prometheus-liquidsoap.opam → opam/prometheus-liquidsoap.opam} +2 -1
- package/tests/liquidsoap/{sdl-liquidsoap.opam → opam/sdl-liquidsoap.opam} +2 -1
- package/tests/liquidsoap/{tls-liquidsoap.opam → opam/tls-liquidsoap.opam} +2 -1
- package/tests/liquidsoap/src/bin/dune +1 -1
- package/tests/liquidsoap/src/config/xmlplaylist_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_decoder.ml +22 -22
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_encoder.ml +4 -4
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_filters.ml +37 -41
- package/tests/liquidsoap/src/core/builtins/builtins_files.ml +3 -1
- package/tests/liquidsoap/src/core/builtins/builtins_optionals.ml +0 -1
- package/tests/liquidsoap/src/core/builtins/builtins_process.ml +15 -7
- package/tests/liquidsoap/src/core/builtins/builtins_resolvers.ml +16 -0
- package/tests/liquidsoap/src/core/builtins/builtins_socket.ml +7 -5
- package/tests/liquidsoap/src/core/builtins/builtins_source.ml +3 -3
- package/tests/liquidsoap/src/core/builtins/builtins_srt.ml +84 -8
- package/tests/liquidsoap/src/core/builtins/builtins_string_extra.ml +13 -0
- package/tests/liquidsoap/src/core/builtins/builtins_sys.ml +6 -6
- package/tests/liquidsoap/src/core/builtins/builtins_thread.ml +2 -2
- package/tests/liquidsoap/src/core/builtins/builtins_time.ml +5 -3
- package/tests/liquidsoap/src/core/builtins/builtins_tls.ml +1 -1
- package/tests/liquidsoap/src/core/clock.ml +105 -38
- package/tests/liquidsoap/src/core/clock.mli +1 -0
- package/tests/liquidsoap/src/core/clock_base.ml +2 -2
- package/tests/liquidsoap/src/core/conversions/stereo.ml +6 -8
- package/tests/liquidsoap/src/core/converters/audio_converter.mli +5 -5
- package/tests/liquidsoap/src/core/converters/video_converter.ml +2 -2
- package/tests/liquidsoap/src/core/converters/video_converter.mli +3 -3
- package/tests/liquidsoap/src/core/decoder/decoder.ml +14 -17
- package/tests/liquidsoap/src/core/decoder/decoder.mli +11 -11
- package/tests/liquidsoap/src/core/decoder/decoder_utils.ml +12 -13
- package/tests/liquidsoap/src/core/decoder/decoder_utils.mli +2 -3
- package/tests/liquidsoap/src/core/decoder/external_decoder.ml +9 -13
- package/tests/liquidsoap/src/core/decoder/ffmpeg_decoder.ml +57 -53
- package/tests/liquidsoap/src/core/decoder/ffmpeg_raw_decoder.ml +28 -9
- package/tests/liquidsoap/src/core/decoder/flac_metadata_plug.ml +15 -2
- package/tests/liquidsoap/src/core/decoder/image_decoder.ml +33 -19
- package/tests/liquidsoap/src/core/decoder/liq_flac_decoder.ml +22 -23
- package/tests/liquidsoap/src/core/decoder/liq_ogg_decoder.ml +5 -5
- package/tests/liquidsoap/src/core/decoder/mad_decoder.ml +2 -2
- package/tests/liquidsoap/src/core/decoder/midi_decoder.ml +1 -2
- package/tests/liquidsoap/src/core/decoder/ogg_flac_duration.ml +3 -11
- package/tests/liquidsoap/src/core/decoder/ogg_metadata_plug.ml +15 -2
- package/tests/liquidsoap/src/core/decoder/raw_audio_decoder.ml +8 -7
- package/tests/liquidsoap/src/core/decoder/wav_aiff_decoder.ml +3 -3
- package/tests/liquidsoap/src/core/dune +2 -15
- package/tests/liquidsoap/src/core/encoder/encoder.ml +18 -23
- package/tests/liquidsoap/src/core/encoder/encoder.mli +12 -17
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_encoder.ml +13 -27
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_encoder_common.ml +1 -1
- package/tests/liquidsoap/src/core/encoder/encoders/flac_encoder.ml +3 -4
- package/tests/liquidsoap/src/core/encoder/encoders/ndi_encoder.ml +2 -1
- package/tests/liquidsoap/src/core/encoder/encoders/ogg_encoder.ml +1 -2
- package/tests/liquidsoap/src/core/encoder/lang/lang_external_encoder.ml +2 -2
- package/tests/liquidsoap/src/core/encoder/lang/lang_fdkaac.ml +1 -1
- package/tests/liquidsoap/src/core/encoder/lang/lang_ffmpeg.ml +46 -39
- package/tests/liquidsoap/src/core/encoder/lang/lang_flac.ml +1 -1
- package/tests/liquidsoap/src/core/encoder/lang/lang_shine.ml +2 -2
- package/tests/liquidsoap/src/core/encoder/lang/lang_vorbis.ml +1 -1
- package/tests/liquidsoap/src/core/encoder/lang/lang_wav.ml +1 -1
- package/tests/liquidsoap/src/core/file_watcher.inotify.ml +8 -13
- package/tests/liquidsoap/src/core/harbor/harbor.ml +22 -24
- package/tests/liquidsoap/src/core/io/ffmpeg_filter_io.ml +4 -3
- package/tests/liquidsoap/src/core/io/oss_io.ml +3 -4
- package/tests/liquidsoap/src/core/io/portaudio_io.ml +1 -1
- package/tests/liquidsoap/src/core/io/pulseaudio_io.ml +3 -4
- package/tests/liquidsoap/src/core/io/srt_io.ml +316 -120
- package/tests/liquidsoap/src/core/io/udp_io.ml +14 -12
- package/tests/liquidsoap/src/core/lang.mli +10 -12
- package/tests/liquidsoap/src/core/lang_source.ml +25 -39
- package/tests/liquidsoap/src/core/lang_string.ml +30 -0
- package/tests/liquidsoap/src/core/lang_string.mli +3 -0
- package/tests/liquidsoap/src/core/ogg_formats/ogg_flac_encoder.ml +6 -6
- package/tests/liquidsoap/src/core/ogg_formats/ogg_muxer.ml +17 -27
- package/tests/liquidsoap/src/core/ogg_formats/ogg_muxer.mli +44 -53
- package/tests/liquidsoap/src/core/ogg_formats/opus_encoder.ml +1 -1
- package/tests/liquidsoap/src/core/ogg_formats/vorbis_encoder.ml +1 -2
- package/tests/liquidsoap/src/core/operators/add.ml +2 -2
- package/tests/liquidsoap/src/core/operators/cross.ml +2 -2
- package/tests/liquidsoap/src/core/operators/delay.ml +23 -6
- package/tests/liquidsoap/src/core/operators/dtmf.ml +3 -2
- package/tests/liquidsoap/src/core/operators/dyn_op.ml +2 -2
- package/tests/liquidsoap/src/core/operators/fir_filter.ml +2 -1
- package/tests/liquidsoap/src/core/operators/iir_filter.ml +1 -1
- package/tests/liquidsoap/src/core/operators/insert_metadata.ml +1 -1
- package/tests/liquidsoap/src/core/operators/lilv_op.ml +1 -1
- package/tests/liquidsoap/src/core/operators/lufs.ml +136 -89
- package/tests/liquidsoap/src/core/operators/lufs_c.c +105 -0
- package/tests/liquidsoap/src/core/operators/map_metadata.ml +33 -9
- package/tests/liquidsoap/src/core/operators/max_duration.ml +3 -4
- package/tests/liquidsoap/src/core/operators/muxer.ml +2 -1
- package/tests/liquidsoap/src/core/operators/noblank.ml +6 -6
- package/tests/liquidsoap/src/core/operators/sequence.ml +5 -5
- package/tests/liquidsoap/src/core/operators/switch.ml +10 -11
- package/tests/liquidsoap/src/core/operators/time_warp.ml +14 -11
- package/tests/liquidsoap/src/core/operators/video_fade.ml +2 -3
- package/tests/liquidsoap/src/core/outputs/ao_out.ml +1 -1
- package/tests/liquidsoap/src/core/outputs/bjack_out.ml +1 -1
- package/tests/liquidsoap/src/core/outputs/graphics_out.ml +6 -2
- package/tests/liquidsoap/src/core/outputs/harbor_output.ml +12 -10
- package/tests/liquidsoap/src/core/outputs/hls_output.ml +19 -14
- package/tests/liquidsoap/src/core/outputs/icecast2.ml +85 -52
- package/tests/liquidsoap/src/core/outputs/ndi_out.ml +1 -1
- package/tests/liquidsoap/src/core/outputs/output.ml +8 -9
- package/tests/liquidsoap/src/core/outputs/output.mli +61 -61
- package/tests/liquidsoap/src/core/outputs/pipe_output.ml +8 -6
- package/tests/liquidsoap/src/core/outputs/sdl_out.ml +5 -2
- package/tests/liquidsoap/src/core/playlist_parser.ml +6 -7
- package/tests/liquidsoap/src/core/playlists/playlist_basic.ml +0 -180
- package/tests/liquidsoap/src/core/protocols/annotate.ml +3 -3
- package/tests/liquidsoap/src/core/request.ml +16 -17
- package/tests/liquidsoap/src/core/request.mli +27 -28
- package/tests/liquidsoap/src/core/shebang.ml +3 -2
- package/tests/liquidsoap/src/core/source.ml +104 -63
- package/tests/liquidsoap/src/core/source.mli +249 -247
- package/tests/liquidsoap/src/core/sources/generated.ml +2 -2
- package/tests/liquidsoap/src/core/sources/request_dynamic.ml +2 -2
- package/tests/liquidsoap/src/core/sources/synthesized.ml +2 -2
- package/tests/liquidsoap/src/core/stream/aFrame.mli +7 -9
- package/tests/liquidsoap/src/core/stream/content.mli +4 -13
- package/tests/liquidsoap/src/core/stream/content_base.ml +2 -19
- package/tests/liquidsoap/src/core/stream/content_video.ml +9 -10
- package/tests/liquidsoap/src/core/stream/ffmpeg_copy_content.ml +19 -15
- package/tests/liquidsoap/src/core/stream/ffmpeg_raw_content.ml +26 -9
- package/tests/liquidsoap/src/core/stream/frame.ml +4 -4
- package/tests/liquidsoap/src/core/stream/frame.mli +13 -15
- package/tests/liquidsoap/src/core/stream/frame_base.ml +1 -2
- package/tests/liquidsoap/src/core/stream/frame_settings.ml +14 -14
- package/tests/liquidsoap/src/core/stream/generator.mli +14 -17
- package/tests/liquidsoap/src/core/stream/mFrame.mli +2 -2
- package/tests/liquidsoap/src/core/tools/charset.ml +28 -18
- package/tests/liquidsoap/src/core/tools/charset_base.ml +5 -0
- package/tests/liquidsoap/src/core/tools/child_support.ml +2 -2
- package/tests/liquidsoap/src/core/tools/ffmpeg_avfilter_utils.ml +139 -0
- package/tests/liquidsoap/src/core/tools/ffmpeg_avfilter_utils.mli +22 -0
- package/tests/liquidsoap/src/core/tools/ffmpeg_utils.ml +2 -1
- package/tests/liquidsoap/src/core/tools/lifecycle.mli +4 -4
- package/tests/liquidsoap/src/core/tools/liq_http.ml +44 -19
- package/tests/liquidsoap/src/core/tools/liq_http.mli +1 -1
- package/tests/liquidsoap/src/core/tools/log.ml +3 -8
- package/tests/liquidsoap/src/core/tools/log.mli +1 -1
- package/tests/liquidsoap/src/core/tools/mutex_utils.ml +1 -1
- package/tests/liquidsoap/src/core/tools/pool.ml +2 -2
- package/tests/liquidsoap/src/core/tools/process_handler.mli +30 -27
- package/tests/liquidsoap/src/core/tools/producer_consumer.ml +10 -9
- package/tests/liquidsoap/src/{lang → core/tools}/queues.ml +58 -64
- package/tests/liquidsoap/src/{lang → core/tools}/queues.mli +10 -0
- package/tests/liquidsoap/src/core/tools/sdl_utils.ml +2 -0
- package/tests/liquidsoap/src/core/tools/server.mli +8 -8
- package/tests/liquidsoap/src/core/tools/sha1.ml +2 -1
- package/tests/liquidsoap/src/core/tools/start_stop.ml +2 -1
- package/tests/liquidsoap/src/core/tools/strings.mli +5 -4
- package/tests/liquidsoap/src/core/tools/tutils.ml +7 -7
- package/tests/liquidsoap/src/core/tools/tutils.mli +14 -18
- package/tests/liquidsoap/src/core/tools/unix_c.c +16 -5
- package/tests/liquidsoap/src/core/tools/utils.ml +83 -25
- package/tests/liquidsoap/src/core/tools/wav_aiff.ml +3 -3
- package/tests/liquidsoap/src/core/tools/wav_aiff.mli +7 -7
- package/tests/liquidsoap/src/core/types/format_type.ml +6 -6
- package/tests/liquidsoap/src/js/index.html +1 -154
- package/tests/liquidsoap/src/js/interactive_js.ml +7 -3
- package/tests/liquidsoap/src/js/stdlib_js.liq +6 -0
- package/tests/liquidsoap/src/lang/builtins_lang.ml +8 -0
- package/tests/liquidsoap/src/lang/builtins_null.ml +1 -1
- package/tests/liquidsoap/src/lang/builtins_string.ml +2 -11
- package/tests/liquidsoap/src/lang/builtins_xml.ml +204 -0
- package/tests/liquidsoap/src/lang/cache.ml +7 -2
- package/tests/liquidsoap/src/lang/dune +5 -2
- package/tests/liquidsoap/src/lang/flags.ml +2 -2
- package/tests/liquidsoap/src/lang/lang.mli +10 -12
- package/tests/liquidsoap/src/lang/lang_core.ml +24 -24
- package/tests/liquidsoap/src/lang/lang_eval.ml +1 -1
- package/tests/liquidsoap/src/lang/lang_string.ml +7 -13
- package/tests/liquidsoap/src/lang/lang_string.mli +0 -1
- package/tests/liquidsoap/src/lang/lexer.ml +3 -0
- package/tests/liquidsoap/src/lang/parser.mly +7 -4
- package/tests/liquidsoap/src/lang/parser_helper.ml +9 -77
- package/tests/liquidsoap/src/lang/parser_helper.mli +1 -1
- package/tests/liquidsoap/src/lang/pos.ml +4 -4
- package/tests/liquidsoap/src/lang/pos.mli +55 -0
- package/tests/liquidsoap/src/lang/preprocessor.ml +12 -5
- package/tests/liquidsoap/src/lang/repr.ml +6 -6
- package/tests/liquidsoap/src/lang/runtime.ml +55 -48
- package/tests/liquidsoap/src/lang/runtime.mli +8 -3
- package/tests/liquidsoap/src/lang/term/parsed_term.ml +33 -33
- package/tests/liquidsoap/src/lang/term/term_base.ml +14 -10
- package/tests/liquidsoap/src/lang/term/term_preprocessor.ml +28 -1
- package/tests/liquidsoap/src/lang/term/term_reducer.ml +244 -132
- package/tests/liquidsoap/src/lang/term/term_reducer.mli +10 -2
- package/tests/liquidsoap/src/lang/term/term_stdlib.ml +14 -13
- package/tests/liquidsoap/src/lang/term.mli +3 -1
- package/tests/liquidsoap/src/lang/typechecking.ml +16 -16
- package/tests/liquidsoap/src/lang/typechecking.mli +5 -1
- package/tests/liquidsoap/src/lang/types/type_base.ml +16 -17
- package/tests/liquidsoap/src/lang/typing.ml +13 -12
- package/tests/liquidsoap/src/lang/typing.mli +2 -1
- package/tests/liquidsoap/src/lang/value.ml +20 -14
- package/tests/liquidsoap/src/libs/audio.liq +53 -18
- package/tests/liquidsoap/src/libs/autocue.liq +8 -8
- package/tests/liquidsoap/src/libs/clock.liq +3 -3
- package/tests/liquidsoap/src/libs/dune +2 -2
- package/tests/liquidsoap/src/libs/extra/audio.liq +4 -4
- package/tests/liquidsoap/src/libs/extra/audioscrobbler.liq +487 -0
- package/tests/liquidsoap/src/libs/extra/deprecations.liq +11 -11
- package/tests/liquidsoap/src/libs/extra/externals.liq +9 -9
- package/tests/liquidsoap/src/libs/extra/fades.liq +2 -2
- package/tests/liquidsoap/src/libs/extra/file.liq +1 -1
- package/tests/liquidsoap/src/libs/extra/http.liq +4 -4
- package/tests/liquidsoap/src/libs/extra/interactive.liq +1 -1
- package/tests/liquidsoap/src/libs/extra/metadata.liq +3 -3
- package/tests/liquidsoap/src/libs/extra/native.liq +6 -6
- package/tests/liquidsoap/src/libs/extra/server.liq +2 -2
- package/tests/liquidsoap/src/libs/extra/source.liq +10 -10
- package/tests/liquidsoap/src/libs/extra/spinitron.liq +11 -11
- package/tests/liquidsoap/src/libs/extra/telnet.liq +51 -0
- package/tests/liquidsoap/src/libs/extra/video.liq +2 -2
- package/tests/liquidsoap/src/libs/fades.liq +70 -57
- package/tests/liquidsoap/src/libs/ffmpeg.liq +50 -33
- package/tests/liquidsoap/src/libs/file.liq +8 -8
- package/tests/liquidsoap/src/libs/hls.liq +5 -5
- package/tests/liquidsoap/src/libs/http.liq +64 -37
- package/tests/liquidsoap/src/libs/icecast.liq +1 -1
- package/tests/liquidsoap/src/libs/io.liq +6 -6
- package/tests/liquidsoap/src/libs/medialib.liq +46 -45
- package/tests/liquidsoap/src/libs/metadata.liq +4 -4
- package/tests/liquidsoap/src/libs/null.liq +3 -3
- package/tests/liquidsoap/src/libs/playlist.liq +547 -22
- package/tests/liquidsoap/src/libs/protocols.liq +14 -14
- package/tests/liquidsoap/src/libs/replaygain.liq +11 -11
- package/tests/liquidsoap/src/libs/request.liq +27 -29
- package/tests/liquidsoap/src/libs/runtime.liq +2 -0
- package/tests/liquidsoap/src/libs/source.liq +15 -15
- package/tests/liquidsoap/src/libs/sqlite.liq +1 -1
- package/tests/liquidsoap/src/libs/stdlib.liq +1 -1
- package/tests/liquidsoap/src/libs/string.liq +6 -6
- package/tests/liquidsoap/src/libs/switches.liq +3 -3
- package/tests/liquidsoap/src/libs/thread.liq +3 -9
- package/tests/liquidsoap/src/libs/tracks.liq +23 -9
- package/tests/liquidsoap/src/libs/video.liq +32 -32
- package/tests/liquidsoap/src/modules/dtools/README.md +58 -0
- package/tests/liquidsoap/src/modules/dtools/dtools.ml +19 -0
- package/tests/liquidsoap/src/modules/dtools/dtools.mli +284 -0
- package/tests/liquidsoap/src/modules/dtools/dtools_impl.ml +860 -0
- package/tests/liquidsoap/src/modules/dtools/dtools_syslog.impl.ml +45 -0
- package/tests/liquidsoap/src/modules/dtools/dtools_syslog.noop.ml +1 -0
- package/tests/liquidsoap/src/modules/dtools/dune +12 -0
- package/tests/liquidsoap/src/modules/duppy/.merlin +4 -0
- package/tests/liquidsoap/src/modules/duppy/README.md +47 -0
- package/tests/liquidsoap/src/modules/duppy/dune +7 -0
- package/tests/liquidsoap/src/modules/duppy/duppy.ml +1097 -0
- package/tests/liquidsoap/src/modules/duppy/duppy.mli +494 -0
- package/tests/liquidsoap/src/modules/duppy/duppy_stubs.c +176 -0
- package/tests/liquidsoap/src/modules/duppy/examples/dune +9 -0
- package/tests/liquidsoap/src/modules/duppy/examples/http.ml +560 -0
- package/tests/liquidsoap/src/modules/duppy/examples/index.html +1 -0
- package/tests/liquidsoap/src/modules/duppy/examples/telnet.ml +150 -0
- package/tests/liquidsoap/src/modules/xmlplaylist/dune +5 -0
- package/tests/liquidsoap/src/modules/xmlplaylist/xmlplaylist.ml +185 -0
- package/tests/liquidsoap/src/modules/xmlplaylist/xmlplaylist.mli +56 -0
- package/tests/liquidsoap/src/ndi/ndi.mli +2 -3
- package/tests/liquidsoap/src/runtime/build_config.ml +0 -1
- package/tests/liquidsoap/src/runtime/main.ml +4 -23
- package/tests/liquidsoap/src/stereotool/stereotool.mli +3 -3
- package/tests/liquidsoap/src/tooling/parsed_json.ml +6 -4
- package/tests/liquidsoap/tests/core/content_test.ml +2 -39
- package/tests/liquidsoap/tests/core/dune +13 -0
- package/tests/liquidsoap/tests/core/dune.inc +1 -1
- package/tests/liquidsoap/tests/core/gen_dune.ml +4 -1
- package/tests/liquidsoap/tests/core/json_test.ml +10 -0
- package/tests/liquidsoap/tests/core/more_types.ml +32 -28
- package/tests/liquidsoap/tests/core/output_encoded_test.ml +2 -0
- package/tests/liquidsoap/tests/core/string_test.ml +4 -0
- package/tests/liquidsoap/tests/core/types.ml +1 -1
- package/tests/liquidsoap/tests/harbor/http.liq +1 -1
- package/tests/liquidsoap/tests/harbor/http2.liq +1 -1
- package/tests/liquidsoap/tests/language/cue_test.liq +3993 -0
- package/tests/liquidsoap/tests/language/dune.inc +24 -0
- package/tests/liquidsoap/tests/language/error.liq +1 -1
- package/tests/liquidsoap/tests/language/json.liq +11 -11
- package/tests/liquidsoap/tests/language/list.liq +1 -1
- package/tests/liquidsoap/tests/language/metadata.liq +1 -1
- package/tests/liquidsoap/tests/language/null.liq +9 -9
- package/tests/liquidsoap/tests/language/record.liq +23 -23
- package/tests/liquidsoap/tests/language/replaygain.liq +8 -8
- package/tests/liquidsoap/tests/language/sqlite.liq +1 -1
- package/tests/liquidsoap/tests/language/string.liq +1 -1
- package/tests/liquidsoap/tests/language/type_errors.liq +2 -2
- package/tests/liquidsoap/tests/language/typing.liq +2 -2
- package/tests/liquidsoap/tests/language/various.liq +1 -0
- package/tests/liquidsoap/tests/language/xml_test.liq +132 -0
- package/tests/liquidsoap/tests/media/dune +74 -0
- package/tests/liquidsoap/tests/media/dune.inc +63 -0
- package/tests/liquidsoap/tests/media/ffmpeg_add_text.liq +42 -56
- package/tests/liquidsoap/tests/media/ffmpeg_copy_concat.liq +5 -2
- package/tests/liquidsoap/tests/media/ffmpeg_distributed_hls.liq +2 -4
- package/tests/liquidsoap/tests/media/ffmpeg_filter_changing_rate.liq +1 -1
- package/tests/liquidsoap/tests/media/ffmpeg_inline_encode_decode_audio.liq +1 -5
- package/tests/liquidsoap/tests/media/ffmpeg_inline_encode_decode_video.liq +1 -3
- package/tests/liquidsoap/tests/media/ffmpeg_raw_and_encode_decoder.liq +1 -3
- package/tests/liquidsoap/tests/media/ffmpeg_raw_hls.liq +2 -4
- package/tests/liquidsoap/tests/media/ffmpeg_raw_implicit_conversion.liq +63 -0
- package/tests/liquidsoap/tests/media/gen_dune.ml +1 -0
- package/tests/liquidsoap/tests/media/image_decoder_duration.liq +15 -0
- package/tests/liquidsoap/tests/media/lufs_integrated.liq +17 -0
- package/tests/liquidsoap/tests/regression/AC5109.liq +2 -2
- package/tests/liquidsoap/tests/regression/GH1129.liq +3 -3
- package/tests/liquidsoap/tests/regression/GH1279.liq +2 -2
- package/tests/liquidsoap/tests/regression/GH1327.liq +3 -3
- package/tests/liquidsoap/tests/regression/GH2585.liq +0 -2
- package/tests/liquidsoap/tests/regression/GH2756-2.liq +3 -3
- package/tests/liquidsoap/tests/regression/GH2756.liq +2 -2
- package/tests/liquidsoap/tests/regression/GH3134.liq +2 -2
- package/tests/liquidsoap/tests/regression/GH3303.liq +2 -2
- package/tests/liquidsoap/tests/regression/GH4163.liq +14 -3
- package/tests/liquidsoap/tests/regression/GH4281-2.liq +29 -0
- package/tests/liquidsoap/tests/regression/GH4281.liq +29 -0
- package/tests/liquidsoap/tests/regression/GH4395.liq +27 -0
- package/tests/liquidsoap/tests/regression/LS354-1.liq +1 -1
- package/tests/liquidsoap/tests/regression/LS354-2.liq +1 -1
- package/tests/liquidsoap/tests/regression/append-merge.liq +3 -1
- package/tests/liquidsoap/tests/regression/dune.inc +64 -0
- package/tests/liquidsoap/tests/regression/fallible_ogg.liq +9 -0
- package/tests/liquidsoap/tests/regression/init-error.liq +2 -0
- package/tests/liquidsoap/tests/regression/seek_track_map.liq +1 -1
- package/tests/liquidsoap/tests/regression/source_dynamic.liq +2 -2
- package/tests/liquidsoap/tests/run_test.ml +53 -60
- package/tests/liquidsoap/tests/streams/cross-override-end.liq +9 -2
- package/tests/liquidsoap/tests/streams/cross-override-start.liq +9 -2
- package/tests/liquidsoap/tests/streams/cross-override.liq +9 -2
- package/tests/liquidsoap/tests/streams/cross-persist-end-override.liq +9 -2
- package/tests/liquidsoap/tests/streams/cross-persist-override.liq +9 -2
- package/tests/liquidsoap/tests/streams/cross-persist-start-override.liq +9 -2
- package/tests/liquidsoap/tests/streams/cross.liq +8 -2
- package/tests/liquidsoap/tests/streams/crossfade-plot.liq +11 -8
- package/tests/liquidsoap/tests/streams/crossfade-plot.new.txt +148 -248
- package/tests/liquidsoap/tests/streams/crossfade-plot.old.txt +50 -150
- package/tests/liquidsoap/tests/streams/crossfade.liq +8 -2
- package/tests/liquidsoap/tests/streams/ctype2.liq +1 -1
- package/tests/liquidsoap/tests/streams/dune.inc +31 -0
- package/tests/liquidsoap/tests/streams/fades-overrides.liq +9 -2
- package/tests/liquidsoap/tests/streams/fades-persistent-override.liq +9 -2
- package/tests/liquidsoap/tests/streams/harbor_metadata_3.liq +1 -1
- package/tests/liquidsoap/tests/streams/hls_id3v2.liq +11 -7
- package/tests/liquidsoap/tests/streams/icecast_last_meta.liq +47 -0
- package/tests/liquidsoap/tests/streams/icecast_ssl.liq +3 -0
- package/tests/liquidsoap/tests/streams/icecast_ssl_tls.liq +3 -3
- package/tests/liquidsoap/tests/streams/icecast_tls.liq +1 -0
- package/tests/liquidsoap/tests/streams/icecast_tls_ssl.liq +5 -0
- package/tests/liquidsoap/tests/streams/no-cue-cut.liq +2 -2
- package/tests/liquidsoap/tests/streams/random.liq +2 -2
- package/tests/liquidsoap/tests/streams/replaygain.liq +10 -10
- package/tests/liquidsoap/tests/streams/rotate.liq +6 -1
- package/tests/liquidsoap/tests/streams/say.liq +2 -2
- package/tests/liquidsoap/tests/streams/srt_listen_callback.liq +1 -0
- package/tests/liquidsoap/tests/streams/srt_multiple_outputs.liq +1 -0
- package/tests/liquidsoap/tests/streams/srt_passphrase.liq +1 -0
- package/tests/liquidsoap/tests/streams/srt_raw_pcm.liq +1 -0
- package/tests/liquidsoap/tests/test.liq +4 -5
- package/tests/liquidsoap/.github/docker/Dockerfile.production +0 -37
- package/tests/liquidsoap/.github/docker/Dockerfile.production-alpine +0 -18
- package/tests/liquidsoap/.github/opam/packages/metadata/metadata.0.3.0/opam +0 -33
- package/tests/liquidsoap/.github/scripts/build-docker-alpine.sh +0 -31
- package/tests/liquidsoap/.github/scripts/build-docker.sh +0 -35
- package/tests/liquidsoap/liquidsoap-libs-extra.opam +0 -32
- package/tests/liquidsoap/liquidsoap-libs.opam +0 -31
- package/tests/liquidsoap/liquidsoap.opam +0 -63
- package/tests/liquidsoap/src/core/builtins/builtins_lastfm.ml +0 -110
- package/tests/liquidsoap/src/core/tools/liqfm.ml +0 -244
- package/tests/liquidsoap/src/libs/extra/lastfm.liq +0 -185
- /package/tests/liquidsoap/.github/docker/{Dockerfile.website → website.dockerfile} +0 -0
- /package/tests/liquidsoap/.github/opam/packages/ffmpeg-av-windows/{ffmpeg-av-windows.1.2.0 → ffmpeg-av-windows.1.2.5}/opam +0 -0
- /package/tests/liquidsoap/.github/opam/packages/ffmpeg-avcodec-windows/{ffmpeg-avcodec-windows.1.2.0 → ffmpeg-avcodec-windows.1.2.5}/opam +0 -0
- /package/tests/liquidsoap/.github/opam/packages/ffmpeg-avdevice-windows/{ffmpeg-avdevice-windows.1.2.0 → ffmpeg-avdevice-windows.1.2.5}/opam +0 -0
- /package/tests/liquidsoap/.github/opam/packages/ffmpeg-avfilter-windows/{ffmpeg-avfilter-windows.1.2.0 → ffmpeg-avfilter-windows.1.2.5}/opam +0 -0
- /package/tests/liquidsoap/.github/opam/packages/ffmpeg-avutil-windows/{ffmpeg-avutil-windows.1.2.0 → ffmpeg-avutil-windows.1.2.5}/opam +0 -0
- /package/tests/liquidsoap/.github/opam/packages/ffmpeg-swresample-windows/{ffmpeg-swresample-windows.1.2.0 → ffmpeg-swresample-windows.1.2.5}/opam +0 -0
- /package/tests/liquidsoap/.github/opam/packages/ffmpeg-swscale-windows/{ffmpeg-swscale-windows.1.2.0 → ffmpeg-swscale-windows.1.2.5}/opam +0 -0
- /package/tests/liquidsoap/.github/opam/packages/ffmpeg-windows/{ffmpeg-windows.1.2.0 → ffmpeg-windows.1.2.5}/opam +0 -0
- /package/tests/liquidsoap/{liquidsoap-mode.opam.template → opam/liquidsoap-mode.opam.template} +0 -0
- /package/tests/liquidsoap/{liquidsoap.opam.template → opam/liquidsoap.opam.template} +0 -0
|
@@ -26,7 +26,7 @@ repos:
|
|
|
26
26
|
exclude: dune.inc
|
|
27
27
|
|
|
28
28
|
- repo: https://github.com/savonet/pre-commit-liquidsoap
|
|
29
|
-
rev:
|
|
29
|
+
rev: 056cf2da9d985e1915a069679f126a461206504a
|
|
30
30
|
hooks:
|
|
31
31
|
- id: liquidsoap-prettier
|
|
32
32
|
|
|
@@ -41,7 +41,7 @@ repos:
|
|
|
41
41
|
hooks:
|
|
42
42
|
- id: codespell
|
|
43
43
|
args: [-w, --ignore-words=.codespellignore]
|
|
44
|
-
exclude: ^doc/orig/fosdem2020
|
|
44
|
+
exclude: ^(doc/orig/fosdem2020|tests/language/cue_test.liq)
|
|
45
45
|
|
|
46
46
|
- repo: local
|
|
47
47
|
hooks:
|
|
@@ -1,26 +1,135 @@
|
|
|
1
|
-
|
|
1
|
+
2.3.4 (unreleased)
|
|
2
2
|
|
|
3
3
|
New:
|
|
4
4
|
|
|
5
|
+
- Added `liquidsoap.script.path` that contains the path to the current
|
|
6
|
+
script's file, if available.
|
|
7
|
+
- `null` can now be used directly without having to call `null()`.
|
|
8
|
+
`null(value)` calls are still valid and can be used to create
|
|
9
|
+
non-null values with nullable types. Calls to `null()` are marked
|
|
10
|
+
as deprecated (#4516)
|
|
11
|
+
|
|
12
|
+
Changed:
|
|
13
|
+
|
|
14
|
+
- Improved source and clock naming (#4497)
|
|
15
|
+
|
|
16
|
+
Fixed:
|
|
17
|
+
|
|
18
|
+
- Don't mark source as ready until their clock has started. (#4496)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# 2.3.3 (2025-05-16)
|
|
23
|
+
|
|
24
|
+
New:
|
|
25
|
+
|
|
26
|
+
- `input.srt`: add `ipv6only` to allow to bind only to ipv6 addresses.
|
|
27
|
+
Set it to `true` when `bind_address` is ipv6.
|
|
28
|
+
- Allow HLS segment names to contain sub-directories.
|
|
29
|
+
- Implicitly convert ffmpeg raw audio data, making it much more practical
|
|
30
|
+
to write scripts using the raw ffmpeg format (#4478)
|
|
31
|
+
|
|
32
|
+
Changed:
|
|
33
|
+
|
|
34
|
+
- Made `defer` more user-friendly by operating directly on generic `source(audio=pcm('a))`
|
|
35
|
+
sources. Renamed old `defer` to `defer.pcm_s16`
|
|
36
|
+
- `dtools`, `duppy` and `xmlplaylist` have been moved into the liquidsoap code
|
|
37
|
+
base and will no longer be developed or required as stand-alone packages (#12582)
|
|
38
|
+
- Changed default value of `metadata.map` `strip` argument to `true` and `insert_missing`
|
|
39
|
+
to `false` Added `settings.metadata.map.strip` and `settings.metadata.map.insert_missing`
|
|
40
|
+
configuration keys to revert to previous defaults. (#4447)
|
|
41
|
+
- Made crossfade metadata override dynamic. Some overridden parameters where never effectively
|
|
42
|
+
applied if they were passed after the start of the crossfade. This should make crossfade behave
|
|
43
|
+
as expected but may also change some crossfade computations (#4492)
|
|
44
|
+
|
|
45
|
+
Fixed:
|
|
46
|
+
|
|
47
|
+
- Do not send empty metadata to shoutcast servers (#4408)
|
|
48
|
+
- Automatically close file descriptor opened via scripted values with a log message
|
|
49
|
+
warning of file descriptor leaks (#4481)
|
|
50
|
+
- Fixed segfault in new `lufs` C code introduced with release `2.3.2` (#4490)
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
# 2.3.2 (2025-04-01) 🃏
|
|
55
|
+
|
|
56
|
+
New:
|
|
57
|
+
|
|
58
|
+
- Added support for multiple metadata fields in
|
|
59
|
+
ogg and flac metadata
|
|
60
|
+
- Added support for track-level REM ALBUM in cue file parsing
|
|
61
|
+
(#4381)
|
|
62
|
+
|
|
63
|
+
Changed:
|
|
64
|
+
|
|
65
|
+
- Added `"pic"` to list of excluded metadata for automatic charset conversion.
|
|
66
|
+
- Added `settings.charset.max_string_length` setting to prevent automatic charset
|
|
67
|
+
conversions of strings over that length.
|
|
68
|
+
|
|
69
|
+
Fixed:
|
|
70
|
+
|
|
71
|
+
- Optimized CPU usage (#4369, #4370)
|
|
72
|
+
- Fixed empty initial HLS segment (#4401)
|
|
73
|
+
- Fixed support for `duration` metadata in image decoder (#4397)
|
|
74
|
+
- Fixed cue-out bug in cue file parsing (#4381)
|
|
75
|
+
- Bring back parse error location. (#4362)
|
|
76
|
+
- Fixed SRT encoding when restarting a stream with reverse data flow
|
|
77
|
+
(#4399)
|
|
78
|
+
- Make sure that audioscrobbler `on_track`/`on_end` operations are
|
|
79
|
+
sent to a asynchronous task queue.
|
|
80
|
+
- Fixed resources accumulation leading to catchup when using `crossfade`
|
|
81
|
+
(#4419, #4410)
|
|
82
|
+
- Fixed source reselection logic issue that was causing crashes when using
|
|
83
|
+
`switch` and `fallback` operators (#4420)
|
|
84
|
+
- Fixed self-sync logic with pulse audio outputs (#4429)
|
|
85
|
+
- Fixed script caching on windows.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
# 2.3.1 (2025-02-05)
|
|
90
|
+
|
|
91
|
+
New:
|
|
92
|
+
|
|
93
|
+
- Added support for address resolution preference in SRT (#4317)
|
|
94
|
+
- Added global address resolution settings for SRT and Icecast (#4317)
|
|
95
|
+
- Added support for parsing and rendering XML natively (#4252)
|
|
5
96
|
- Added support for `WAVE_FORMAT_EXTENSIBLE` to the internal
|
|
6
97
|
wav dexcoder.
|
|
7
98
|
- Added optional `buffer_size` parameter to `input.alsa` and
|
|
8
99
|
`output.alsa` (#4243)
|
|
100
|
+
- Reimplemented audioscrobbler support natively using the more
|
|
101
|
+
recent protocol (#4250)
|
|
102
|
+
- Added boolean getter to disable/enable normalization
|
|
103
|
+
(#4308)
|
|
9
104
|
|
|
10
105
|
Changed:
|
|
11
106
|
|
|
12
107
|
- Make alsa I/O work with buffer size different than
|
|
13
108
|
liquidsoap internal frame (#4236)
|
|
109
|
+
- Reimplemented CUE file parser in native liquidsoap script,
|
|
110
|
+
added support for multiple files and EAC non-compliant extension
|
|
111
|
+
(#1373, #4330)
|
|
14
112
|
- Make `"song"` metadata mapping to `"title"` metadata in
|
|
15
|
-
`input.
|
|
113
|
+
`input.harbor` disabled when either `"artist"` or `"title"`
|
|
16
114
|
is also passed. Add a configuration key to disable this mechanism.
|
|
17
115
|
(#4235, #2676)
|
|
116
|
+
- `output.icecast` now re-sends the last metadata when connecting to the
|
|
117
|
+
remote server unless explicitly disabled using the `send_last_metadata_on_connect`
|
|
118
|
+
option (#3906)
|
|
119
|
+
- Add full explicit support for `ipv4` vs. `ipv6` resolution in SRT inputs and outputs,
|
|
120
|
+
add global `settings.srt.prefer_address` and `settings.icecast.prefer_address` (#4317)
|
|
121
|
+
- Added generic SRT socket get/set API. Added new socket options, including `latency`
|
|
122
|
+
and `ipv6only`.
|
|
18
123
|
|
|
19
124
|
Fixed:
|
|
20
125
|
|
|
21
126
|
- Fixed request resolution loop when enabling both `autocue`
|
|
22
127
|
and `replaygain` metadata resolvers (#4245, fixed in #4246)
|
|
128
|
+
- Fixed `flac` encoding segfault (#4286, #4274)
|
|
129
|
+
- Fixed source `last_metadata` not being properly updated (#4262)
|
|
23
130
|
- Convert all ICY (icecast) metadata from `input.http` to `utf8`.
|
|
131
|
+
- Fixed `inotify` unwatching due to GC cleanup (#4275)
|
|
132
|
+
- Fixed `delay` initial conditions (#4281)
|
|
24
133
|
|
|
25
134
|
---
|
|
26
135
|
|
|
@@ -385,7 +494,7 @@ Changed:
|
|
|
385
494
|
into, respectively, `decoder.add`, `decoder.oblivious.add`, `decoder.metadata.add`
|
|
386
495
|
- Deprecated `get_mime`, added `file.mime.libmagic` and `file.mime.cli`, made
|
|
387
496
|
`file.mime` try `file.mime.libmagic` if present and `file.mime.cli` otherwise,
|
|
388
|
-
changed
|
|
497
|
+
changed returned value when no mime was found to `null`.
|
|
389
498
|
- Return a nullable float in `request.duration`.
|
|
390
499
|
- Removed `--list-plugins-json` and `--list-plugins-xml` options.
|
|
391
500
|
- Added `--list-functions-json` option.
|
|
@@ -9,7 +9,7 @@ offers a rich collection of operators that you can combine to create and
|
|
|
9
9
|
transform streams. Liquidsoap is very light and easy to use, in the Unix
|
|
10
10
|
tradition of simple strong components working together.
|
|
11
11
|
|
|
12
|
-
Copyright 2003-
|
|
12
|
+
Copyright 2003-2025 Savonet team
|
|
13
13
|
|
|
14
14
|
[](https://github.com/savonet/liquidsoap/blob/master/COPYING)
|
|
15
15
|

|
|
@@ -39,7 +39,7 @@ See the instructions [here](https://www.liquidsoap.info/doc.html?path=install.ht
|
|
|
39
39
|
Current release status by version:
|
|
40
40
|
| Branch | Latest release | Supported | Rolling Release |
|
|
41
41
|
| --------|----------------|-----------|-----------------|
|
|
42
|
-
| `2.3.x` |[2.3.
|
|
42
|
+
| `2.3.x` |[2.3.3](https://github.com/savonet/liquidsoap/releases/tag/v2.3.3) (docker: `savonet/liquidsoap:v2.3.3`) | ✅ | [2.3.x](https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.3.x) (docker: `savonet/liquidsoap:rolling-release-v2.3.x` |
|
|
43
43
|
| `2.2.x` | [2.2.5](https://github.com/savonet/liquidsoap/releases/tag/v2.2.5) (docker: `savonet/liquidsoap:v2.2.5`) | ❌ | [2.2.x](https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.2.x) (docker: `savonet/liquidsoap:rolling-release-v2.2.x` |
|
|
44
44
|
| `2.1.x` | [2.1.4](https://github.com/savonet/liquidsoap/releases/tag/v2.1.4) (docker: `savonet/liquidsoap:v2.1.4`) | ❌ | [2.1.x](https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.1.x) (docker: `savonet/liquidsoap:rolling-release-v2.1.x` |
|
|
45
45
|
|
|
@@ -71,13 +71,14 @@ For both types of releases, we reserve the right to update, delete and add asset
|
|
|
71
71
|
|
|
72
72
|
## Tooling
|
|
73
73
|
|
|
74
|
-
| |
|
|
75
|
-
| ----------- |
|
|
76
|
-
| Formatting | [liquidsoap-prettier](https://github.com/savonet/liquidsoap-prettier)
|
|
77
|
-
| VSCode | [vscode-liquidsoap](https://marketplace.visualstudio.com/items?itemName=savonet.vscode-liquidsoap)
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
74
|
+
| | |
|
|
75
|
+
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
76
|
+
| Formatting | [liquidsoap-prettier](https://github.com/savonet/liquidsoap-prettier) |
|
|
77
|
+
| VSCode | [vscode-liquidsoap](https://marketplace.visualstudio.com/items?itemName=savonet.vscode-liquidsoap) |
|
|
78
|
+
| Neovim | [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter), [formatter.nvim](https://github.com/mhartington/formatter.nvim) |
|
|
79
|
+
| Tree Sitter | [tree-sitter-liquidsoap](https://github.com/savonet/tree-sitter-liquidsoap) |
|
|
80
|
+
| CodeMirror | [codemirror-lang-liquidsoap](https://github.com/savonet/codemirror-lang-liquidsoap) |
|
|
81
|
+
| Playground | [https://www.liquidsoap.info/try/](https://www.liquidsoap.info/try/) |
|
|
81
82
|
|
|
82
83
|
## Documentation
|
|
83
84
|
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
- use source getters for switch in order to be able to play two tracks ever day
|
|
14
14
|
(#2880)
|
|
15
15
|
|
|
16
|
+
### From lioquidshop 5:
|
|
17
|
+
|
|
18
|
+
- Better handling over core module erasure
|
|
19
|
+
- Switch stream callbacks to async first
|
|
20
|
+
- Add variable with current liq script name.
|
|
21
|
+
|
|
16
22
|
### Maybe TODO:
|
|
17
23
|
|
|
18
24
|
- remove requests and use sources instead everywhere (a request is a source with
|
|
@@ -26,11 +32,12 @@
|
|
|
26
32
|
|
|
27
33
|
### Nice to have
|
|
28
34
|
|
|
29
|
-
- refine video support in order to have next liquidshop running on Liquidsoap
|
|
30
|
-
|
|
31
|
-
- use row variables for methods, using Garrigue's _Simple Type Inference for
|
|
32
|
-
Structural Polymorphism_
|
|
35
|
+
- refine video support in order to have next liquidshop running on Liquidsoap (dogfooding)
|
|
36
|
+
- use row variables for methods, using Garrigue's _Simple Type Inference for Structural Polymorphism_
|
|
33
37
|
- can we reimplement something like [melt](https://www.mltframework.org/)?
|
|
38
|
+
- support for WebRTC using WHIP / WHEP
|
|
39
|
+
- support decorations on a subtitle image track
|
|
40
|
+
- make bindings to pipewire to support webcams and screensharing
|
|
34
41
|
|
|
35
42
|
## For 2.2
|
|
36
43
|
|
|
@@ -40,16 +47,15 @@
|
|
|
40
47
|
- ~~Online version (#2397)~~
|
|
41
48
|
- ~~Available at: https://www.liquidsoap.info/try/~~
|
|
42
49
|
- ~~Needs some cleanup, definition of a minimal JS library.~~
|
|
43
|
-
- ~~Switch to `dune`~~
|
|
50
|
+
- ~~Switch to `dune`~~
|
|
44
51
|
- ~~Separate standard library (in pure liq)~~
|
|
45
52
|
- ~~support for multi-track audio~~
|
|
46
|
-
-
|
|
53
|
+
- ~~live switch with ffmpeg encoded content~~
|
|
47
54
|
- ~~deprecate "!" and ":=" in favor of x.get / x.set~~
|
|
48
55
|
- ~~switch to immutable content for metadata~~
|
|
49
56
|
- ~~Add script tooling, prettier etc.~~
|
|
50
57
|
- ~~switch to immutable content for frames (#2364)~~
|
|
51
|
-
- ~~frame should be changed to extensible arrays (a bit like `Strings`) instead
|
|
52
|
-
of filling a buffer~~
|
|
58
|
+
- ~~frame should be changed to extensible arrays (a bit like `Strings`) instead of filling a buffer~~
|
|
53
59
|
- ~~take the opportunity to change the handling of track boundaries (currently
|
|
54
60
|
boundary = we have a partial fill, which has quite messy corner cases)~~
|
|
55
61
|
|
|
@@ -200,10 +200,8 @@ Players that are not affected include ogg123, liquidsoap.
|
|
|
200
200
|
|
|
201
201
|
One way to work around this problem is to not use Ogg/Vorbis (which we
|
|
202
202
|
do not recommend) or to not produce tracks within a Vorbis stream.
|
|
203
|
-
This is done by
|
|
204
|
-
`
|
|
205
|
-
and also not passing any metadata
|
|
206
|
-
(which is also a result of the previous snippet).
|
|
203
|
+
This is done by dropping both metadata and track marks (for example
|
|
204
|
+
using `source.drop.metadata_track_marks`).
|
|
207
205
|
|
|
208
206
|
### Encoding blank
|
|
209
207
|
|
|
@@ -16,7 +16,7 @@ in liquidsoap. We list some of those here.
|
|
|
16
16
|
## Enable/disable ICY metadata updates
|
|
17
17
|
|
|
18
18
|
You can enable or disable icy metadata update in `output.icecast`
|
|
19
|
-
by setting the `send_icy_metadata` parameter to `null
|
|
19
|
+
by setting the `send_icy_metadata` parameter to `null`, `true` or `false`. The default value is `null` and does the following:
|
|
20
20
|
|
|
21
21
|
- Set `true` for: mp3, aac, aac+, wav
|
|
22
22
|
- Set `false` for any format using the ogg container
|
|
@@ -34,7 +34,7 @@ We provide a default implementation that returns `artist` or `title` metadata
|
|
|
34
34
|
when only one of these two is available and `$(artist) - $(title)` otherwise.
|
|
35
35
|
|
|
36
36
|
You can use the `icy_song` parameter to use your own implementation. Returning
|
|
37
|
-
`null
|
|
37
|
+
`null` from that function disables the metadata altogether.
|
|
38
38
|
|
|
39
39
|
## Update metadata manually
|
|
40
40
|
|
|
@@ -37,6 +37,10 @@ Lastly, compiling from source should be reserved to developers.
|
|
|
37
37
|
We generate debian and ubuntu packages automatically as part of our [release process](https://github.com/savonet/liquidsoap/releases). Otherwise, you
|
|
38
38
|
can check out the official [debian](https://packages.debian.org/liquidsoap) and [ubuntu](https://packages.ubuntu.com/liquidsoap) packages.
|
|
39
39
|
|
|
40
|
+
For debian packages, we recommend using debian `trixie` as the current debian stable carries rather old upstream libraries. When installing our own
|
|
41
|
+
packages on debian, you will also need to use the [deb-multimedia.org](https://www.deb-multimedia.org/) packages. These packages provide up-to date
|
|
42
|
+
libraries and also support for `fdk-aac` encoding in `ffmpeg`!
|
|
43
|
+
|
|
40
44
|
## Alpine
|
|
41
45
|
|
|
42
46
|
Alpine packages are also provided as part of our [release process](https://github.com/savonet/liquidsoap/releases).
|
|
@@ -44,8 +48,15 @@ Alpine packages are also provided as part of our [release process](https://githu
|
|
|
44
48
|
## Docker
|
|
45
49
|
|
|
46
50
|
We provide production-ready docker images via [Docker hub](https://hub.docker.com/r/savonet/liquidsoap).
|
|
47
|
-
Docker images are tagged with a release tag (e.g. `v2.1.4`) and with the sha of their git commit (e.g. `a24bf49`).
|
|
48
|
-
|
|
51
|
+
Docker images are tagged with a release tag (e.g. `v2.1.4`) and with the sha of their git commit (e.g. `a24bf49`).
|
|
52
|
+
|
|
53
|
+
For instance, to fetch release `2.3.1`, you would do:
|
|
54
|
+
|
|
55
|
+
```shell
|
|
56
|
+
docker pull savonet/liquidsoap:v2.3.1
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Please note that images tagged with a release tag may change while images tagged with a commit sha will not.
|
|
49
60
|
|
|
50
61
|
## Windows
|
|
51
62
|
|
|
@@ -1116,7 +1116,7 @@ let {foo = [x, y, z], gni} = {foo = [1, 2, 3], gni = "baz"}
|
|
|
1116
1116
|
|
|
1117
1117
|
# Record capture with optional methods:
|
|
1118
1118
|
let { foo? } = ()
|
|
1119
|
-
# foo = null
|
|
1119
|
+
# foo = null
|
|
1120
1120
|
|
|
1121
1121
|
let { foo? } = { foo = 123 }
|
|
1122
1122
|
# foo = 123
|
|
@@ -1301,7 +1301,7 @@ empty:
|
|
|
1301
1301
|
|
|
1302
1302
|
```liquidsoap
|
|
1303
1303
|
def list.hd(l)
|
|
1304
|
-
if l == [] then null
|
|
1304
|
+
if l == [] then null else list.hd(l) end
|
|
1305
1305
|
end
|
|
1306
1306
|
```
|
|
1307
1307
|
|
|
@@ -1313,7 +1313,7 @@ whose type would be
|
|
|
1313
1313
|
|
|
1314
1314
|
since it takes as argument a list whose elements are of type `'a` and returns a
|
|
1315
1315
|
list whose elements are `'a` or `null`. As it can be observed above, the null
|
|
1316
|
-
value is created with `null
|
|
1316
|
+
value is created with `null`.
|
|
1317
1317
|
|
|
1318
1318
|
In order to use a nullable value, one typically uses the construction `x ?? d`
|
|
1319
1319
|
which is the value `x` excepting when it is null, in which case it is the
|
|
@@ -1504,7 +1504,7 @@ The default creation permissions for user cache files is: `0o600` so only the us
|
|
|
1504
1504
|
|
|
1505
1505
|
One side-benefit from loading a script from cache is that the entire typechecking process is skipped.
|
|
1506
1506
|
|
|
1507
|
-
This
|
|
1507
|
+
This leads to a significant reduction in initial memory consumption, typically down from about `375MB` to about `80MB`!
|
|
1508
1508
|
|
|
1509
1509
|
If memory consumption is a concern but you are not sure you can cache your script, you can also set the environment variable
|
|
1510
1510
|
`settings.init.compact_before_start` to `true`:
|
|
@@ -128,9 +128,9 @@ interlude = single("/home/radiopi/fallback.mp3")
|
|
|
128
128
|
# Lastfm submission
|
|
129
129
|
def lastfm(m) =
|
|
130
130
|
if
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
m["type"] == "chansons"
|
|
132
|
+
and
|
|
133
|
+
|
|
134
134
|
(
|
|
135
135
|
m["canal"] == "reggae"
|
|
136
136
|
or
|
|
@@ -138,12 +138,13 @@ def lastfm(m) =
|
|
|
138
138
|
or
|
|
139
139
|
m["canal"] == "That70Sound"
|
|
140
140
|
)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
141
|
+
|
|
142
|
+
then
|
|
143
|
+
canal = if (m["canal"] == "That70Sound") then "70sound" else m["canal"] end
|
|
144
|
+
username = "radiopi-" ^ canal
|
|
145
|
+
audioscrobbler.api.track.scrobble.metadata(
|
|
146
|
+
username=username, password="xXXxx", m
|
|
147
|
+
)
|
|
147
148
|
end
|
|
148
149
|
end
|
|
149
150
|
|
|
@@ -82,12 +82,12 @@ end
|
|
|
82
82
|
It handles both `r128_track_gain` and `replaygain_track_gain` internally and returns a single unified gain value.
|
|
83
83
|
|
|
84
84
|
- The `file.replaygain` function now takes a new compute parameter:
|
|
85
|
-
`file.replaygain(~id=null
|
|
85
|
+
`file.replaygain(~id=null, ~compute=true, ~ratio=50., file_name)`.
|
|
86
86
|
The compute parameter determines if gain should be calculated when the metadata does not already contain replaygain tags.
|
|
87
87
|
|
|
88
88
|
- The `enable_replaygain_metadata` function now accepts a compute parameter to control replaygain calculation.
|
|
89
89
|
|
|
90
|
-
- The `replaygain` function no longer takes an `ebu_r128` parameter. The signature is now simply: `replaygain(~id=null
|
|
90
|
+
- The `replaygain` function no longer takes an `ebu_r128` parameter. The signature is now simply: `replaygain(~id=null, s)`.
|
|
91
91
|
Previously, `ebu_r128` allowed controlling whether EBU R128 or standard replaygain was used.
|
|
92
92
|
However, EBU R128 data is now extracted directly from metadata when available.
|
|
93
93
|
So `replaygain` cannot control the gain type via this parameter anymore.
|
|
@@ -190,11 +190,22 @@ If you are looking for an event-based API, you can use the output's `on_track` m
|
|
|
190
190
|
For backward compatibility and easier migration, `on_air` and `on_air_timestamp` metadata can be enabled using the `settings.request.deprecated_on_air_metadata` setting:
|
|
191
191
|
|
|
192
192
|
```liquidsoap
|
|
193
|
-
request.deprecated_on_air_metadata := true
|
|
193
|
+
settings.request.deprecated_on_air_metadata := true
|
|
194
194
|
```
|
|
195
195
|
|
|
196
196
|
However, it is highly recommended to migrate your script to use one of the new method.
|
|
197
197
|
|
|
198
|
+
### `last_metadata`
|
|
199
|
+
|
|
200
|
+
The implementation of `last_metadata` was updated to clear the last metadata when a new track begins. This is more in line with most user's expectation: last metadata
|
|
201
|
+
is intended to reflect the metadata of the current track.
|
|
202
|
+
|
|
203
|
+
If you need to, you can revert to the previous behavior using the source's `reset_last_metadata_on_track` method:
|
|
204
|
+
|
|
205
|
+
```liquidsoap
|
|
206
|
+
s.reset_last_metadata_on_track := false
|
|
207
|
+
```
|
|
208
|
+
|
|
198
209
|
### Gstreamer
|
|
199
210
|
|
|
200
211
|
`gstreamer` was removed. It had been deprecated for a while. We expect `ffmpeg` to carry most, if not all
|
|
@@ -205,6 +216,17 @@ of gstreamer's features. See [this PR](https://github.com/savonet/liquidsoap/pul
|
|
|
205
216
|
The default port for the Prometheus metrics exporter has changed from `9090` to `9599`.
|
|
206
217
|
As before, you can change it with `settings.prometheus.server.port := <your port value>`.
|
|
207
218
|
|
|
219
|
+
### `source.dynamic`
|
|
220
|
+
|
|
221
|
+
Many operators such as `single` and `request.once` have been reworked to use `source.dynamic` as their underlying
|
|
222
|
+
implementation.
|
|
223
|
+
|
|
224
|
+
The operator is now considered usable in production although we urge caution when using it: it is very powerful but can
|
|
225
|
+
also break things!
|
|
226
|
+
|
|
227
|
+
If you were (boldly!) using this operator before, the most important change is that its `set` method has been removed in
|
|
228
|
+
favor of a unique callback API.
|
|
229
|
+
|
|
208
230
|
## From 2.1.x to 2.2.x
|
|
209
231
|
|
|
210
232
|
### References
|
|
@@ -19,10 +19,15 @@ All formats are identified by their _mime-type_ or _content-type_. Supported for
|
|
|
19
19
|
|
|
20
20
|
- Xml formats:
|
|
21
21
|
- `video/x-ms-asf`, `audio/x-ms-asx`: [ASX](http://en.wikipedia.org/wiki/Advanced_Stream_Redirector), **strict**
|
|
22
|
-
- `application/smil`, `application/smil+xml`, [SMIL](http://en.wikipedia.org/wiki/Synchronized_Multimedia_Integration_Language), **strict**
|
|
22
|
+
- `application/smil+xml`, `application/smil+xml`, [SMIL](http://en.wikipedia.org/wiki/Synchronized_Multimedia_Integration_Language), **strict**
|
|
23
23
|
- `application/xspf+xml`, [XSPF](http://en.wikipedia.org/wiki/Xspf), **strict**
|
|
24
24
|
- `application/rss+xml`, [Podcast](http://en.wikipedia.org/wiki/Podcast), **strict**
|
|
25
25
|
|
|
26
|
+
Playlist format is driven by the **Content-Type** and **Content-Disposition** HTTP headers _(see m3u example below)_. You should make sure that your HTTP endpoint returns appropriate values for those.
|
|
27
|
+
|
|
28
|
+
As last resort, you should be able to use the `settings.http.mime.extnames` settings to add or adjust support
|
|
29
|
+
for your endpoint's mime-type if liquidsoap supports its corresponding playlist format. See for instance issue [#3451](https://github.com/savonet/liquidsoap/issues/3451).
|
|
30
|
+
|
|
26
31
|
## Usage
|
|
27
32
|
|
|
28
33
|
Playlist files are parsed automatically when used in a `playlist` or `input.http` operator. Each of
|
|
@@ -33,6 +38,46 @@ Additionally, you can also manually parse and process a playlist using `request.
|
|
|
33
38
|
and some programming magic. You can check the code source for `playlist.reloadable` in our standard library
|
|
34
39
|
for a detailed example.
|
|
35
40
|
|
|
41
|
+
### Remote M3U playlist example
|
|
42
|
+
|
|
43
|
+
Here is an example of a m3u playlist being read from nodejs/express .
|
|
44
|
+
|
|
45
|
+
liquidsoap script:
|
|
46
|
+
|
|
47
|
+
```liquidsoap
|
|
48
|
+
#!/usr/local/bin/liquidsoap
|
|
49
|
+
|
|
50
|
+
p = playlist(reload=10, "http://localhost:8080/radio/playlists/0/playlist.m3u")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
nodejs/express app:
|
|
54
|
+
|
|
55
|
+
```js
|
|
56
|
+
import express from "express";
|
|
57
|
+
|
|
58
|
+
const app = express();
|
|
59
|
+
|
|
60
|
+
app.get("/radio/playlists/:id/playlist.m3u", async (req, res) => {
|
|
61
|
+
const playlist = ["/media/foo.mp3", "/media/bar.mp3"];
|
|
62
|
+
|
|
63
|
+
// Liquidsoap will use the file extension from the `Content-Disposition` header to guess
|
|
64
|
+
// the playlist format
|
|
65
|
+
res.set(
|
|
66
|
+
"Content-Disposition",
|
|
67
|
+
`attachment; filename="playlist-${req.params.id}.m3u"`,
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
// Otherwise, it will try to guess the file extension from the playlist mime-type.
|
|
71
|
+
res.set("Content-Type", "audio/x-mpegurl");
|
|
72
|
+
res
|
|
73
|
+
.send(playlist.join("\r\n") + "\r\n")
|
|
74
|
+
.status(200)
|
|
75
|
+
.end();
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
const server = app.listen(8080);
|
|
79
|
+
```
|
|
80
|
+
|
|
36
81
|
## Special case: CUE format
|
|
37
82
|
|
|
38
83
|
The CUE format originates from CD burning programs. They describe the set of tracks of a whole CD and
|
|
@@ -15,6 +15,9 @@ in `secret.liq`, and then refer to that variable in your main script
|
|
|
15
15
|
need to communicate `main.liq` there won't be any risk of divulgating your
|
|
16
16
|
password.
|
|
17
17
|
|
|
18
|
+
When available, the variable `liquidsoap.script.path` contains the path of the current script's
|
|
19
|
+
file and `null` otherwise.
|
|
20
|
+
|
|
18
21
|
## The pervasive script library
|
|
19
22
|
|
|
20
23
|
In fact, liquidsoap also implicitly loads scripts before those that you specify
|