codemirror-lang-liquidsoap 0.1.0
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/.github/workflows/ci.yml +20 -0
- package/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/cli.js +162 -0
- package/dist/index.js +44 -0
- package/dist/liquidsoap-0dac1347.js +232 -0
- package/dist/liquidsoap-18e69476.js +232 -0
- package/dist/liquidsoap-826221b5.js +232 -0
- package/dist/liquidsoap-897c55ac.js +232 -0
- package/dist/liquidsoap-a11e5e7f.js +232 -0
- package/dist/liquidsoap-c12c37dd.js +232 -0
- package/dist/liquidsoap-c4fc76fd.js +232 -0
- package/dist/liquidsoap-f8672f59.js +232 -0
- package/package.json +45 -0
- package/rollup.config.js +13 -0
- package/src/cli.ts +166 -0
- package/src/index.ts +43 -0
- package/src/liquidsoap.grammar +788 -0
- package/src/liquidsoap.grammar.d.ts +3 -0
- package/src/parser.js +19 -0
- package/src/parser.terms.js +84 -0
- package/src/tokens.js +207 -0
- package/tests/liquidsoap/.codespellignore +14 -0
- package/tests/liquidsoap/.gitattributes +2 -0
- package/tests/liquidsoap/.github/FUNDING.yml +12 -0
- package/tests/liquidsoap/.github/ISSUE_TEMPLATE/bug_report.md +27 -0
- package/tests/liquidsoap/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
- package/tests/liquidsoap/.github/ISSUE_TEMPLATE/question.md +13 -0
- package/tests/liquidsoap/.github/alpine/APKBUILD-minimal.in +29 -0
- package/tests/liquidsoap/.github/alpine/APKBUILD.in +28 -0
- package/tests/liquidsoap/.github/alpine/liquidsoap.pre-install +7 -0
- package/tests/liquidsoap/.github/debian/compat +1 -0
- package/tests/liquidsoap/.github/debian/control.in +118 -0
- package/tests/liquidsoap/.github/debian/dirs +4 -0
- package/tests/liquidsoap/.github/debian/install +3 -0
- package/tests/liquidsoap/.github/debian/manpages +1 -0
- package/tests/liquidsoap/.github/debian/postinst +40 -0
- package/tests/liquidsoap/.github/debian/postrm +11 -0
- package/tests/liquidsoap/.github/debian/rules +29 -0
- package/tests/liquidsoap/.github/debian/rules-minimal +30 -0
- package/tests/liquidsoap/.github/debian/source/format +1 -0
- package/tests/liquidsoap/.github/docker/Dockerfile-armhf.production +35 -0
- package/tests/liquidsoap/.github/docker/Dockerfile.production +35 -0
- package/tests/liquidsoap/.github/docker/Dockerfile.production-alpine +16 -0
- package/tests/liquidsoap/.github/docker/Dockerfile.website +63 -0
- package/tests/liquidsoap/.github/opam/liquidsoap-core-windows.opam +181 -0
- package/tests/liquidsoap/.github/opam/packages/duppy/duppy.0.9.3/opam +37 -0
- package/tests/liquidsoap/.github/opam/packages/ssl/ssl.0.7.0/opam +40 -0
- package/tests/liquidsoap/.github/opam/repo +1 -0
- package/tests/liquidsoap/.github/scripts/add-local-opam-packages.sh +17 -0
- package/tests/liquidsoap/.github/scripts/build-apk.sh +102 -0
- package/tests/liquidsoap/.github/scripts/build-deb.sh +109 -0
- package/tests/liquidsoap/.github/scripts/build-details.sh +84 -0
- package/tests/liquidsoap/.github/scripts/build-doc.sh +12 -0
- package/tests/liquidsoap/.github/scripts/build-docker-alpine.sh +32 -0
- package/tests/liquidsoap/.github/scripts/build-docker.sh +40 -0
- package/tests/liquidsoap/.github/scripts/build-posix.sh +99 -0
- package/tests/liquidsoap/.github/scripts/build-website.sh +15 -0
- package/tests/liquidsoap/.github/scripts/build-win32.sh +82 -0
- package/tests/liquidsoap/.github/scripts/checkout-deps.sh +18 -0
- package/tests/liquidsoap/.github/scripts/export-metrics.sh +17 -0
- package/tests/liquidsoap/.github/scripts/push-docker.sh +72 -0
- package/tests/liquidsoap/.github/scripts/stats-posix.sh +20 -0
- package/tests/liquidsoap/.github/scripts/test-posix.sh +16 -0
- package/tests/liquidsoap/.github/stale.yml +22 -0
- package/tests/liquidsoap/.github/win32/log/.keep +0 -0
- package/tests/liquidsoap/.github/win32/run/.keep +0 -0
- package/tests/liquidsoap/.github/win32/test.liq +26 -0
- package/tests/liquidsoap/.github/workflows/ci.yml +704 -0
- package/tests/liquidsoap/.ocamlformat +10 -0
- package/tests/liquidsoap/.pre-commit-config.yaml +60 -0
- package/tests/liquidsoap/CHANGES.md +2300 -0
- package/tests/liquidsoap/COPYING +340 -0
- package/tests/liquidsoap/Makefile +4 -0
- package/tests/liquidsoap/README.md +121 -0
- package/tests/liquidsoap/RELEASING +19 -0
- package/tests/liquidsoap/ROADMAP.md +69 -0
- package/tests/liquidsoap/doc/content/beets.md +179 -0
- package/tests/liquidsoap/doc/content/blank.md +50 -0
- package/tests/liquidsoap/doc/content/book.md +11 -0
- package/tests/liquidsoap/doc/content/build.md +112 -0
- package/tests/liquidsoap/doc/content/clocks.md +312 -0
- package/tests/liquidsoap/doc/content/complete_case.md +81 -0
- package/tests/liquidsoap/doc/content/cookbook.md +518 -0
- package/tests/liquidsoap/doc/content/crossfade.md +98 -0
- package/tests/liquidsoap/doc/content/custom-path.md +77 -0
- package/tests/liquidsoap/doc/content/documentation.md +88 -0
- package/tests/liquidsoap/doc/content/dynamic_sources.md +72 -0
- package/tests/liquidsoap/doc/content/encoding_formats.md +279 -0
- package/tests/liquidsoap/doc/content/external_decoders.md +215 -0
- package/tests/liquidsoap/doc/content/external_encoders.md +60 -0
- package/tests/liquidsoap/doc/content/external_streams.md +49 -0
- package/tests/liquidsoap/doc/content/faq.md +224 -0
- package/tests/liquidsoap/doc/content/ffmpeg.md +324 -0
- package/tests/liquidsoap/doc/content/ffmpeg_cookbook.md +211 -0
- package/tests/liquidsoap/doc/content/ffmpeg_encoder.md +175 -0
- package/tests/liquidsoap/doc/content/ffmpeg_filters.md +251 -0
- package/tests/liquidsoap/doc/content/flows_devel.md +39 -0
- package/tests/liquidsoap/doc/content/frequence3.md +13 -0
- package/tests/liquidsoap/doc/content/geekradio.md +43 -0
- package/tests/liquidsoap/doc/content/gstreamer_encoder.md +154 -0
- package/tests/liquidsoap/doc/content/harbor.md +126 -0
- package/tests/liquidsoap/doc/content/harbor_http.md +263 -0
- package/tests/liquidsoap/doc/content/help.md +135 -0
- package/tests/liquidsoap/doc/content/hls_output.md +162 -0
- package/tests/liquidsoap/doc/content/http_input.md +17 -0
- package/tests/liquidsoap/doc/content/icy_metadata.md +75 -0
- package/tests/liquidsoap/doc/content/in_production.md +25 -0
- package/tests/liquidsoap/doc/content/index.md +61 -0
- package/tests/liquidsoap/doc/content/install.md +113 -0
- package/tests/liquidsoap/doc/content/json.md +333 -0
- package/tests/liquidsoap/doc/content/ladspa.md +42 -0
- package/tests/liquidsoap/doc/content/language.md +1382 -0
- package/tests/liquidsoap/doc/content/memory.md +135 -0
- package/tests/liquidsoap/doc/content/metadata.md +118 -0
- package/tests/liquidsoap/doc/content/migrating.md +475 -0
- package/tests/liquidsoap/doc/content/multitrack.md +357 -0
- package/tests/liquidsoap/doc/content/on2.md +28 -0
- package/tests/liquidsoap/doc/content/on2_part1.md +301 -0
- package/tests/liquidsoap/doc/content/on2_part2.md +849 -0
- package/tests/liquidsoap/doc/content/on2_part3.md +321 -0
- package/tests/liquidsoap/doc/content/phases.md +23 -0
- package/tests/liquidsoap/doc/content/playlist_parsers.md +58 -0
- package/tests/liquidsoap/doc/content/presentations.md +30 -0
- package/tests/liquidsoap/doc/content/profiling.md +33 -0
- package/tests/liquidsoap/doc/content/prometheus.md +146 -0
- package/tests/liquidsoap/doc/content/protocols-presentation.md +59 -0
- package/tests/liquidsoap/doc/content/publications.md +28 -0
- package/tests/liquidsoap/doc/content/quick_start.md +240 -0
- package/tests/liquidsoap/doc/content/radiopi.md +342 -0
- package/tests/liquidsoap/doc/content/reference-header.md +15 -0
- package/tests/liquidsoap/doc/content/release-assets.md +9 -0
- package/tests/liquidsoap/doc/content/replay_gain.md +85 -0
- package/tests/liquidsoap/doc/content/request_sources.md +99 -0
- package/tests/liquidsoap/doc/content/requests.md +53 -0
- package/tests/liquidsoap/doc/content/rolling-release.md +10 -0
- package/tests/liquidsoap/doc/content/script_loading.md +29 -0
- package/tests/liquidsoap/doc/content/seek.md +86 -0
- package/tests/liquidsoap/doc/content/server.md +265 -0
- package/tests/liquidsoap/doc/content/shoutcast.md +39 -0
- package/tests/liquidsoap/doc/content/sources.md +138 -0
- package/tests/liquidsoap/doc/content/split-cue.md +36 -0
- package/tests/liquidsoap/doc/content/stereotool.md +54 -0
- package/tests/liquidsoap/doc/content/stream_content.md +208 -0
- package/tests/liquidsoap/doc/content/strings_encoding.md +18 -0
- package/tests/liquidsoap/doc/content/video-static.md +35 -0
- package/tests/liquidsoap/doc/content/video.md +269 -0
- package/tests/liquidsoap/doc/content/yaml.md +29 -0
- package/tests/liquidsoap/doc/dune +46 -0
- package/tests/liquidsoap/doc/dune.inc +1677 -0
- package/tests/liquidsoap/doc/gen_dune.ml +130 -0
- package/tests/liquidsoap/doc/liquidsoap.1.md +142 -0
- package/tests/liquidsoap/doc/no-pandoc +1 -0
- package/tests/liquidsoap/doc/orig/css/homepage.css +148 -0
- package/tests/liquidsoap/doc/orig/css/style.css +258 -0
- package/tests/liquidsoap/doc/orig/fosdem2020/clock.png +0 -0
- package/tests/liquidsoap/doc/orig/fosdem2020/index.html +612 -0
- package/tests/liquidsoap/doc/orig/fosdem2020/logo.png +0 -0
- package/tests/liquidsoap/doc/orig/fosdem2020/radio.gif +0 -0
- package/tests/liquidsoap/doc/orig/fosdem2020/remark.js +28221 -0
- package/tests/liquidsoap/doc/orig/images/basic-radio-graph.png +0 -0
- package/tests/liquidsoap/doc/orig/images/design/background.png +0 -0
- package/tests/liquidsoap/doc/orig/images/design/background_page.png +0 -0
- package/tests/liquidsoap/doc/orig/images/design/logo.png +0 -0
- package/tests/liquidsoap/doc/orig/images/grab.png +0 -0
- package/tests/liquidsoap/doc/orig/images/graph_clocks.png +0 -0
- package/tests/liquidsoap/doc/orig/images/liqgraph.png +0 -0
- package/tests/liquidsoap/doc/orig/images/schema-webradio-inkscape.png +0 -0
- package/tests/liquidsoap/doc/orig/images/stream.png +0 -0
- package/tests/liquidsoap/doc/orig/images/tabs/tab_API.png +0 -0
- package/tests/liquidsoap/doc/orig/images/tabs/tab_about.png +0 -0
- package/tests/liquidsoap/doc/orig/images/tabs/tab_developers.png +0 -0
- package/tests/liquidsoap/doc/orig/images/tabs/tab_docs.png +0 -0
- package/tests/liquidsoap/doc/orig/images/tabs/tab_snippets.png +0 -0
- package/tests/liquidsoap/doc/subst_md.ml +13 -0
- package/tests/liquidsoap/doc/template.html +67 -0
- package/tests/liquidsoap/dune +33 -0
- package/tests/liquidsoap/dune-project +199 -0
- package/tests/liquidsoap/liquidsoap +6 -0
- package/tests/liquidsoap/liquidsoap-core.opam +132 -0
- package/tests/liquidsoap/liquidsoap-js.opam +37 -0
- package/tests/liquidsoap/liquidsoap-lang.opam +35 -0
- package/tests/liquidsoap/liquidsoap-libs-extra.opam +32 -0
- package/tests/liquidsoap/liquidsoap-libs.opam +31 -0
- package/tests/liquidsoap/liquidsoap-mode.opam +40 -0
- package/tests/liquidsoap/liquidsoap-mode.opam.template +9 -0
- package/tests/liquidsoap/liquidsoap.opam +66 -0
- package/tests/liquidsoap/liquidsoap.opam.template +26 -0
- package/tests/liquidsoap/prometheus-liquidsoap.opam +33 -0
- package/tests/liquidsoap/scripts/bash-completion +41 -0
- package/tests/liquidsoap/scripts/dune +29 -0
- package/tests/liquidsoap/scripts/gen_emacs_completion.ml +8 -0
- package/tests/liquidsoap/scripts/liquidsoap-mode.el +88 -0
- package/tests/liquidsoap/scripts/liquidsoap.xml +140 -0
- package/tests/liquidsoap/sdl-liquidsoap.opam +34 -0
- package/tests/liquidsoap/src/bin/dune +24 -0
- package/tests/liquidsoap/src/bin/instruments.plist +1 -0
- package/tests/liquidsoap/src/bin/liquidsoap.ml +1 -0
- package/tests/liquidsoap/src/build/build_tools.ml +3 -0
- package/tests/liquidsoap/src/build/dune +4 -0
- package/tests/liquidsoap/src/config/irc_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/config/liquidsoap_paths.default.ml +25 -0
- package/tests/liquidsoap/src/config/liquidsoap_paths.mli +13 -0
- package/tests/liquidsoap/src/config/liquidsoap_paths.posix.ml +13 -0
- package/tests/liquidsoap/src/config/liquidsoap_paths.standalone.ml +14 -0
- package/tests/liquidsoap/src/config/mem_usage_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/config/noop.disabled.ml +5 -0
- package/tests/liquidsoap/src/config/noop.enabled.ml +2 -0
- package/tests/liquidsoap/src/config/osc_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/config/sdl_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/config/stereotool_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/config/tls_option.disabled.ml +2 -0
- package/tests/liquidsoap/src/console/console.ml +83 -0
- package/tests/liquidsoap/src/console/console.mli +42 -0
- package/tests/liquidsoap/src/console/dune +5 -0
- package/tests/liquidsoap/src/core/alsa_settings.ml +61 -0
- package/tests/liquidsoap/src/core/builtins/builtins_callbacks.ml +53 -0
- package/tests/liquidsoap/src/core/builtins/builtins_clock.ml +129 -0
- package/tests/liquidsoap/src/core/builtins/builtins_cry.ml +123 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_base.ml +27 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_bitstream_filters.ml +336 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_decoder.ml +512 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_encoder.ml +582 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_filters.ml +925 -0
- package/tests/liquidsoap/src/core/builtins/builtins_files.ml +635 -0
- package/tests/liquidsoap/src/core/builtins/builtins_harbor.ml +140 -0
- package/tests/liquidsoap/src/core/builtins/builtins_harbor_ssl.ml +31 -0
- package/tests/liquidsoap/src/core/builtins/builtins_http.ml +231 -0
- package/tests/liquidsoap/src/core/builtins/builtins_irc.ml +112 -0
- package/tests/liquidsoap/src/core/builtins/builtins_jemalloc.ml +136 -0
- package/tests/liquidsoap/src/core/builtins/builtins_lastfm.ml +110 -0
- package/tests/liquidsoap/src/core/builtins/builtins_lo.ml +195 -0
- package/tests/liquidsoap/src/core/builtins/builtins_lo.mli +0 -0
- package/tests/liquidsoap/src/core/builtins/builtins_magic.ml +34 -0
- package/tests/liquidsoap/src/core/builtins/builtins_mem_usage.ml +84 -0
- package/tests/liquidsoap/src/core/builtins/builtins_metadata.ml +39 -0
- package/tests/liquidsoap/src/core/builtins/builtins_optionals.ml +61 -0
- package/tests/liquidsoap/src/core/builtins/builtins_osc.ml +207 -0
- package/tests/liquidsoap/src/core/builtins/builtins_process.ml +333 -0
- package/tests/liquidsoap/src/core/builtins/builtins_prometheus.ml +237 -0
- package/tests/liquidsoap/src/core/builtins/builtins_request.ml +227 -0
- package/tests/liquidsoap/src/core/builtins/builtins_resolvers.ml +186 -0
- package/tests/liquidsoap/src/core/builtins/builtins_runtime.ml +237 -0
- package/tests/liquidsoap/src/core/builtins/builtins_server.ml +69 -0
- package/tests/liquidsoap/src/core/builtins/builtins_settings.ml +343 -0
- package/tests/liquidsoap/src/core/builtins/builtins_socket.ml +577 -0
- package/tests/liquidsoap/src/core/builtins/builtins_source.ml +265 -0
- package/tests/liquidsoap/src/core/builtins/builtins_srt.ml +335 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ssl.ml +234 -0
- package/tests/liquidsoap/src/core/builtins/builtins_string_extra.ml +150 -0
- package/tests/liquidsoap/src/core/builtins/builtins_sys.ml +481 -0
- package/tests/liquidsoap/src/core/builtins/builtins_thread.ml +122 -0
- package/tests/liquidsoap/src/core/builtins/builtins_time.ml +227 -0
- package/tests/liquidsoap/src/core/builtins/builtins_tls.ml +287 -0
- package/tests/liquidsoap/src/core/builtins/builtins_yaml.ml +94 -0
- package/tests/liquidsoap/src/core/clock.ml +586 -0
- package/tests/liquidsoap/src/core/clock.mli +178 -0
- package/tests/liquidsoap/src/core/configure.ml +54 -0
- package/tests/liquidsoap/src/core/configure.mli +43 -0
- package/tests/liquidsoap/src/core/conversions/conversion.ml +67 -0
- package/tests/liquidsoap/src/core/conversions/mean.ml +67 -0
- package/tests/liquidsoap/src/core/conversions/stereo.ml +67 -0
- package/tests/liquidsoap/src/core/conversions/swap.ml +62 -0
- package/tests/liquidsoap/src/core/converters/audio/ffmpeg_audio_converter.ml +44 -0
- package/tests/liquidsoap/src/core/converters/audio/libsamplerate_converter.ml +75 -0
- package/tests/liquidsoap/src/core/converters/audio/native_audio_converter.ml +73 -0
- package/tests/liquidsoap/src/core/converters/audio_converter.ml +168 -0
- package/tests/liquidsoap/src/core/converters/audio_converter.mli +76 -0
- package/tests/liquidsoap/src/core/converters/video/ffmpeg_video_converter.ml +131 -0
- package/tests/liquidsoap/src/core/converters/video/native_video_converter.ml +33 -0
- package/tests/liquidsoap/src/core/converters/video_converter.ml +104 -0
- package/tests/liquidsoap/src/core/converters/video_converter.mli +56 -0
- package/tests/liquidsoap/src/core/decoder/aac_decoder.ml +291 -0
- package/tests/liquidsoap/src/core/decoder/decoder.ml +591 -0
- package/tests/liquidsoap/src/core/decoder/decoder.mli +146 -0
- package/tests/liquidsoap/src/core/decoder/decoder_utils.ml +137 -0
- package/tests/liquidsoap/src/core/decoder/decoder_utils.mli +63 -0
- package/tests/liquidsoap/src/core/decoder/external_decoder.ml +198 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_copy_decoder.ml +82 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_copy_decoder.mli +41 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_decoder.ml +1157 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_decoder_common.ml +102 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_internal_decoder.ml +178 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_internal_decoder.mli +41 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_raw_decoder.ml +76 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_raw_decoder.mli +41 -0
- package/tests/liquidsoap/src/core/decoder/flac_metadata_plug.ml +62 -0
- package/tests/liquidsoap/src/core/decoder/gstreamer_decoder.ml +352 -0
- package/tests/liquidsoap/src/core/decoder/id3_plug.ml +86 -0
- package/tests/liquidsoap/src/core/decoder/image/camlimages_decoder.ml +61 -0
- package/tests/liquidsoap/src/core/decoder/image/ffmpeg_image_decoder.ml +58 -0
- package/tests/liquidsoap/src/core/decoder/image/imagelib_decoder.ml +44 -0
- package/tests/liquidsoap/src/core/decoder/image/ppm_decoder.ml +39 -0
- package/tests/liquidsoap/src/core/decoder/image/sdlimage_decoder.ml +39 -0
- package/tests/liquidsoap/src/core/decoder/image_decoder.ml +181 -0
- package/tests/liquidsoap/src/core/decoder/image_plug.ml +62 -0
- package/tests/liquidsoap/src/core/decoder/liq_flac_decoder.ml +192 -0
- package/tests/liquidsoap/src/core/decoder/liq_ogg_decoder.ml +323 -0
- package/tests/liquidsoap/src/core/decoder/mad_decoder.ml +199 -0
- package/tests/liquidsoap/src/core/decoder/midi_decoder.ml +77 -0
- package/tests/liquidsoap/src/core/decoder/ogg_flac_duration.ml +66 -0
- package/tests/liquidsoap/src/core/decoder/ogg_metadata_plug.ml +62 -0
- package/tests/liquidsoap/src/core/decoder/raw_audio_decoder.ml +162 -0
- package/tests/liquidsoap/src/core/decoder/srt_decoder.ml +92 -0
- package/tests/liquidsoap/src/core/decoder/taglib_plug.ml +102 -0
- package/tests/liquidsoap/src/core/decoder/text/video_text_camlimages.ml +58 -0
- package/tests/liquidsoap/src/core/decoder/text/video_text_gd.ml +63 -0
- package/tests/liquidsoap/src/core/decoder/text/video_text_gstreamer.ml +64 -0
- package/tests/liquidsoap/src/core/decoder/text/video_text_native.ml +47 -0
- package/tests/liquidsoap/src/core/decoder/text/video_text_sdl.ml +62 -0
- package/tests/liquidsoap/src/core/decoder/video_plug.ml +62 -0
- package/tests/liquidsoap/src/core/decoder/vorbisduration.ml +31 -0
- package/tests/liquidsoap/src/core/decoder/wav_aiff_decoder.ml +251 -0
- package/tests/liquidsoap/src/core/doc.ml +1 -0
- package/tests/liquidsoap/src/core/dune +1050 -0
- package/tests/liquidsoap/src/core/encoder/encoder.ml +398 -0
- package/tests/liquidsoap/src/core/encoder/encoder.mli +128 -0
- package/tests/liquidsoap/src/core/encoder/encoder_formats.ml +56 -0
- package/tests/liquidsoap/src/core/encoder/encoders/avi_encoder.ml +126 -0
- package/tests/liquidsoap/src/core/encoder/encoders/external_encoder.ml +177 -0
- package/tests/liquidsoap/src/core/encoder/encoders/fdkaac_encoder.ml +122 -0
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_copy_encoder.ml +196 -0
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_encoder.ml +80 -0
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_encoder_common.ml +342 -0
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_internal_encoder.ml +518 -0
- package/tests/liquidsoap/src/core/encoder/encoders/flac_encoder.ml +79 -0
- package/tests/liquidsoap/src/core/encoder/encoders/gstreamer_encoder.ml +209 -0
- package/tests/liquidsoap/src/core/encoder/encoders/lame_encoder.ml +129 -0
- package/tests/liquidsoap/src/core/encoder/encoders/ogg_encoder.ml +146 -0
- package/tests/liquidsoap/src/core/encoder/encoders/shine_encoder.ml +79 -0
- package/tests/liquidsoap/src/core/encoder/encoders/taglib_id3v2.ml +58 -0
- package/tests/liquidsoap/src/core/encoder/encoders/wav_encoder.ml +83 -0
- package/tests/liquidsoap/src/core/encoder/formats/avi_format.ml +36 -0
- package/tests/liquidsoap/src/core/encoder/formats/external_encoder_format.ml +55 -0
- package/tests/liquidsoap/src/core/encoder/formats/fdkaac_format.ml +92 -0
- package/tests/liquidsoap/src/core/encoder/formats/ffmpeg_format.ml +162 -0
- package/tests/liquidsoap/src/core/encoder/formats/flac_format.ml +34 -0
- package/tests/liquidsoap/src/core/encoder/formats/gstreamer_format.ml +53 -0
- package/tests/liquidsoap/src/core/encoder/formats/mp3_format.ml +88 -0
- package/tests/liquidsoap/src/core/encoder/formats/ogg_format.ml +44 -0
- package/tests/liquidsoap/src/core/encoder/formats/opus_format.ml +95 -0
- package/tests/liquidsoap/src/core/encoder/formats/shine_format.ml +29 -0
- package/tests/liquidsoap/src/core/encoder/formats/speex_format.ml +60 -0
- package/tests/liquidsoap/src/core/encoder/formats/theora_format.ml +66 -0
- package/tests/liquidsoap/src/core/encoder/formats/vorbis_format.ml +52 -0
- package/tests/liquidsoap/src/core/encoder/formats/wav_format.ml +38 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_avi.ml +57 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_external_encoder.ml +120 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_fdkaac.ml +134 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_ffmpeg.ml +544 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_flac.ml +73 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_gstreamer.ml +112 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_mp3.ml +260 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_ogg.ml +69 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_opus.ml +142 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_shine.ml +68 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_speex.ml +96 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_theora.ml +131 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_vorbis.ml +160 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_wav.ml +70 -0
- package/tests/liquidsoap/src/core/encoder/lang_encoder.ml +142 -0
- package/tests/liquidsoap/src/core/error.ml +1 -0
- package/tests/liquidsoap/src/core/file_watcher.inotify.ml +84 -0
- package/tests/liquidsoap/src/core/file_watcher.mtime.ml +90 -0
- package/tests/liquidsoap/src/core/harbor/harbor.ml +1209 -0
- package/tests/liquidsoap/src/core/harbor/harbor_base.ml +72 -0
- package/tests/liquidsoap/src/core/hooks_implementations.ml +172 -0
- package/tests/liquidsoap/src/core/hooks_implementations.mli +1 -0
- package/tests/liquidsoap/src/core/io/alsa_io.ml +358 -0
- package/tests/liquidsoap/src/core/io/ffmpeg_filter_io.ml +345 -0
- package/tests/liquidsoap/src/core/io/ffmpeg_io.ml +612 -0
- package/tests/liquidsoap/src/core/io/gstreamer_io.ml +762 -0
- package/tests/liquidsoap/src/core/io/oss_io.ml +198 -0
- package/tests/liquidsoap/src/core/io/oss_io_c.c +42 -0
- package/tests/liquidsoap/src/core/io/portaudio_io.ml +340 -0
- package/tests/liquidsoap/src/core/io/pulseaudio_io.ml +206 -0
- package/tests/liquidsoap/src/core/io/srt_io.ml +1117 -0
- package/tests/liquidsoap/src/core/io/udp_io.ml +268 -0
- package/tests/liquidsoap/src/core/json.ml +1 -0
- package/tests/liquidsoap/src/core/lang.ml +71 -0
- package/tests/liquidsoap/src/core/lang.mli +344 -0
- package/tests/liquidsoap/src/core/lang_source.ml +586 -0
- package/tests/liquidsoap/src/core/lang_string.ml +1 -0
- package/tests/liquidsoap/src/core/liqmagic.disabled.ml +2 -0
- package/tests/liquidsoap/src/core/liqmagic.enabled.ml +3 -0
- package/tests/liquidsoap/src/core/liqmagic.mli +4 -0
- package/tests/liquidsoap/src/core/modules.ml +39 -0
- package/tests/liquidsoap/src/core/ogg_formats/liq_flac_ogg_decoder.ml +23 -0
- package/tests/liquidsoap/src/core/ogg_formats/liq_opus_decoder.ml +38 -0
- package/tests/liquidsoap/src/core/ogg_formats/liq_speex_decoder.ml +23 -0
- package/tests/liquidsoap/src/core/ogg_formats/liq_theora_decoder.ml +23 -0
- package/tests/liquidsoap/src/core/ogg_formats/liq_vorbis_decoder.ml +23 -0
- package/tests/liquidsoap/src/core/ogg_formats/ogg_flac_encoder.ml +127 -0
- package/tests/liquidsoap/src/core/ogg_formats/ogg_flac_encoder_stubs.c +10 -0
- package/tests/liquidsoap/src/core/ogg_formats/ogg_muxer.ml +413 -0
- package/tests/liquidsoap/src/core/ogg_formats/ogg_muxer.mli +169 -0
- package/tests/liquidsoap/src/core/ogg_formats/opus_encoder.ml +143 -0
- package/tests/liquidsoap/src/core/ogg_formats/speex_encoder.ml +183 -0
- package/tests/liquidsoap/src/core/ogg_formats/theora_encoder.ml +172 -0
- package/tests/liquidsoap/src/core/ogg_formats/vorbis_encoder.ml +125 -0
- package/tests/liquidsoap/src/core/operators/accelerate.ml +115 -0
- package/tests/liquidsoap/src/core/operators/add.ml +461 -0
- package/tests/liquidsoap/src/core/operators/amplify.ml +92 -0
- package/tests/liquidsoap/src/core/operators/available.ml +80 -0
- package/tests/liquidsoap/src/core/operators/biquad_filter.ml +317 -0
- package/tests/liquidsoap/src/core/operators/chord.ml +137 -0
- package/tests/liquidsoap/src/core/operators/clip.ml +57 -0
- package/tests/liquidsoap/src/core/operators/comb.ml +84 -0
- package/tests/liquidsoap/src/core/operators/compand.ml +62 -0
- package/tests/liquidsoap/src/core/operators/compress.ml +270 -0
- package/tests/liquidsoap/src/core/operators/compress_exp.ml +65 -0
- package/tests/liquidsoap/src/core/operators/cross.ml +507 -0
- package/tests/liquidsoap/src/core/operators/cuepoint.ml +217 -0
- package/tests/liquidsoap/src/core/operators/defer.ml +183 -0
- package/tests/liquidsoap/src/core/operators/defer_c.c +23 -0
- package/tests/liquidsoap/src/core/operators/delay.ml +85 -0
- package/tests/liquidsoap/src/core/operators/delay_line.ml +94 -0
- package/tests/liquidsoap/src/core/operators/dtmf.ml +417 -0
- package/tests/liquidsoap/src/core/operators/dyn_op.ml +180 -0
- package/tests/liquidsoap/src/core/operators/echo.ml +96 -0
- package/tests/liquidsoap/src/core/operators/filter.ml +141 -0
- package/tests/liquidsoap/src/core/operators/filter_rc.ml +120 -0
- package/tests/liquidsoap/src/core/operators/fir_filter.ml +185 -0
- package/tests/liquidsoap/src/core/operators/flanger.ml +108 -0
- package/tests/liquidsoap/src/core/operators/frei0r_op.ml +368 -0
- package/tests/liquidsoap/src/core/operators/gate.ml +158 -0
- package/tests/liquidsoap/src/core/operators/iir_filter.ml +607 -0
- package/tests/liquidsoap/src/core/operators/insert_metadata.ml +144 -0
- package/tests/liquidsoap/src/core/operators/ladspa_op.ml +413 -0
- package/tests/liquidsoap/src/core/operators/lilv_op.ml +367 -0
- package/tests/liquidsoap/src/core/operators/lufs.ml +221 -0
- package/tests/liquidsoap/src/core/operators/map_metadata.ml +113 -0
- package/tests/liquidsoap/src/core/operators/map_op.ml +62 -0
- package/tests/liquidsoap/src/core/operators/max_duration.ml +100 -0
- package/tests/liquidsoap/src/core/operators/midi_routing.ml +93 -0
- package/tests/liquidsoap/src/core/operators/ms_stereo.ml +138 -0
- package/tests/liquidsoap/src/core/operators/muxer.ml +279 -0
- package/tests/liquidsoap/src/core/operators/noblank.ml +348 -0
- package/tests/liquidsoap/src/core/operators/normalize.ml +198 -0
- package/tests/liquidsoap/src/core/operators/on_end.ml +83 -0
- package/tests/liquidsoap/src/core/operators/on_frame.ml +105 -0
- package/tests/liquidsoap/src/core/operators/on_metadata.ml +67 -0
- package/tests/liquidsoap/src/core/operators/on_offset.ml +108 -0
- package/tests/liquidsoap/src/core/operators/on_track.ml +72 -0
- package/tests/liquidsoap/src/core/operators/pan.ml +71 -0
- package/tests/liquidsoap/src/core/operators/pipe.ml +349 -0
- package/tests/liquidsoap/src/core/operators/pitch.ml +139 -0
- package/tests/liquidsoap/src/core/operators/replaygain_op.ml +93 -0
- package/tests/liquidsoap/src/core/operators/resample.ml +115 -0
- package/tests/liquidsoap/src/core/operators/rms_smooth.ml +88 -0
- package/tests/liquidsoap/src/core/operators/sequence.ml +154 -0
- package/tests/liquidsoap/src/core/operators/soundtouch_op.ml +119 -0
- package/tests/liquidsoap/src/core/operators/st_bpm.ml +79 -0
- package/tests/liquidsoap/src/core/operators/stereotool_op.ml +196 -0
- package/tests/liquidsoap/src/core/operators/still_frame.ml +93 -0
- package/tests/liquidsoap/src/core/operators/switch.ml +450 -0
- package/tests/liquidsoap/src/core/operators/time_warp.ml +554 -0
- package/tests/liquidsoap/src/core/operators/track/merge_metadata.ml +98 -0
- package/tests/liquidsoap/src/core/operators/track_map.ml +161 -0
- package/tests/liquidsoap/src/core/operators/video_effects.ml +709 -0
- package/tests/liquidsoap/src/core/operators/video_fade.ml +315 -0
- package/tests/liquidsoap/src/core/operators/window_op.ml +158 -0
- package/tests/liquidsoap/src/core/outputs/alsa_out.ml +167 -0
- package/tests/liquidsoap/src/core/outputs/ao_out.ml +167 -0
- package/tests/liquidsoap/src/core/outputs/bjack_out.ml +151 -0
- package/tests/liquidsoap/src/core/outputs/graphics_out.ml +76 -0
- package/tests/liquidsoap/src/core/outputs/harbor_output.ml +632 -0
- package/tests/liquidsoap/src/core/outputs/hls_output.ml +1097 -0
- package/tests/liquidsoap/src/core/outputs/icecast2.ml +641 -0
- package/tests/liquidsoap/src/core/outputs/output.ml +257 -0
- package/tests/liquidsoap/src/core/outputs/output.mli +92 -0
- package/tests/liquidsoap/src/core/outputs/pipe_output.ml +622 -0
- package/tests/liquidsoap/src/core/outputs/sdl_out.ml +131 -0
- package/tests/liquidsoap/src/core/playlist_parser.ml +124 -0
- package/tests/liquidsoap/src/core/playlists/playlist_basic.ml +300 -0
- package/tests/liquidsoap/src/core/playlists/playlist_xml.ml +60 -0
- package/tests/liquidsoap/src/core/plug.ml +1 -0
- package/tests/liquidsoap/src/core/pos.ml +1 -0
- package/tests/liquidsoap/src/core/protocols/annotate.ml +70 -0
- package/tests/liquidsoap/src/core/protocols/mpd.ml +149 -0
- package/tests/liquidsoap/src/core/request.ml +721 -0
- package/tests/liquidsoap/src/core/request.mli +200 -0
- package/tests/liquidsoap/src/core/runtime_error.ml +1 -0
- package/tests/liquidsoap/src/core/shebang.ml +66 -0
- package/tests/liquidsoap/src/core/source.ml +892 -0
- package/tests/liquidsoap/src/core/source.mli +346 -0
- package/tests/liquidsoap/src/core/sources/alsa_in.ml +148 -0
- package/tests/liquidsoap/src/core/sources/audio_gen.ml +106 -0
- package/tests/liquidsoap/src/core/sources/bjack_in.ml +153 -0
- package/tests/liquidsoap/src/core/sources/blank.ml +94 -0
- package/tests/liquidsoap/src/core/sources/debug_sources.ml +60 -0
- package/tests/liquidsoap/src/core/sources/external_input_audio.ml +152 -0
- package/tests/liquidsoap/src/core/sources/external_input_video.ml +246 -0
- package/tests/liquidsoap/src/core/sources/generated.ml +137 -0
- package/tests/liquidsoap/src/core/sources/harbor_input.ml +489 -0
- package/tests/liquidsoap/src/core/sources/latest_metadata.ml +38 -0
- package/tests/liquidsoap/src/core/sources/noise.ml +79 -0
- package/tests/liquidsoap/src/core/sources/request_simple.ml +278 -0
- package/tests/liquidsoap/src/core/sources/request_source.ml +542 -0
- package/tests/liquidsoap/src/core/sources/request_source.mli +112 -0
- package/tests/liquidsoap/src/core/sources/synthesized.ml +62 -0
- package/tests/liquidsoap/src/core/sources/video_board.ml +196 -0
- package/tests/liquidsoap/src/core/sources/video_testsrc.ml +88 -0
- package/tests/liquidsoap/src/core/sources/video_text.ml +127 -0
- package/tests/liquidsoap/src/core/startup.ml +7 -0
- package/tests/liquidsoap/src/core/stream/aFrame.ml +66 -0
- package/tests/liquidsoap/src/core/stream/aFrame.mli +77 -0
- package/tests/liquidsoap/src/core/stream/content.ml +51 -0
- package/tests/liquidsoap/src/core/stream/content.mli +212 -0
- package/tests/liquidsoap/src/core/stream/content_audio.ml +107 -0
- package/tests/liquidsoap/src/core/stream/content_base.ml +449 -0
- package/tests/liquidsoap/src/core/stream/content_midi.ml +67 -0
- package/tests/liquidsoap/src/core/stream/content_pcm_base.ml +78 -0
- package/tests/liquidsoap/src/core/stream/content_pcm_f32.ml +52 -0
- package/tests/liquidsoap/src/core/stream/content_pcm_f32.mli +35 -0
- package/tests/liquidsoap/src/core/stream/content_pcm_s16.ml +52 -0
- package/tests/liquidsoap/src/core/stream/content_pcm_s16.mli +36 -0
- package/tests/liquidsoap/src/core/stream/content_timed.ml +149 -0
- package/tests/liquidsoap/src/core/stream/content_video.ml +119 -0
- package/tests/liquidsoap/src/core/stream/ffmpeg_content_base.ml +81 -0
- package/tests/liquidsoap/src/core/stream/ffmpeg_copy_content.ml +157 -0
- package/tests/liquidsoap/src/core/stream/ffmpeg_raw_content.ml +261 -0
- package/tests/liquidsoap/src/core/stream/frame.ml +197 -0
- package/tests/liquidsoap/src/core/stream/frame.mli +243 -0
- package/tests/liquidsoap/src/core/stream/frame_base.ml +145 -0
- package/tests/liquidsoap/src/core/stream/frame_settings.ml +249 -0
- package/tests/liquidsoap/src/core/stream/generator.ml +303 -0
- package/tests/liquidsoap/src/core/stream/generator.mli +106 -0
- package/tests/liquidsoap/src/core/stream/mFrame.ml +45 -0
- package/tests/liquidsoap/src/core/stream/mFrame.mli +29 -0
- package/tests/liquidsoap/src/core/stream/vFrame.ml +52 -0
- package/tests/liquidsoap/src/core/stream/vFrame.mli +65 -0
- package/tests/liquidsoap/src/core/synth/dssi_op.ml +249 -0
- package/tests/liquidsoap/src/core/synth/keyboard.ml +142 -0
- package/tests/liquidsoap/src/core/synth/keyboard_sdl.ml +174 -0
- package/tests/liquidsoap/src/core/synth/synth_op.ml +186 -0
- package/tests/liquidsoap/src/core/term.ml +1 -0
- package/tests/liquidsoap/src/core/tools/avi.ml +380 -0
- package/tests/liquidsoap/src/core/tools/charset.ml +52 -0
- package/tests/liquidsoap/src/core/tools/charset.mli +49 -0
- package/tests/liquidsoap/src/core/tools/charset_base.ml +63 -0
- package/tests/liquidsoap/src/core/tools/child_support.ml +105 -0
- package/tests/liquidsoap/src/core/tools/external_input.ml +78 -0
- package/tests/liquidsoap/src/core/tools/extra_args.ml +27 -0
- package/tests/liquidsoap/src/core/tools/extra_args.mli +26 -0
- package/tests/liquidsoap/src/core/tools/extralib.ml +1 -0
- package/tests/liquidsoap/src/core/tools/ffmpeg_avfilter_utils.ml +151 -0
- package/tests/liquidsoap/src/core/tools/ffmpeg_avfilter_utils.mli +44 -0
- package/tests/liquidsoap/src/core/tools/ffmpeg_utils.ml +354 -0
- package/tests/liquidsoap/src/core/tools/ffmpeg_utils.mli +79 -0
- package/tests/liquidsoap/src/core/tools/gstreamer_utils.ml +200 -0
- package/tests/liquidsoap/src/core/tools/http.ml +173 -0
- package/tests/liquidsoap/src/core/tools/http.mli +62 -0
- package/tests/liquidsoap/src/core/tools/https.mli +1 -0
- package/tests/liquidsoap/src/core/tools/icecast_utils.ml +202 -0
- package/tests/liquidsoap/src/core/tools/ioRing.ml +233 -0
- package/tests/liquidsoap/src/core/tools/lifecycle.ml +100 -0
- package/tests/liquidsoap/src/core/tools/lifecycle.mli +88 -0
- package/tests/liquidsoap/src/core/tools/liq_posix_time.ml +58 -0
- package/tests/liquidsoap/src/core/tools/liq_prometheus.ml +56 -0
- package/tests/liquidsoap/src/core/tools/liq_time.ml +40 -0
- package/tests/liquidsoap/src/core/tools/liq_time.mli +19 -0
- package/tests/liquidsoap/src/core/tools/liqcurl.ml +221 -0
- package/tests/liquidsoap/src/core/tools/liqfm.ml +241 -0
- package/tests/liquidsoap/src/core/tools/liqfm.mli +40 -0
- package/tests/liquidsoap/src/core/tools/liqmemtrace.ml +25 -0
- package/tests/liquidsoap/src/core/tools/log.ml +147 -0
- package/tests/liquidsoap/src/core/tools/log.mli +12 -0
- package/tests/liquidsoap/src/core/tools/pool.ml +87 -0
- package/tests/liquidsoap/src/core/tools/process_handler.ml +345 -0
- package/tests/liquidsoap/src/core/tools/process_handler.mli +113 -0
- package/tests/liquidsoap/src/core/tools/producer_consumer.ml +139 -0
- package/tests/liquidsoap/src/core/tools/rqueue.ml +151 -0
- package/tests/liquidsoap/src/core/tools/rqueue.mli +59 -0
- package/tests/liquidsoap/src/core/tools/sandbox.ml +177 -0
- package/tests/liquidsoap/src/core/tools/sandbox.mli +28 -0
- package/tests/liquidsoap/src/core/tools/sdl_log_level.ml +29 -0
- package/tests/liquidsoap/src/core/tools/sdl_utils.ml +222 -0
- package/tests/liquidsoap/src/core/tools/server.ml +468 -0
- package/tests/liquidsoap/src/core/tools/server.mli +99 -0
- package/tests/liquidsoap/src/core/tools/server_builtins.ml +63 -0
- package/tests/liquidsoap/src/core/tools/sha1.ml +139 -0
- package/tests/liquidsoap/src/core/tools/srt_parser.ml +100 -0
- package/tests/liquidsoap/src/core/tools/ssl_base.ml +25 -0
- package/tests/liquidsoap/src/core/tools/start_stop.ml +182 -0
- package/tests/liquidsoap/src/core/tools/stringView.ml +36 -0
- package/tests/liquidsoap/src/core/tools/stringView.mli +50 -0
- package/tests/liquidsoap/src/core/tools/strings.ml +243 -0
- package/tests/liquidsoap/src/core/tools/strings.mli +209 -0
- package/tests/liquidsoap/src/core/tools/tutils.ml +393 -0
- package/tests/liquidsoap/src/core/tools/tutils.mli +93 -0
- package/tests/liquidsoap/src/core/tools/unix_c.c +86 -0
- package/tests/liquidsoap/src/core/tools/utils.ml +622 -0
- package/tests/liquidsoap/src/core/tools/wav_aiff.ml +261 -0
- package/tests/liquidsoap/src/core/tools/wav_aiff.mli +84 -0
- package/tests/liquidsoap/src/core/tools/websocket.ml +290 -0
- package/tests/liquidsoap/src/core/track.ml +38 -0
- package/tests/liquidsoap/src/core/track.mli +27 -0
- package/tests/liquidsoap/src/core/type.ml +1 -0
- package/tests/liquidsoap/src/core/types/format_type.ml +343 -0
- package/tests/liquidsoap/src/core/types/format_type.mli +45 -0
- package/tests/liquidsoap/src/core/types/frame_type.ml +134 -0
- package/tests/liquidsoap/src/core/types/frame_type.mli +52 -0
- package/tests/liquidsoap/src/core/typing.ml +1 -0
- package/tests/liquidsoap/src/core/unifier.ml +1 -0
- package/tests/liquidsoap/src/core/value.ml +1 -0
- package/tests/liquidsoap/src/core/visualization/midimeter.ml +68 -0
- package/tests/liquidsoap/src/core/visualization/video_volume.ml +153 -0
- package/tests/liquidsoap/src/core/visualization/vis_volume.ml +131 -0
- package/tests/liquidsoap/src/js/dune +45 -0
- package/tests/liquidsoap/src/js/index.html +162 -0
- package/tests/liquidsoap/src/js/init_js.ml +6 -0
- package/tests/liquidsoap/src/js/interactive_js.ml +88 -0
- package/tests/liquidsoap/src/js/regexp_js.ml +57 -0
- package/tests/liquidsoap/src/js/regexp_js.mli +4 -0
- package/tests/liquidsoap/src/js/stdlib_js.liq +9 -0
- package/tests/liquidsoap/src/lang/build_config.mli +11 -0
- package/tests/liquidsoap/src/lang/builtins_bool.ml +74 -0
- package/tests/liquidsoap/src/lang/builtins_eval.ml +37 -0
- package/tests/liquidsoap/src/lang/builtins_getter.ml +109 -0
- package/tests/liquidsoap/src/lang/builtins_json.ml +442 -0
- package/tests/liquidsoap/src/lang/builtins_lang.ml +241 -0
- package/tests/liquidsoap/src/lang/builtins_list.ml +268 -0
- package/tests/liquidsoap/src/lang/builtins_math.ml +300 -0
- package/tests/liquidsoap/src/lang/builtins_null.ml +72 -0
- package/tests/liquidsoap/src/lang/builtins_profiler.ml +56 -0
- package/tests/liquidsoap/src/lang/builtins_ref.ml +33 -0
- package/tests/liquidsoap/src/lang/builtins_regexp.ml +247 -0
- package/tests/liquidsoap/src/lang/builtins_string.ml +563 -0
- package/tests/liquidsoap/src/lang/builtins_yaml.ml +51 -0
- package/tests/liquidsoap/src/lang/doc.ml +696 -0
- package/tests/liquidsoap/src/lang/dune +144 -0
- package/tests/liquidsoap/src/lang/environment.ml +125 -0
- package/tests/liquidsoap/src/lang/environment.mli +49 -0
- package/tests/liquidsoap/src/lang/error.ml +45 -0
- package/tests/liquidsoap/src/lang/error.mli +27 -0
- package/tests/liquidsoap/src/lang/evaluation.ml +537 -0
- package/tests/liquidsoap/src/lang/evaluation.mli +30 -0
- package/tests/liquidsoap/src/lang/extralib.ml +90 -0
- package/tests/liquidsoap/src/lang/hooks.ml +58 -0
- package/tests/liquidsoap/src/lang/hooks.mli +38 -0
- package/tests/liquidsoap/src/lang/json.ml +142 -0
- package/tests/liquidsoap/src/lang/json.mli +18 -0
- package/tests/liquidsoap/src/lang/json_base.ml +12 -0
- package/tests/liquidsoap/src/lang/json_lexer.ml +322 -0
- package/tests/liquidsoap/src/lang/json_parser.mly +101 -0
- package/tests/liquidsoap/src/lang/lang.ml +3 -0
- package/tests/liquidsoap/src/lang/lang.mli +255 -0
- package/tests/liquidsoap/src/lang/lang_core.ml +493 -0
- package/tests/liquidsoap/src/lang/lang_error.ml +165 -0
- package/tests/liquidsoap/src/lang/lang_regexp.ml +24 -0
- package/tests/liquidsoap/src/lang/lang_string.ml +563 -0
- package/tests/liquidsoap/src/lang/lang_string.mli +80 -0
- package/tests/liquidsoap/src/lang/lexer.ml +520 -0
- package/tests/liquidsoap/src/lang/methods.ml +43 -0
- package/tests/liquidsoap/src/lang/methods.mli +43 -0
- package/tests/liquidsoap/src/lang/modules.ml +33 -0
- package/tests/liquidsoap/src/lang/parser.mly +690 -0
- package/tests/liquidsoap/src/lang/parser_helper.ml +202 -0
- package/tests/liquidsoap/src/lang/parser_helper.mli +77 -0
- package/tests/liquidsoap/src/lang/plug.ml +99 -0
- package/tests/liquidsoap/src/lang/pos.ml +73 -0
- package/tests/liquidsoap/src/lang/preprocessor.ml +197 -0
- package/tests/liquidsoap/src/lang/profiler.ml +92 -0
- package/tests/liquidsoap/src/lang/regexp.ml +39 -0
- package/tests/liquidsoap/src/lang/regexp.mli +26 -0
- package/tests/liquidsoap/src/lang/repr.ml +537 -0
- package/tests/liquidsoap/src/lang/runtime.ml +360 -0
- package/tests/liquidsoap/src/lang/runtime.mli +70 -0
- package/tests/liquidsoap/src/lang/runtime_error.ml +49 -0
- package/tests/liquidsoap/src/lang/runtime_error.mli +37 -0
- package/tests/liquidsoap/src/lang/startup.ml +34 -0
- package/tests/liquidsoap/src/lang/term/parsed_term.ml +329 -0
- package/tests/liquidsoap/src/lang/term/runtime_term.ml +75 -0
- package/tests/liquidsoap/src/lang/term/term_base.ml +554 -0
- package/tests/liquidsoap/src/lang/term/term_reducer.ml +891 -0
- package/tests/liquidsoap/src/lang/term/term_reducer.mli +33 -0
- package/tests/liquidsoap/src/lang/term.ml +48 -0
- package/tests/liquidsoap/src/lang/term.mli +109 -0
- package/tests/liquidsoap/src/lang/type.ml +65 -0
- package/tests/liquidsoap/src/lang/type.mli +146 -0
- package/tests/liquidsoap/src/lang/typechecking.ml +439 -0
- package/tests/liquidsoap/src/lang/typechecking.mli +14 -0
- package/tests/liquidsoap/src/lang/types/ground_type.ml +106 -0
- package/tests/liquidsoap/src/lang/types/ground_type.mli +54 -0
- package/tests/liquidsoap/src/lang/types/ref_type.ml +28 -0
- package/tests/liquidsoap/src/lang/types/type_base.ml +382 -0
- package/tests/liquidsoap/src/lang/typing.ml +649 -0
- package/tests/liquidsoap/src/lang/typing.mli +60 -0
- package/tests/liquidsoap/src/lang/unifier.ml +44 -0
- package/tests/liquidsoap/src/lang/unifier.mli +28 -0
- package/tests/liquidsoap/src/lang/utils.ml +51 -0
- package/tests/liquidsoap/src/lang/value.ml +227 -0
- package/tests/liquidsoap/src/libs/audio.liq +342 -0
- package/tests/liquidsoap/src/libs/clock.liq +63 -0
- package/tests/liquidsoap/src/libs/dune +15 -0
- package/tests/liquidsoap/src/libs/error.liq +34 -0
- package/tests/liquidsoap/src/libs/extra/audio.liq +617 -0
- package/tests/liquidsoap/src/libs/extra/deprecations.liq +892 -0
- package/tests/liquidsoap/src/libs/extra/externals.liq +802 -0
- package/tests/liquidsoap/src/libs/extra/file.liq +66 -0
- package/tests/liquidsoap/src/libs/extra/gstreamer.liq +209 -0
- package/tests/liquidsoap/src/libs/extra/http.liq +159 -0
- package/tests/liquidsoap/src/libs/extra/interactive.liq +854 -0
- package/tests/liquidsoap/src/libs/extra/lastfm.liq +185 -0
- package/tests/liquidsoap/src/libs/extra/native.liq +195 -0
- package/tests/liquidsoap/src/libs/extra/server.liq +175 -0
- package/tests/liquidsoap/src/libs/extra/source.liq +260 -0
- package/tests/liquidsoap/src/libs/extra/telnet.liq +281 -0
- package/tests/liquidsoap/src/libs/extra/visualization.liq +68 -0
- package/tests/liquidsoap/src/libs/fades.liq +651 -0
- package/tests/liquidsoap/src/libs/ffmpeg.liq +590 -0
- package/tests/liquidsoap/src/libs/file.liq +269 -0
- package/tests/liquidsoap/src/libs/getter.liq +74 -0
- package/tests/liquidsoap/src/libs/hls.liq +327 -0
- package/tests/liquidsoap/src/libs/http.liq +990 -0
- package/tests/liquidsoap/src/libs/http_codes.liq +449 -0
- package/tests/liquidsoap/src/libs/icecast.liq +55 -0
- package/tests/liquidsoap/src/libs/io.liq +169 -0
- package/tests/liquidsoap/src/libs/liquidsoap.liq +31 -0
- package/tests/liquidsoap/src/libs/log.liq +47 -0
- package/tests/liquidsoap/src/libs/math.liq +23 -0
- package/tests/liquidsoap/src/libs/medialib.liq +382 -0
- package/tests/liquidsoap/src/libs/metadata.liq +259 -0
- package/tests/liquidsoap/src/libs/null.liq +73 -0
- package/tests/liquidsoap/src/libs/playlist.liq +634 -0
- package/tests/liquidsoap/src/libs/predicate.liq +106 -0
- package/tests/liquidsoap/src/libs/process.liq +93 -0
- package/tests/liquidsoap/src/libs/profiler.liq +5 -0
- package/tests/liquidsoap/src/libs/protocols.liq +1043 -0
- package/tests/liquidsoap/src/libs/ref.liq +28 -0
- package/tests/liquidsoap/src/libs/replaygain.liq +118 -0
- package/tests/liquidsoap/src/libs/request.liq +236 -0
- package/tests/liquidsoap/src/libs/resolvers.liq +30 -0
- package/tests/liquidsoap/src/libs/runtime.liq +78 -0
- package/tests/liquidsoap/src/libs/server.liq +7 -0
- package/tests/liquidsoap/src/libs/settings.liq +27 -0
- package/tests/liquidsoap/src/libs/socket.liq +28 -0
- package/tests/liquidsoap/src/libs/source.liq +257 -0
- package/tests/liquidsoap/src/libs/stdlib.liq +105 -0
- package/tests/liquidsoap/src/libs/string.liq +409 -0
- package/tests/liquidsoap/src/libs/switches.liq +240 -0
- package/tests/liquidsoap/src/libs/testing.liq +37 -0
- package/tests/liquidsoap/src/libs/thread.liq +64 -0
- package/tests/liquidsoap/src/libs/tracks.liq +63 -0
- package/tests/liquidsoap/src/libs/utils.liq +67 -0
- package/tests/liquidsoap/src/libs/video.liq +763 -0
- package/tests/liquidsoap/src/runtime/build_config.ml +143 -0
- package/tests/liquidsoap/src/runtime/dune +14 -0
- package/tests/liquidsoap/src/runtime/main.ml +730 -0
- package/tests/liquidsoap/src/runtime/runner.default.ml +25 -0
- package/tests/liquidsoap/src/runtime/runner.mli +1 -0
- package/tests/liquidsoap/src/runtime/runner.winsvc.ml +83 -0
- package/tests/liquidsoap/src/stereotool/dune +5 -0
- package/tests/liquidsoap/src/stereotool/stereotool.ml +151 -0
- package/tests/liquidsoap/src/stereotool/stereotool.mli +30 -0
- package/tests/liquidsoap/src/tooling/dune +13 -0
- package/tests/liquidsoap/src/tooling/parsed_json.ml +595 -0
- package/tests/liquidsoap/src/tooling/parsed_json.mli +26 -0
- package/tests/liquidsoap/tests/check_output.ml +41 -0
- package/tests/liquidsoap/tests/core/content_test.ml +80 -0
- package/tests/liquidsoap/tests/core/decoder_test.ml +55 -0
- package/tests/liquidsoap/tests/core/dune +57 -0
- package/tests/liquidsoap/tests/core/dune.inc +363 -0
- package/tests/liquidsoap/tests/core/ffmpeg_quality.ml +81 -0
- package/tests/liquidsoap/tests/core/frame_test.ml +41 -0
- package/tests/liquidsoap/tests/core/gen_dune.ml +52 -0
- package/tests/liquidsoap/tests/core/generator_test.ml +106 -0
- package/tests/liquidsoap/tests/core/is_url.ml +4 -0
- package/tests/liquidsoap/tests/core/json_test.ml +129 -0
- package/tests/liquidsoap/tests/core/meth.ml +48 -0
- package/tests/liquidsoap/tests/core/more_types.ml +63 -0
- package/tests/liquidsoap/tests/core/output_encoded_test.ml +42 -0
- package/tests/liquidsoap/tests/core/output_test.ml +42 -0
- package/tests/liquidsoap/tests/core/parsesrt.ml +12 -0
- package/tests/liquidsoap/tests/core/playlist_basic_test.ml +74 -0
- package/tests/liquidsoap/tests/core/pool_test.ml +46 -0
- package/tests/liquidsoap/tests/core/readavi.ml +8 -0
- package/tests/liquidsoap/tests/core/source_test.ml +16 -0
- package/tests/liquidsoap/tests/core/start_stop_test.ml +30 -0
- package/tests/liquidsoap/tests/core/stream_decoder_test.ml +52 -0
- package/tests/liquidsoap/tests/core/string_test.ml +1 -0
- package/tests/liquidsoap/tests/core/strings_test.ml +15 -0
- package/tests/liquidsoap/tests/core/taglib_test.ml +35 -0
- package/tests/liquidsoap/tests/core/test.srt +20 -0
- package/tests/liquidsoap/tests/core/timezone.ml +7 -0
- package/tests/liquidsoap/tests/core/types.ml +397 -0
- package/tests/liquidsoap/tests/core/unifier_test.ml +29 -0
- package/tests/liquidsoap/tests/core/utils_test.ml +6 -0
- package/tests/liquidsoap/tests/core/version_test.ml +27 -0
- package/tests/liquidsoap/tests/dune +14 -0
- package/tests/liquidsoap/tests/failures/ctype.liq +9 -0
- package/tests/liquidsoap/tests/failures/error.liq +7 -0
- package/tests/liquidsoap/tests/failures/record-invalid-member1.liq +10 -0
- package/tests/liquidsoap/tests/failures/record-invalid-member2.liq +3 -0
- package/tests/liquidsoap/tests/failures/ref.liq +12 -0
- package/tests/liquidsoap/tests/fixme/GH1170.liq +37 -0
- package/tests/liquidsoap/tests/fixme/LS527.liq +26 -0
- package/tests/liquidsoap/tests/fixme/cross2.liq +20 -0
- package/tests/liquidsoap/tests/fixme/cross3.liq +26 -0
- package/tests/liquidsoap/tests/fixme/sequence-1.liq +41 -0
- package/tests/liquidsoap/tests/fixme/sequence-2.liq +36 -0
- package/tests/liquidsoap/tests/gen_dune.ml +46 -0
- package/tests/liquidsoap/tests/harbor/dune +18 -0
- package/tests/liquidsoap/tests/harbor/dune.inc +60 -0
- package/tests/liquidsoap/tests/harbor/http.liq +314 -0
- package/tests/liquidsoap/tests/harbor/http2.liq +105 -0
- package/tests/liquidsoap/tests/harbor/http3.liq +56 -0
- package/tests/liquidsoap/tests/harbor/post.liq +207 -0
- package/tests/liquidsoap/tests/harbor/put.liq +209 -0
- package/tests/liquidsoap/tests/language/argsof.liq +48 -0
- package/tests/liquidsoap/tests/language/bool.liq +39 -0
- package/tests/liquidsoap/tests/language/comments.liq +76 -0
- package/tests/liquidsoap/tests/language/conversions.liq +14 -0
- package/tests/liquidsoap/tests/language/doc.liq +14 -0
- package/tests/liquidsoap/tests/language/dune +74 -0
- package/tests/liquidsoap/tests/language/dune.inc +504 -0
- package/tests/liquidsoap/tests/language/encoders.liq +93 -0
- package/tests/liquidsoap/tests/language/error.liq +164 -0
- package/tests/liquidsoap/tests/language/eval.liq +73 -0
- package/tests/liquidsoap/tests/language/file.liq +36 -0
- package/tests/liquidsoap/tests/language/file.watch.liq +19 -0
- package/tests/liquidsoap/tests/language/file.watch2.liq +23 -0
- package/tests/liquidsoap/tests/language/file_protocol.liq +32 -0
- package/tests/liquidsoap/tests/language/functions.liq +52 -0
- package/tests/liquidsoap/tests/language/gen_dune.ml +49 -0
- package/tests/liquidsoap/tests/language/getter.liq +77 -0
- package/tests/liquidsoap/tests/language/interactive.liq +50 -0
- package/tests/liquidsoap/tests/language/json.liq +311 -0
- package/tests/liquidsoap/tests/language/list.liq +124 -0
- package/tests/liquidsoap/tests/language/loop.liq +30 -0
- package/tests/liquidsoap/tests/language/math.liq +12 -0
- package/tests/liquidsoap/tests/language/mem_usage.liq +68 -0
- package/tests/liquidsoap/tests/language/metadata.liq +136 -0
- package/tests/liquidsoap/tests/language/metrics.liq +22 -0
- package/tests/liquidsoap/tests/language/null.liq +42 -0
- package/tests/liquidsoap/tests/language/number.liq +54 -0
- package/tests/liquidsoap/tests/language/osc.liq +69 -0
- package/tests/liquidsoap/tests/language/pattern.liq +103 -0
- package/tests/liquidsoap/tests/language/pp.liq +57 -0
- package/tests/liquidsoap/tests/language/predicate.liq +54 -0
- package/tests/liquidsoap/tests/language/process.liq +51 -0
- package/tests/liquidsoap/tests/language/rec.liq +26 -0
- package/tests/liquidsoap/tests/language/record.liq +277 -0
- package/tests/liquidsoap/tests/language/ref.liq +37 -0
- package/tests/liquidsoap/tests/language/regexp.liq +41 -0
- package/tests/liquidsoap/tests/language/socket.liq +45 -0
- package/tests/liquidsoap/tests/language/stdlib.liq +24 -0
- package/tests/liquidsoap/tests/language/string.liq +170 -0
- package/tests/liquidsoap/tests/language/test_cover.liq +8 -0
- package/tests/liquidsoap/tests/language/thread.liq +70 -0
- package/tests/liquidsoap/tests/language/time.liq +25 -0
- package/tests/liquidsoap/tests/language/type_errors.liq +399 -0
- package/tests/liquidsoap/tests/language/typing.liq +233 -0
- package/tests/liquidsoap/tests/language/url.liq +15 -0
- package/tests/liquidsoap/tests/language/write_cover.liq +9 -0
- package/tests/liquidsoap/tests/language/yaml.liq +36 -0
- package/tests/liquidsoap/tests/media/dune +253 -0
- package/tests/liquidsoap/tests/media/dune.inc +1805 -0
- package/tests/liquidsoap/tests/media/encoder_audio_only.liq.in +14 -0
- package/tests/liquidsoap/tests/media/encoder_audio_video.liq.in +16 -0
- package/tests/liquidsoap/tests/media/encoder_multitrack.liq.in +19 -0
- package/tests/liquidsoap/tests/media/encoder_video_only.liq.in +14 -0
- package/tests/liquidsoap/tests/media/ffmpeg_add_text.liq +88 -0
- package/tests/liquidsoap/tests/media/ffmpeg_audio_decoder.liq +45 -0
- package/tests/liquidsoap/tests/media/ffmpeg_complex_filter.liq +59 -0
- package/tests/liquidsoap/tests/media/ffmpeg_copy_and_encode_decoder.liq +76 -0
- package/tests/liquidsoap/tests/media/ffmpeg_copy_concat.liq +39 -0
- package/tests/liquidsoap/tests/media/ffmpeg_copy_decoder.liq +90 -0
- package/tests/liquidsoap/tests/media/ffmpeg_distributed_hls.liq +125 -0
- package/tests/liquidsoap/tests/media/ffmpeg_distributed_hls_state.json +112 -0
- package/tests/liquidsoap/tests/media/ffmpeg_drop_tracks.liq +119 -0
- package/tests/liquidsoap/tests/media/ffmpeg_filter.liq +105 -0
- package/tests/liquidsoap/tests/media/ffmpeg_filter_changing_rate.liq +117 -0
- package/tests/liquidsoap/tests/media/ffmpeg_inline_encode_decode.liq +103 -0
- package/tests/liquidsoap/tests/media/ffmpeg_inline_encode_decode_audio.liq +77 -0
- package/tests/liquidsoap/tests/media/ffmpeg_inline_encode_decode_video.liq +66 -0
- package/tests/liquidsoap/tests/media/ffmpeg_raw_and_copy_decoder.liq +92 -0
- package/tests/liquidsoap/tests/media/ffmpeg_raw_and_encode_decoder.liq +78 -0
- package/tests/liquidsoap/tests/media/ffmpeg_raw_decoder.liq +80 -0
- package/tests/liquidsoap/tests/media/ffmpeg_raw_hls.liq +115 -0
- package/tests/liquidsoap/tests/media/ffmpeg_transparency_filter.liq +91 -0
- package/tests/liquidsoap/tests/media/ffmpeg_video_decoder.liq +52 -0
- package/tests/liquidsoap/tests/media/gen_dune.ml +192 -0
- package/tests/liquidsoap/tests/media/mk_encoder_test.sh +8 -0
- package/tests/liquidsoap/tests/media/mk_stream_test.sh +11 -0
- package/tests/liquidsoap/tests/media/mono.liq +45 -0
- package/tests/liquidsoap/tests/media/multitrack.liq +113 -0
- package/tests/liquidsoap/tests/media/pcm_f32_decode.liq +4 -0
- package/tests/liquidsoap/tests/media/pcm_s16_decode.liq +4 -0
- package/tests/liquidsoap/tests/media/stereo.liq +45 -0
- package/tests/liquidsoap/tests/media/stream_audio.liq.in +49 -0
- package/tests/liquidsoap/tests/media/stream_video.liq.in +49 -0
- package/tests/liquidsoap/tests/media/taglib.liq +11 -0
- package/tests/liquidsoap/tests/media/video_size.liq +54 -0
- package/tests/liquidsoap/tests/performance/dune +31 -0
- package/tests/liquidsoap/tests/performance/erathostenes.liq +27 -0
- package/tests/liquidsoap/tests/performance/gen_bigrecord.ml +69 -0
- package/tests/liquidsoap/tests/performance/memory.liq +6 -0
- package/tests/liquidsoap/tests/performance/performance.liq +12 -0
- package/tests/liquidsoap/tests/performance/small-record.liq +43 -0
- package/tests/liquidsoap/tests/regression/115-1.liq +11 -0
- package/tests/liquidsoap/tests/regression/115-2.liq +6 -0
- package/tests/liquidsoap/tests/regression/AC5109.liq +26 -0
- package/tests/liquidsoap/tests/regression/BUG403.liq +29 -0
- package/tests/liquidsoap/tests/regression/GH-action-919422659.liq +17 -0
- package/tests/liquidsoap/tests/regression/GH1129.liq +57 -0
- package/tests/liquidsoap/tests/regression/GH1146.liq +15 -0
- package/tests/liquidsoap/tests/regression/GH1151.liq +16 -0
- package/tests/liquidsoap/tests/regression/GH1159.liq +13 -0
- package/tests/liquidsoap/tests/regression/GH1279.liq +44 -0
- package/tests/liquidsoap/tests/regression/GH1327.liq +61 -0
- package/tests/liquidsoap/tests/regression/GH2573.output +7 -0
- package/tests/liquidsoap/tests/regression/GH2585.liq +29 -0
- package/tests/liquidsoap/tests/regression/GH2602.liq +18 -0
- package/tests/liquidsoap/tests/regression/GH2756-2.liq +81 -0
- package/tests/liquidsoap/tests/regression/GH2756.liq +90 -0
- package/tests/liquidsoap/tests/regression/GH2758.liq +11 -0
- package/tests/liquidsoap/tests/regression/GH2842.liq +26 -0
- package/tests/liquidsoap/tests/regression/GH2850.liq +74 -0
- package/tests/liquidsoap/tests/regression/GH2867.liq +6 -0
- package/tests/liquidsoap/tests/regression/GH2871.liq +21 -0
- package/tests/liquidsoap/tests/regression/GH2872.liq +21 -0
- package/tests/liquidsoap/tests/regression/GH2897.liq +24 -0
- package/tests/liquidsoap/tests/regression/GH2902.liq +39 -0
- package/tests/liquidsoap/tests/regression/GH2926.liq +17 -0
- package/tests/liquidsoap/tests/regression/GH3093.liq +10 -0
- package/tests/liquidsoap/tests/regression/GH3121.liq +16 -0
- package/tests/liquidsoap/tests/regression/GH3132.liq +11 -0
- package/tests/liquidsoap/tests/regression/GH3224.liq +6 -0
- package/tests/liquidsoap/tests/regression/GH3239-2.liq +17 -0
- package/tests/liquidsoap/tests/regression/GH3239.liq +16 -0
- package/tests/liquidsoap/tests/regression/GH3276.liq +23 -0
- package/tests/liquidsoap/tests/regression/GH3316.liq +37 -0
- package/tests/liquidsoap/tests/regression/LS268.liq +9 -0
- package/tests/liquidsoap/tests/regression/LS354-1.liq +7 -0
- package/tests/liquidsoap/tests/regression/LS354-2.liq +15 -0
- package/tests/liquidsoap/tests/regression/LS460.liq +16 -0
- package/tests/liquidsoap/tests/regression/LS503.liq +20 -0
- package/tests/liquidsoap/tests/regression/default_format.liq +3 -0
- package/tests/liquidsoap/tests/regression/dune +39 -0
- package/tests/liquidsoap/tests/regression/dune.inc +685 -0
- package/tests/liquidsoap/tests/regression/external-encoder.liq +6 -0
- package/tests/liquidsoap/tests/regression/ffmpeg-copy-encode.liq +31 -0
- package/tests/liquidsoap/tests/regression/ffmpeg-copy-input-http.liq +8 -0
- package/tests/liquidsoap/tests/regression/ffmpeg-naming-convention.liq +66 -0
- package/tests/liquidsoap/tests/regression/gen_dune.ml +47 -0
- package/tests/liquidsoap/tests/regression/infallible-shutdown.liq +5 -0
- package/tests/liquidsoap/tests/regression/init-error.liq +9 -0
- package/tests/liquidsoap/tests/regression/initial_request_queue.liq +8 -0
- package/tests/liquidsoap/tests/regression/input_rtmp.liq +3 -0
- package/tests/liquidsoap/tests/regression/metadata_cache.liq +39 -0
- package/tests/liquidsoap/tests/regression/playlist-id.liq +21 -0
- package/tests/liquidsoap/tests/regression/replaygain.liq +5 -0
- package/tests/liquidsoap/tests/regression/shoutcast-args.liq +9 -0
- package/tests/liquidsoap/tests/regression/unified-pcm-types.liq +10 -0
- package/tests/liquidsoap/tests/regression/video-only.liq +7 -0
- package/tests/liquidsoap/tests/run_test.ml +97 -0
- package/tests/liquidsoap/tests/streams/195.liq +4 -0
- package/tests/liquidsoap/tests/streams/197.liq +23 -0
- package/tests/liquidsoap/tests/streams/autostart.liq +27 -0
- package/tests/liquidsoap/tests/streams/cross-override.liq +43 -0
- package/tests/liquidsoap/tests/streams/cross-persist-override.liq +43 -0
- package/tests/liquidsoap/tests/streams/cross.liq +44 -0
- package/tests/liquidsoap/tests/streams/crossfade.liq +41 -0
- package/tests/liquidsoap/tests/streams/ctype1.liq +13 -0
- package/tests/liquidsoap/tests/streams/ctype2.liq +21 -0
- package/tests/liquidsoap/tests/streams/dtmf.liq +23 -0
- package/tests/liquidsoap/tests/streams/dtmf_pcm_s16.liq +26 -0
- package/tests/liquidsoap/tests/streams/dune +298 -0
- package/tests/liquidsoap/tests/streams/dune.inc +1078 -0
- package/tests/liquidsoap/tests/streams/fades-overrides.liq +58 -0
- package/tests/liquidsoap/tests/streams/fades-persistent-override.liq +58 -0
- package/tests/liquidsoap/tests/streams/ffmpeg-errors.liq +16 -0
- package/tests/liquidsoap/tests/streams/ffmpeg-trim.liq +17 -0
- package/tests/liquidsoap/tests/streams/file_output.liq +14 -0
- package/tests/liquidsoap/tests/streams/gen_dune.ml +45 -0
- package/tests/liquidsoap/tests/streams/harbor_kick_client.liq +58 -0
- package/tests/liquidsoap/tests/streams/harbor_metadata.liq +53 -0
- package/tests/liquidsoap/tests/streams/hls_custom_tags.liq +89 -0
- package/tests/liquidsoap/tests/streams/hls_id3v2.liq +134 -0
- package/tests/liquidsoap/tests/streams/hls_main_playlist.liq +54 -0
- package/tests/liquidsoap/tests/streams/huge-playlist.liq +25 -0
- package/tests/liquidsoap/tests/streams/icecast_ssl.liq +25 -0
- package/tests/liquidsoap/tests/streams/icecast_ssl_tls.liq +32 -0
- package/tests/liquidsoap/tests/streams/icecast_tls.liq +30 -0
- package/tests/liquidsoap/tests/streams/icecast_tls_ssl.liq +32 -0
- package/tests/liquidsoap/tests/streams/image.liq +4 -0
- package/tests/liquidsoap/tests/streams/many-playlists.liq +28 -0
- package/tests/liquidsoap/tests/streams/merge_metadata.liq +69 -0
- package/tests/liquidsoap/tests/streams/never.liq +6 -0
- package/tests/liquidsoap/tests/streams/on_frame.liq +14 -0
- package/tests/liquidsoap/tests/streams/on_metadata.liq +22 -0
- package/tests/liquidsoap/tests/streams/on_track.liq +12 -0
- package/tests/liquidsoap/tests/streams/playlist-watch.liq +43 -0
- package/tests/liquidsoap/tests/streams/radio.liq +11 -0
- package/tests/liquidsoap/tests/streams/radio2.liq +20 -0
- package/tests/liquidsoap/tests/streams/random.liq +70 -0
- package/tests/liquidsoap/tests/streams/replaygain.liq +11 -0
- package/tests/liquidsoap/tests/streams/request.liq +75 -0
- package/tests/liquidsoap/tests/streams/rotate.liq +44 -0
- package/tests/liquidsoap/tests/streams/say.liq +24 -0
- package/tests/liquidsoap/tests/streams/seek_track_map.liq +23 -0
- package/tests/liquidsoap/tests/streams/sharing.liq +17 -0
- package/tests/liquidsoap/tests/streams/sine.detect.full_conv.liq +17 -0
- package/tests/liquidsoap/tests/streams/sine.detect.liq +12 -0
- package/tests/liquidsoap/tests/streams/sine.detect.pcm_f32.liq +14 -0
- package/tests/liquidsoap/tests/streams/sine.detect.pcm_s16.liq +14 -0
- package/tests/liquidsoap/tests/streams/smart-crossfade.liq +11 -0
- package/tests/liquidsoap/tests/streams/srt_listen_callback.liq +24 -0
- package/tests/liquidsoap/tests/streams/srt_multiple_outputs.liq +16 -0
- package/tests/liquidsoap/tests/streams/srt_passphrase.liq +19 -0
- package/tests/liquidsoap/tests/streams/srt_raw_pcm.liq +13 -0
- package/tests/liquidsoap/tests/streams/stretch-clock-propagation.liq +13 -0
- package/tests/liquidsoap/tests/test.liq +237 -0
- package/tests/liquidsoap/tls-liquidsoap.opam +33 -0
- package/tests/run.sh +18 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Normalization and ReplayGain
|
|
2
|
+
|
|
3
|
+
## Normalization
|
|
4
|
+
|
|
5
|
+
If you want to have a constant average volume on an audio stream, you can use the `normalize` operator. However, this operator cannot guess the volume of the whole stream, and can be "surprised" by rapid changes of the volume. This can lead to a volume that is too low, too high, oscillates. In some cases, dynamic normalization also creates saturation.
|
|
6
|
+
|
|
7
|
+
To tweak the normalization, several parameters are available. These are listed and explained in the [reference](reference.html) and also visible by executing `liquidsoap -h normalize`. However, if the stream you want to normalize consist of audio files, using the replay gain technology might be a better choice.
|
|
8
|
+
|
|
9
|
+
## Replay gain
|
|
10
|
+
|
|
11
|
+
[ReplayGain](https://en.wikipedia.org/wiki/ReplayGain) is a proposed standard that is (more or less) respected by many open-source tools. It provides a way to obtain an overall uniform perceived loudness over a track or a set of tracks. The computation of the loudness is based on how the human ear actually perceives each range of frequency. Having computed the average perceived loudness on a track or an album, it is easy to renormalize the tracks when playing, ensuring a comfortable, consistent listening experience.
|
|
12
|
+
|
|
13
|
+
Because it is track-based, replay gain does not suffer from the typical problems of stream-based, dynamic approaches. Namely, these distort the initial audio, since they constantly adapt the amplification factor. Sometimes it oscillates too quickly in a weird audible way. Sometimes it does not adapt quickly enough, leading to under or over-amplified sections.
|
|
14
|
+
|
|
15
|
+
### Computing or retrieving replay gain information
|
|
16
|
+
|
|
17
|
+
The first step in order to use replay gain is to fetch or compute the appropriate normalization level for a given file.
|
|
18
|
+
|
|
19
|
+
Replay gain information can be found in various metadata fields depending on the audio format and the replay gain computation tool.
|
|
20
|
+
Liquidsoap provides a script for extracting the replay gain value which requires the `ffmpeg` binary.
|
|
21
|
+
|
|
22
|
+
There are two ways to use our replain gain script, one that works for _all_ files and one that can be enabled on a
|
|
23
|
+
per-file basis, if you need finer grained control over replay gain.
|
|
24
|
+
|
|
25
|
+
#### Using the replay gain metadata resolver
|
|
26
|
+
|
|
27
|
+
The metadata solution is uniform: without changing anything, _all_ your
|
|
28
|
+
files will have a new `replaygain_track_gain` metadata when the computation succeeded.
|
|
29
|
+
|
|
30
|
+
However, keep in mind that this computation can be costly and will be done each time a remote file is
|
|
31
|
+
downloaded to be prepared for streaming unless it already has the information pre-computed. For this
|
|
32
|
+
reason, it is recommended to pre-compute replay gain information as much as possible, specially
|
|
33
|
+
if you intent to stream large audio files.
|
|
34
|
+
|
|
35
|
+
The replay gain metadata resolver is not enabled by default. You can do it
|
|
36
|
+
by adding the following code to your script:
|
|
37
|
+
|
|
38
|
+
```liquidsoap
|
|
39
|
+
enable_replaygain_metadata()
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### Using the `replaygain:` protocol
|
|
43
|
+
|
|
44
|
+
The `replaygain:` protocol triggers replay gain retrieval or computation on
|
|
45
|
+
a per-file bases. To use it, you prefix your request URIs with it.
|
|
46
|
+
|
|
47
|
+
For instance, replacing `/path/to/file.mp3` with `replaygain:/path/to/file.mp3`.
|
|
48
|
+
|
|
49
|
+
When resolving such a request, a call to our script will be issued,
|
|
50
|
+
resulting in your file having the extra `replaygain_track_gain` metadata.
|
|
51
|
+
|
|
52
|
+
Prepending `replaygain:` is easy if you are using a script
|
|
53
|
+
behind some `request.dynamic.list` operator. If you are using the
|
|
54
|
+
`playlist` operator, you can use its `prefix` parameter.
|
|
55
|
+
|
|
56
|
+
Protocols can be chained, for instance:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
annotate:foo="bar":replaygain:/path/to/file.mp3
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Applying replay gain information
|
|
63
|
+
|
|
64
|
+
After fetching or computing the replay gain information, the next step is to use it to correct the source's volume.
|
|
65
|
+
|
|
66
|
+
The `amplify()` operator is used for that. This operator can be made to behave according to a given metadata, here the `replaygain` metadata. This is
|
|
67
|
+
done using the `override` parameter.
|
|
68
|
+
|
|
69
|
+
For replay gain implementation, the `amplify` operator would typically be added immediately on top of the basic tracks source, before transitions or other audio processing operators. Typically:
|
|
70
|
+
|
|
71
|
+
```liquidsoap
|
|
72
|
+
enable_replaygain_metadata()
|
|
73
|
+
|
|
74
|
+
s = playlist("~/playlist")
|
|
75
|
+
s = amplify(1.,override="replaygain_track_gain",s)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
For convenience, we added the `replaygain` operator which performs the
|
|
79
|
+
amplification on the right metadata so that this can further be simplified to
|
|
80
|
+
|
|
81
|
+
```liquidsoap
|
|
82
|
+
enable_replaygain_metadata()
|
|
83
|
+
|
|
84
|
+
s = replaygain(playlist("~/playlist"))
|
|
85
|
+
```
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Playing files is the most common way to build an audio stream.
|
|
2
|
+
In liquidsoap, files are accessed through [requests](requests.html),
|
|
3
|
+
which combine the retrieval of a possibly remote file, and its
|
|
4
|
+
decoding.
|
|
5
|
+
|
|
6
|
+
Liquidsoap provides several operators for playing requests:
|
|
7
|
+
`single`, `playlist` and `playlist.safe`,
|
|
8
|
+
`request.dynamic.list`, `request.queue` and `request.equeue`.
|
|
9
|
+
In a few cases (`single` with a local file,
|
|
10
|
+
or `playlist.safe`) a request operator will know
|
|
11
|
+
that it can always get a ready request instantaneously.
|
|
12
|
+
It will then be [infallible](sources.html).
|
|
13
|
+
Otherwise, it will have a queue of requests ready
|
|
14
|
+
to be played (local files with a valid content), and will
|
|
15
|
+
feed this queue in the background.
|
|
16
|
+
This process is described here.
|
|
17
|
+
|
|
18
|
+
## Common parameters
|
|
19
|
+
|
|
20
|
+
Queued request sources maintain an _estimated remaining time_,
|
|
21
|
+
and trigger a new request resolution when this remaining time
|
|
22
|
+
goes below their `length` parameter.
|
|
23
|
+
|
|
24
|
+
The estimation is based on the duration of files prepared in the queue,
|
|
25
|
+
and the estimated remaining time in the currently playing file.
|
|
26
|
+
Precise file durations being expensive to compute, they are not
|
|
27
|
+
forced: if a duration is provided in the metadata it shall be used,
|
|
28
|
+
otherwise the `default_length` is assumed.
|
|
29
|
+
|
|
30
|
+
For example, with the default 10 seconds of wanted queue length,
|
|
31
|
+
the operator will only prepare a new file 10 seconds before
|
|
32
|
+
the end of the current one.
|
|
33
|
+
|
|
34
|
+
Up to liquidsoap 0.9.1, the estimated remaining time
|
|
35
|
+
in the current track was not taken into account.
|
|
36
|
+
With this behavior, each request-based source would keep at least
|
|
37
|
+
one song in queue, which was sometimes inconvenient.
|
|
38
|
+
This behavior can be restored by passing `conservative=true`,
|
|
39
|
+
which is useful in some cases:
|
|
40
|
+
it helps to ensure that a song will be ready in case of skip;
|
|
41
|
+
generally, it prepares things more in advance, which is good when
|
|
42
|
+
resolution is long (_e.g._, heavily loaded server, remote files).
|
|
43
|
+
|
|
44
|
+
## Request.dynamic
|
|
45
|
+
|
|
46
|
+
This source takes a custom function for creating its new requests.
|
|
47
|
+
This function, of type `()->request`,
|
|
48
|
+
can for example call an external program.
|
|
49
|
+
|
|
50
|
+
To create the request, the function will have
|
|
51
|
+
to use the `request.create` function which has type
|
|
52
|
+
`(string,?indicators:[string])`.
|
|
53
|
+
The first string is the initial URI of the request,
|
|
54
|
+
which is resolved to get an audio file.
|
|
55
|
+
The second argument can be used to directly specify the first row of URIs
|
|
56
|
+
(see the page about [requests](requests.html) for more details),
|
|
57
|
+
in which case the initial URI is just here for naming,
|
|
58
|
+
and the resolving process will try your list of indicators one by one
|
|
59
|
+
until a valid audio file is obtained.
|
|
60
|
+
|
|
61
|
+
An example that takes the output of an external script as an URI
|
|
62
|
+
to create a new request can be:
|
|
63
|
+
|
|
64
|
+
```liquidsoap
|
|
65
|
+
def my_request_function() =
|
|
66
|
+
# Get the first line of my external process
|
|
67
|
+
result =
|
|
68
|
+
list.hd(default="", process.read.lines("my_script my_params"))
|
|
69
|
+
# Create and return a request using this result
|
|
70
|
+
[request.create(result)]
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Create the source
|
|
74
|
+
s = request.dynamic.list(my_request_function)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Queues
|
|
78
|
+
|
|
79
|
+
Liquidsoap features two sources which provide request queues that
|
|
80
|
+
can be directly manipulated by the user, via the server interface:
|
|
81
|
+
`request.queue` and `request.equeue`.
|
|
82
|
+
The former is a queued source where you can only push new requests,
|
|
83
|
+
while the later can be edited.
|
|
84
|
+
|
|
85
|
+
Both operators actually deal with two queues: _primary_ and _secondary_ queues.
|
|
86
|
+
The secondary queue is user-controlled.
|
|
87
|
+
The primary queue is the one that all queued request sources have,
|
|
88
|
+
its behavior is the same as described above, and it cannot be changed
|
|
89
|
+
in any way by the user.
|
|
90
|
+
Requests added to the secondary queue sit there until
|
|
91
|
+
the feeding process gets them and attempts to prepare them
|
|
92
|
+
and put them in the primary queue.
|
|
93
|
+
You can set how many requests will be in that primary queue
|
|
94
|
+
by tweaking the common parameters of all queued request sources.
|
|
95
|
+
|
|
96
|
+
The two sources are controlled via the [command server](advanced.html).
|
|
97
|
+
They both feature commands for looking up the queues,
|
|
98
|
+
queuing new requests, and the `equeue` operator also allows
|
|
99
|
+
removal and exchange of requests in the secondary queue.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# An abstract notion of files: requests
|
|
2
|
+
|
|
3
|
+
The request is an abstract notion of file which can be conveniently used for defining powerful sources. A request can denote a local file, a remote file, or even a dynamically generated file. They are resolved to a local file thanks to a set of _protocols_. Then, audio requests are transparently decoded thanks to a set of audio and metadata _formats_.
|
|
4
|
+
|
|
5
|
+
The systematic use of requests to access files allows you to use remote URIs instead of local paths everywhere. It is perfectly OK to create a playlist for a remote list containing remote URIs: ` playlist("http://my/friends/playlist.pls")`
|
|
6
|
+
.
|
|
7
|
+
|
|
8
|
+
## The resolution process
|
|
9
|
+
|
|
10
|
+
The nice thing about resolution is that it is recursive and supports backtracking. An URI can be changed into a list of new ones, which are in turn resolved. The process succeeds if some valid local file appears at some point. If it doesn't succeed on one branch then it goes back to another branch. A typical complex resolution would be:
|
|
11
|
+
|
|
12
|
+
- `bubble:artist="bodom"` _ `ftp://no/where` _ `Error`
|
|
13
|
+
|
|
14
|
+
- `ftp://some/valid.ogg` \* `/tmp/success.ogg`
|
|
15
|
+
|
|
16
|
+
On top of that, metadata is extracted at every step in the branch. Usually, only the final local file yields interesting metadata (artist,album,...). But metadata can also be the nickname of the user who requested the song, set using the `annotate` protocol.
|
|
17
|
+
|
|
18
|
+
At the end of the resolution process, in case of a media request,
|
|
19
|
+
liquidsoap checks that the file is decodable,
|
|
20
|
+
_i.e._, there should be a valid decoder for it.
|
|
21
|
+
|
|
22
|
+
Each request gets assigned a request identifier (RID) which is used by
|
|
23
|
+
various sources to identify which request(s) they are using. Knowing
|
|
24
|
+
this number, you can monitor a request, even after it's been destroyed
|
|
25
|
+
(see setting `request.grace_time`). Two [server](server.html)
|
|
26
|
+
commands are available: `request.trace` shows a log of
|
|
27
|
+
the resolution process and `request.metadata` shows the
|
|
28
|
+
current request metadata. In addition, server commands are available
|
|
29
|
+
to obtain the list of all requests, alive requests, currently resolving
|
|
30
|
+
requests and currently playing requests (respectively
|
|
31
|
+
`request.all`,
|
|
32
|
+
`request.alive`,
|
|
33
|
+
`request.resolving`,
|
|
34
|
+
`request.on_air`).
|
|
35
|
+
|
|
36
|
+
## Currently supported protocols
|
|
37
|
+
|
|
38
|
+
- HTTP, HTTPS, FTP thanks to curl
|
|
39
|
+
- SAY for speech synthesis (requires festival): `say:I am a robot` resolves to the WAV file resulting from the synthesis.
|
|
40
|
+
- TIME for speech synthesis of the current time: ` time: It is exactly $(time), and you're still listening.`
|
|
41
|
+
|
|
42
|
+
- ANNOTATE for manually setting metadata, typically used in ` annotate:nick="alice",message="for bob":/some/track/uri`
|
|
43
|
+
|
|
44
|
+
The extra metadata can then be synthesized in the audio stream, or merged into the standard metadata fields, or used on a rich web interface...
|
|
45
|
+
It is also possible to add a new protocol from the script, as it is done with [Beets](beets.html) for getting songs from a database query.
|
|
46
|
+
|
|
47
|
+
## Currently supported formats
|
|
48
|
+
|
|
49
|
+
- MPEG-1 Layer II (MP2) and Layer III (MP3) through libmad and `ocaml-mad`
|
|
50
|
+
- Ogg Vorbis through libvorbis and `ocaml-vorbis`
|
|
51
|
+
- WAV
|
|
52
|
+
- AAC
|
|
53
|
+
- and much more through external decoders!
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
This release provides liquidsoap assets before they are published as a new versioned release.
|
|
2
|
+
|
|
3
|
+
You can use it to install the latest stable code before it is published and test/prepare your production environment for it.
|
|
4
|
+
|
|
5
|
+
Rolling releases can also be useful for us to quickly detect and report bugs before the final published release!
|
|
6
|
+
|
|
7
|
+
⚠️ **Warning** ⚠️
|
|
8
|
+
Assets in this release will be deleted. If you are looking for permanent links to release assets, please head over to https://github.com/savonet/liquidsoap-release-assets/releases
|
|
9
|
+
|
|
10
|
+
For more details about our release process, please checkout https://github.com/savonet/liquidsoap#release-details
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Script loading
|
|
2
|
+
|
|
3
|
+
When you run liquidsoap for streaming, the command line has the following form:
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
$ liquidsoap script_or_expr_1 ... script_or_expr_N
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
This allows you to ask liquidsoap to load definition and settings from
|
|
10
|
+
some scripts so that the become available when processing the next ones.
|
|
11
|
+
|
|
12
|
+
For example you can store your passwords by defined the variable `xxx`
|
|
13
|
+
in `secret.liq`, and then refer to that variable in your main script
|
|
14
|
+
`main.liq`. You would then run `liquidsoap secret.liq main.liq`. If you ever
|
|
15
|
+
need to communicate `main.liq` there won't be any risk of divulgating your
|
|
16
|
+
password.
|
|
17
|
+
|
|
18
|
+
## The pervasive script library
|
|
19
|
+
|
|
20
|
+
In fact, liquidsoap also implicitly loads scripts before those that you specify
|
|
21
|
+
on the command-line. These scripts are meant to contain standard utilities.
|
|
22
|
+
Liquidsoap finds them in `LIBDIR/liquidsoap/VERSION` where `LIBDIR` depends on
|
|
23
|
+
your configuration (it is typically `/usr/local/lib` or `/usr/lib`) and
|
|
24
|
+
`VERSION` is the version of liquidsoap (_e.g._ `0.3.8` or `svn`).
|
|
25
|
+
|
|
26
|
+
Currently, liquidsoap loads `stdlib.liq` from the library directory,
|
|
27
|
+
and this file includes some others.
|
|
28
|
+
You can add your personal standard library in that directory
|
|
29
|
+
if you find it useful.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# Seeking in liquidsoap
|
|
2
|
+
|
|
3
|
+
Starting with Liquidsoap `1.0.0-beta2`, it is now possible to seek within sources!
|
|
4
|
+
Not all sources support seeking though: currently, they are mostly file-based sources
|
|
5
|
+
such as `request.queue`, `playlist`, `request.dynamic.list` etc..
|
|
6
|
+
|
|
7
|
+
The basic function to seek within a source is `source.seek`. It has the following type:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
(source('a),float)->float
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The parameters are:
|
|
14
|
+
|
|
15
|
+
- The source to seek.
|
|
16
|
+
- The duration in seconds to seek from current position.
|
|
17
|
+
|
|
18
|
+
The function returns the duration actually seeked.
|
|
19
|
+
|
|
20
|
+
Please note that seeking is done to a position relative to the _current_
|
|
21
|
+
position. For instance, `source.seek(s,3.)` will seek 3 seconds forward in
|
|
22
|
+
source `s` and `source.seek(s,(-4.))` will seek 4 seconds backward.
|
|
23
|
+
|
|
24
|
+
Since seeking is currently only supported by request-based sources, it is recommended
|
|
25
|
+
to hook the function as close as possible to the original source. Here is an example
|
|
26
|
+
that implements a server/telnet seek function:
|
|
27
|
+
|
|
28
|
+
```liquidsoap
|
|
29
|
+
# A playlist source
|
|
30
|
+
s = playlist("/path/to/music")
|
|
31
|
+
|
|
32
|
+
# The server seeking function
|
|
33
|
+
def seek(t) =
|
|
34
|
+
t = float_of_string(default=0.,t)
|
|
35
|
+
log("Seeking #{t} sec")
|
|
36
|
+
ret = source.seek(s,t)
|
|
37
|
+
"Seeked #{ret} seconds."
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Register the function
|
|
41
|
+
server.register(namespace=source.id(s),
|
|
42
|
+
description="Seek to a relative position \
|
|
43
|
+
in source #{source.id(s)}",
|
|
44
|
+
usage="seek <duration>",
|
|
45
|
+
"seek",seek)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Cue points
|
|
49
|
+
|
|
50
|
+
Sources that support seeking can also be used to implement cue points.
|
|
51
|
+
The basic operator for this is `cue_cut`. Its has type:
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
(?id : string?,
|
|
55
|
+
?cue_in_metadata : string,
|
|
56
|
+
?cue_out_metadata : string,
|
|
57
|
+
?on_cue_in : (() -> unit),
|
|
58
|
+
?on_cue_out : (() -> unit),
|
|
59
|
+
source('a)) -> source('a)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Its parameters are:
|
|
63
|
+
|
|
64
|
+
- `cue_in_metadata`: Metadata for cue in points, default: `"liq_cue_in"`.
|
|
65
|
+
- `cue_out_metadata`: Metadata for cue out points, default: `"liq_cue_out"`.
|
|
66
|
+
- The source to apply cue points to.
|
|
67
|
+
|
|
68
|
+
The values of cue-in and cue-out points are given in absolute
|
|
69
|
+
position through the source's metadata. For instance, the following
|
|
70
|
+
source will cue-in at 10 seconds and cue-out at 45 seconds on all its tracks:
|
|
71
|
+
|
|
72
|
+
```liquidsoap
|
|
73
|
+
s = playlist(prefix="annotate:liq_cue_in=\"10.\",liq_cue_out=\"45\":",
|
|
74
|
+
"/path/to/music")
|
|
75
|
+
|
|
76
|
+
s = cue_cut(s)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
As in the above example, you may use the `annotate` protocol to pass custom cue
|
|
80
|
+
points along with the files passed to Liquidsoap. This is particularly useful
|
|
81
|
+
in combination with `request.dymanic` as an external script can build-up
|
|
82
|
+
the appropriate URI, including cue-points, based on information from your
|
|
83
|
+
own scheduling back-end.
|
|
84
|
+
|
|
85
|
+
Alternatively, you may use `metadata.map` to add those metadata. The operator
|
|
86
|
+
`metadata.map` supports seeking and passes it to its underlying source.
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
# Interaction with the server
|
|
2
|
+
|
|
3
|
+
Liquidsoap starts with one or several scripts as its configuration, and then
|
|
4
|
+
streams forever if everything goes well. Once started, you can still interact
|
|
5
|
+
with it by means of the _server_. The server allows you to run commands. Some
|
|
6
|
+
are general and always available, some belong to a specific operator. For
|
|
7
|
+
example the `request.queue()` instances register commands to enqueue new
|
|
8
|
+
requests, the outputs register commands to start or stop the outputting, display
|
|
9
|
+
the last ten metadata chunks, etc.
|
|
10
|
+
|
|
11
|
+
The protocol of the server is a simple human-readable one. Currently it does not
|
|
12
|
+
have any kind of authentication and permissions. It is currently available via
|
|
13
|
+
two media: TCP and Unix sockets. The TCP socket provides a simple telnet-like
|
|
14
|
+
interface, available only on the local host by default. The Unix socket
|
|
15
|
+
interface (_cf._ the `server.socket` setting) is through some sort of virtual
|
|
16
|
+
file. This is more constraining, which allows one to restrict the use of the
|
|
17
|
+
socket to some privileged users.
|
|
18
|
+
|
|
19
|
+
You can find more details on how to configure the server in the
|
|
20
|
+
[documentation](help.html#settings) of the settings key `server`, in particular
|
|
21
|
+
`server.telnet` for the TCP interface and `server.socket` for the Unix
|
|
22
|
+
interface. Liquidsoap also embeds some [documentation](help.html#server) about
|
|
23
|
+
the available server commands.
|
|
24
|
+
|
|
25
|
+
### Using telnet
|
|
26
|
+
|
|
27
|
+
Now, we shall simply enable the Telnet interface to the server, by setting
|
|
28
|
+
`settings.server.telnet := true` or simply passing the `-t` option on the
|
|
29
|
+
command-line. In a [complete case analysis](complete_case.html) we set up a
|
|
30
|
+
`request.queue()` instance to play user requests. It had the identifier
|
|
31
|
+
`"queue"`. We are now going to interact via the server to push requests into
|
|
32
|
+
that queue:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
dbaelde@selassie:~$ telnet localhost 1234
|
|
36
|
+
Trying 127.0.0.1...
|
|
37
|
+
Connected to localhost.localdomain.
|
|
38
|
+
Escape character is '^]'.
|
|
39
|
+
queue.push /path/to/some/file.ogg
|
|
40
|
+
5
|
|
41
|
+
END
|
|
42
|
+
request.metadata 5
|
|
43
|
+
[...]
|
|
44
|
+
END
|
|
45
|
+
queue.push http://remote/audio.ogg
|
|
46
|
+
6
|
|
47
|
+
END
|
|
48
|
+
request.trace 6
|
|
49
|
+
[...see if the download started/succeeded...]
|
|
50
|
+
END
|
|
51
|
+
exit
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Of course, the server isn't very user-friendly. But it is easy to write scripts
|
|
55
|
+
to interact with Liquidsoap in that way, to implement a website or an IRC
|
|
56
|
+
interface to your radio. However, this sort of tool is often bound to a specific
|
|
57
|
+
usage, so we have not released any of ours.
|
|
58
|
+
|
|
59
|
+
### Web interface
|
|
60
|
+
|
|
61
|
+
Another simple way to test the telnet server consists in using the
|
|
62
|
+
|
|
63
|
+
```liquidsoap
|
|
64
|
+
server.harbor()
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
server.harbor api: https://www.liquidsoap.info/doc-2.0.0/reference-extras.html#server.harbor
|
|
68
|
+
|
|
69
|
+
command which will start a web interface accessible at
|
|
70
|
+
<http://localhost:8000/telnet> providing an emulation of a telnet.
|
|
71
|
+
|
|
72
|
+
## Interactive variables
|
|
73
|
+
|
|
74
|
+
Sometimes it is useful to control a variable using telnet. A simple way to
|
|
75
|
+
achieve this is to use the `interactive.float` function. For instance, in order
|
|
76
|
+
to dynamically the volume of a source:
|
|
77
|
+
|
|
78
|
+
```liquidsoap
|
|
79
|
+
# Register a telnet variable named volume with 1 as initial value
|
|
80
|
+
v = interactive.float("volume", 1.)
|
|
81
|
+
|
|
82
|
+
# Change the volume accordingly
|
|
83
|
+
source = amplify(v, source)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The first line registers the variable volume on the telnet. Its value can be
|
|
87
|
+
changed using the telnet command
|
|
88
|
+
|
|
89
|
+
```liquidsoap
|
|
90
|
+
var.set volume = 0.5
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
and it can be retrieved using
|
|
94
|
+
|
|
95
|
+
```liquidsoap
|
|
96
|
+
var.get volume
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Similarly, we can switch between two tracks using `interactive.bool` and
|
|
100
|
+
`switch` as follows:
|
|
101
|
+
|
|
102
|
+
```liquidsoap
|
|
103
|
+
# Activate the telnet server
|
|
104
|
+
settings.server.telnet := true
|
|
105
|
+
|
|
106
|
+
# The two sources
|
|
107
|
+
s1 = playlist("~/Music")
|
|
108
|
+
s2 = sine()
|
|
109
|
+
|
|
110
|
+
# Create an interactive boolean
|
|
111
|
+
b = interactive.bool("button", true)
|
|
112
|
+
|
|
113
|
+
# Switch between the tracks depending on the boolean
|
|
114
|
+
s = switch(track_sensitive=false,[(b,s1), ({true},s2)])
|
|
115
|
+
|
|
116
|
+
# Output the result
|
|
117
|
+
output.pulseaudio(s)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
By default the source s1 is played. To switch to s2, you can connect on
|
|
121
|
+
the telnet server and type `var.set button = false`.
|
|
122
|
+
|
|
123
|
+
### Web interface
|
|
124
|
+
|
|
125
|
+
A nice web interface can be obtained by running
|
|
126
|
+
|
|
127
|
+
```liquidsoap
|
|
128
|
+
interactive.harbor()
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
interactive.harbor api: https://www.liquidsoap.info/doc-2.0.0/reference.html#interactive.harbor
|
|
132
|
+
|
|
133
|
+
after all interactive variables have been defined. This will start a web server
|
|
134
|
+
accessible at <http://localhost:8000/interactive> on which you can easily change
|
|
135
|
+
the values for the interactive variables.
|
|
136
|
+
|
|
137
|
+
### Persistency
|
|
138
|
+
|
|
139
|
+
By default, interactive variables are not _persistent_, which means that their
|
|
140
|
+
values are lost if you restart the script. This can be changed by running the command
|
|
141
|
+
|
|
142
|
+
```liquidsoap
|
|
143
|
+
interactive.persistent("vars.json")
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
after all the interactive variables have been defined. This will store the
|
|
147
|
+
values of all the interactive variables in the file `vars.json` (in JSON format)
|
|
148
|
+
whenever you modify them, and reload them next time your run your script. This
|
|
149
|
+
can be very handy for setting parameters for sound effects for instance.
|
|
150
|
+
|
|
151
|
+
## Securing the server
|
|
152
|
+
|
|
153
|
+
The command server provided by liquidsoap is very convenient for manipulating a
|
|
154
|
+
running instance of Liquidsoap. However, no authentication mechanism is
|
|
155
|
+
provided. The telnet server has no authentication and listens by default on the
|
|
156
|
+
localhost (`127.0.0.1`) network interface, which means that it is accessible to
|
|
157
|
+
any logged user on the machine.
|
|
158
|
+
|
|
159
|
+
Many users have expressed interest into setting up a secured access to the
|
|
160
|
+
command server, using for instance user and password information. While we
|
|
161
|
+
understand and share this need, we do not believe this is a task that lies into
|
|
162
|
+
Liquidsoap's scope. An authentication mechanism is not something that should be
|
|
163
|
+
implemented naively. Being SSH, HTTP login or any other mechanism, all these
|
|
164
|
+
methods have been, at some point, exposed to security issues. Thus, implementing
|
|
165
|
+
our own secure access would require a constant care about possible security
|
|
166
|
+
issues.
|
|
167
|
+
|
|
168
|
+
Rather than doing our own home-made secure access, we believe that our users
|
|
169
|
+
should be able to define their own secure access to the command server, taking
|
|
170
|
+
advantage of a mainstream authentication mechanism, for instance HTTP or SSH
|
|
171
|
+
login. In order to give an example of this approach, we show here how to create
|
|
172
|
+
a SSH access to the command server: we create a SSH user that, when logging
|
|
173
|
+
through SSH, has only access to the command server.
|
|
174
|
+
|
|
175
|
+
First, we enable the unix socket for the command server in Liquidsoap:
|
|
176
|
+
|
|
177
|
+
```liquidsoap
|
|
178
|
+
settings.server.socket := true
|
|
179
|
+
settings.server.socket.path := "/path/to/socket"
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
When started, liquidsoap will create a socket file `/path/to/socket`
|
|
183
|
+
that can be used to interact with the command server. For instance,
|
|
184
|
+
if your user has read and write rights on the socket file, you can do
|
|
185
|
+
|
|
186
|
+
```liquidsoap
|
|
187
|
+
socat /path/to/socket -
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
The interface is then exactly the same has for the telnet server.
|
|
191
|
+
|
|
192
|
+
We define now a new ``shell''. This shell is in fact the invocation of the socat command. Thus, we create a `/usr/local/bin/liq_shell` file with the following
|
|
193
|
+
content:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
#!/bin/sh
|
|
197
|
+
# We test if the file is a socket, readable and writable.
|
|
198
|
+
if [ -S /path/to/socket ] && [ -w /path/to/socket ] && \
|
|
199
|
+
[ -r /path/to/socket ]; then
|
|
200
|
+
socat /path/to/socket -
|
|
201
|
+
else
|
|
202
|
+
# If not, we exit..
|
|
203
|
+
exit 1
|
|
204
|
+
fi
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
We set this file as executable, and we add it in the list of shells in `/etc/shells`.
|
|
208
|
+
|
|
209
|
+
Now, we create a user with the `liq_shell` as its shell:
|
|
210
|
+
|
|
211
|
+
```
|
|
212
|
+
adduser --shell /usr/local/bin/liq_shell liq-user
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
You also need to make sure that `liq-user` has read and write rights
|
|
216
|
+
on the socket file.
|
|
217
|
+
|
|
218
|
+
Finally, when logging through ssh with `liq-user`, we get:
|
|
219
|
+
|
|
220
|
+
```
|
|
221
|
+
11:27 toots@leonard % ssh liq-user@localhost
|
|
222
|
+
liq-user@localhost's password:
|
|
223
|
+
Linux leonard 2.6.32-4-amd64 #1 SMP Mon Apr 5 21:14:10 UTC 2010 x86_64
|
|
224
|
+
|
|
225
|
+
The programs included with the Debian GNU/Linux system are free software;
|
|
226
|
+
the exact distribution terms for each program are described in the
|
|
227
|
+
individual files in /usr/share/doc/*/copyright.
|
|
228
|
+
|
|
229
|
+
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
|
|
230
|
+
permitted by applicable law.
|
|
231
|
+
Last login: Tue Oct 5 11:26:52 2010 from localhost
|
|
232
|
+
help
|
|
233
|
+
Available commands:
|
|
234
|
+
(...)
|
|
235
|
+
| exit
|
|
236
|
+
| help [<command>]
|
|
237
|
+
| list
|
|
238
|
+
| quit
|
|
239
|
+
| request.alive
|
|
240
|
+
| request.all
|
|
241
|
+
| request.metadata <rid>
|
|
242
|
+
| request.on_air
|
|
243
|
+
| request.resolving
|
|
244
|
+
| request.trace <rid>
|
|
245
|
+
| uptime
|
|
246
|
+
| var.get <variable>
|
|
247
|
+
| var.list
|
|
248
|
+
| var.set <variable> = <value>
|
|
249
|
+
| version
|
|
250
|
+
|
|
251
|
+
Type "help <command>" for more information.
|
|
252
|
+
END
|
|
253
|
+
exit
|
|
254
|
+
Bye!
|
|
255
|
+
END
|
|
256
|
+
Connection to localhost closed.
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
This is an example of how you can use an existing secure access to
|
|
260
|
+
secure the access to liquidsoap's command server. This way, you make sure
|
|
261
|
+
that you are using a mainstream secure application, here SSH.
|
|
262
|
+
|
|
263
|
+
This example may be adapted similarly to use an online HTTP login
|
|
264
|
+
mechanism, which is probably the most comment type of mechanism
|
|
265
|
+
intended for the command line server.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Streaming to Shoutcast
|
|
2
|
+
|
|
3
|
+
Although Liquidsoap is primarily aimed at streaming to Icecast servers (that provide
|
|
4
|
+
much more features than Shoutcast), it is also able to stream to Shoutcast.
|
|
5
|
+
|
|
6
|
+
## Shoutcast output
|
|
7
|
+
|
|
8
|
+
Shoutcast server accept streams encoded with the MP3 or AAC/AAC+ codec. You to compile Liquidsoap with
|
|
9
|
+
`lame` support, so it can encode in MP3. Liquidsoap also has support for AAC+ encoding
|
|
10
|
+
using FDK-AAC or using an [external encoder](external_encoders.html). The recommended format is MP3.
|
|
11
|
+
|
|
12
|
+
Shoutcast output are done using the `output.shoutcast` operator with the appropriate parameters.
|
|
13
|
+
An example is:
|
|
14
|
+
|
|
15
|
+
```liquidsoap
|
|
16
|
+
source = single("audiofile.ogg")
|
|
17
|
+
|
|
18
|
+
output.shoutcast(%mp3, host="shoutcast.example.org",
|
|
19
|
+
port=8000, password="changeme",
|
|
20
|
+
source)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
As usual, `liquidsoap -h output.shoutcast` gives you the full list of options for this operator.
|
|
24
|
+
|
|
25
|
+
## Shoutcast as relay
|
|
26
|
+
|
|
27
|
+
A side note for those of you who feel they ``need'' to use Shoutcast for non-technical reasons (such as their stream
|
|
28
|
+
directory service...): you can still benefit from Icecast's power by streaming to an Icecast server, and then relaying
|
|
29
|
+
it through a shoutcast server.
|
|
30
|
+
|
|
31
|
+
In order to do that, you have to alias the root mountpoint ("`/`") to your MP3 mountpoint in your icecast server
|
|
32
|
+
configuration, like this:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
<alias source="/" dest="/mystream.mp3" />
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Be careful that icecast often aliases the status page (`/status.xsl`) with the `/`. In this case, comment
|
|
39
|
+
out the status page alias before inserting yours.
|