codemirror-lang-liquidsoap 0.2.9 → 0.3.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/dist/cli.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -3
- package/src/cli.ts +0 -0
- package/src/liquidsoap.grammar +1 -1
- package/src/parser.js +1 -1
- package/tests/liquidsoap/.github/alpine/APKBUILD-minimal.in +1 -1
- package/tests/liquidsoap/.github/alpine/APKBUILD.in +1 -1
- package/tests/liquidsoap/.github/alpine/liquidsoap.pre-install +0 -0
- package/tests/liquidsoap/.github/debian/rules +1 -1
- package/tests/liquidsoap/.github/debian/rules-minimal +1 -1
- package/tests/liquidsoap/.github/opam/liquidsoap-core-windows.opam +4 -3
- package/tests/liquidsoap/.github/opam/packages/ffmpeg-av-windows/ffmpeg-av-windows.1.2.0/opam +38 -0
- package/tests/liquidsoap/.github/opam/packages/ffmpeg-avcodec-windows/ffmpeg-avcodec-windows.1.2.0/opam +37 -0
- package/tests/liquidsoap/.github/opam/packages/ffmpeg-avdevice-windows/ffmpeg-avdevice-windows.1.2.0/opam +37 -0
- package/tests/liquidsoap/.github/opam/packages/ffmpeg-avfilter-windows/ffmpeg-avfilter-windows.1.2.0/opam +37 -0
- package/tests/liquidsoap/.github/opam/packages/ffmpeg-avutil-windows/ffmpeg-avutil-windows.1.2.0/opam +37 -0
- package/tests/liquidsoap/.github/opam/packages/ffmpeg-swresample-windows/ffmpeg-swresample-windows.1.2.0/opam +38 -0
- package/tests/liquidsoap/.github/opam/packages/ffmpeg-swscale-windows/ffmpeg-swscale-windows.1.2.0/opam +37 -0
- package/tests/liquidsoap/.github/opam/packages/ffmpeg-windows/ffmpeg-windows.1.2.0/opam +35 -0
- package/tests/liquidsoap/.github/scripts/add-local-opam-packages.sh +0 -0
- package/tests/liquidsoap/.github/scripts/build-apk.sh +0 -0
- package/tests/liquidsoap/.github/scripts/build-deb.sh +0 -0
- package/tests/liquidsoap/.github/scripts/build-details.sh +1 -1
- package/tests/liquidsoap/.github/scripts/build-doc.sh +0 -0
- package/tests/liquidsoap/.github/scripts/build-docker-alpine.sh +0 -0
- package/tests/liquidsoap/.github/scripts/build-docker.sh +0 -0
- package/tests/liquidsoap/.github/scripts/build-posix.sh +16 -13
- package/tests/liquidsoap/.github/scripts/build-website.sh +0 -0
- package/tests/liquidsoap/.github/scripts/build-win32.sh +0 -0
- package/tests/liquidsoap/.github/scripts/checkout-deps.sh +0 -0
- package/tests/liquidsoap/.github/scripts/export-metrics.sh +0 -0
- package/tests/liquidsoap/.github/scripts/push-docker.sh +0 -0
- package/tests/liquidsoap/.github/scripts/stats-posix.sh +0 -0
- package/tests/liquidsoap/.github/scripts/test-posix.sh +0 -0
- package/tests/liquidsoap/.github/workflows/ci.yml +10 -1
- package/tests/liquidsoap/.pre-commit-config.yaml +1 -1
- package/tests/liquidsoap/CHANGES.md +101 -1
- package/tests/liquidsoap/README.md +1 -1
- package/tests/liquidsoap/ROADMAP.md +28 -26
- package/tests/liquidsoap/doc/content/cookbook.md +46 -3
- package/tests/liquidsoap/doc/content/database.md +126 -0
- package/tests/liquidsoap/doc/content/documentation.md +1 -0
- package/tests/liquidsoap/doc/content/encoding_formats.md +6 -7
- package/tests/liquidsoap/doc/content/ffmpeg_encoder.md +20 -0
- package/tests/liquidsoap/doc/content/hls_output.md +27 -2
- package/tests/liquidsoap/doc/content/index.md +1 -1
- package/tests/liquidsoap/doc/content/liq/basic-radio.liq +14 -6
- package/tests/liquidsoap/doc/content/liq/check +0 -0
- package/tests/liquidsoap/doc/content/liq/liquidsoap +0 -0
- package/tests/liquidsoap/doc/content/liq/medialib.sqlite.liq +4 -0
- package/tests/liquidsoap/doc/content/liq/on2-if2.liq +5 -2
- package/tests/liquidsoap/doc/content/liq/on2-initial.liq +10 -5
- package/tests/liquidsoap/doc/content/liq/on2-replaygain.liq +13 -4
- package/tests/liquidsoap/doc/content/liq/on2-volume.liq +4 -2
- package/tests/liquidsoap/doc/content/liq/playlists.liq +2 -1
- package/tests/liquidsoap/doc/content/liq/radiopi.liq +2 -6
- package/tests/liquidsoap/doc/content/liq/source-cue.liq +26 -0
- package/tests/liquidsoap/doc/content/liq/space_overhead.liq +0 -0
- package/tests/liquidsoap/doc/content/liq/split-cue.liq +7 -8
- package/tests/liquidsoap/doc/content/liq/sqlite.liq +120 -0
- package/tests/liquidsoap/doc/content/liq/video-in-video.liq +2 -0
- package/tests/liquidsoap/doc/content/migrating.md +12 -0
- package/tests/liquidsoap/doc/content/on2_part2.md +1 -1
- package/tests/liquidsoap/doc/content/playlist_parsers.md +2 -10
- package/tests/liquidsoap/doc/content/seek.md +1 -20
- package/tests/liquidsoap/doc/dune.inc +655 -0
- package/tests/liquidsoap/dune-project +8 -5
- package/tests/liquidsoap/liquidsoap +0 -0
- package/tests/liquidsoap/liquidsoap-core.opam +6 -4
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_bitstream_filters.ml +100 -128
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_decoder.ml +10 -11
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_encoder.ml +14 -15
- package/tests/liquidsoap/src/core/builtins/builtins_ffmpeg_filters.ml +33 -3
- package/tests/liquidsoap/src/core/builtins/builtins_files.ml +64 -12
- package/tests/liquidsoap/src/core/builtins/builtins_optionals.ml +0 -1
- package/tests/liquidsoap/src/core/builtins/builtins_prometheus.ml +4 -4
- package/tests/liquidsoap/src/core/builtins/builtins_request.ml +16 -1
- package/tests/liquidsoap/src/core/builtins/builtins_resolvers.ml +1 -1
- package/tests/liquidsoap/src/core/builtins/builtins_settings.ml +12 -2
- package/tests/liquidsoap/src/core/builtins/builtins_socket.ml +17 -4
- package/tests/liquidsoap/src/core/builtins/builtins_source.ml +17 -7
- package/tests/liquidsoap/src/core/builtins/builtins_sqlite.ml +362 -0
- package/tests/liquidsoap/src/core/builtins/builtins_ssl.ml +18 -9
- package/tests/liquidsoap/src/core/builtins/builtins_tls.ml +38 -27
- package/tests/liquidsoap/src/core/clock.ml +1 -1
- package/tests/liquidsoap/src/core/clock.mli +1 -1
- package/tests/liquidsoap/src/core/conversions/conversion.ml +4 -38
- package/tests/liquidsoap/src/core/conversions/mean.ml +12 -14
- package/tests/liquidsoap/src/core/conversions/stereo.ml +4 -4
- package/tests/liquidsoap/src/core/conversions/swap.ml +8 -23
- package/tests/liquidsoap/src/core/decoder/aac_decoder.ml +3 -3
- package/tests/liquidsoap/src/core/decoder/decoder.ml +134 -129
- package/tests/liquidsoap/src/core/decoder/decoder.mli +11 -4
- package/tests/liquidsoap/src/core/decoder/decoder_utils.ml +8 -9
- package/tests/liquidsoap/src/core/decoder/decoder_utils.mli +2 -2
- package/tests/liquidsoap/src/core/decoder/external_decoder.ml +7 -5
- package/tests/liquidsoap/src/core/decoder/ffmpeg_copy_decoder.ml +1 -1
- package/tests/liquidsoap/src/core/decoder/ffmpeg_decoder.ml +138 -60
- package/tests/liquidsoap/src/core/decoder/ffmpeg_decoder_common.ml +10 -0
- package/tests/liquidsoap/src/core/decoder/ffmpeg_internal_decoder.ml +1 -2
- package/tests/liquidsoap/src/core/decoder/ffmpeg_raw_decoder.ml +1 -1
- package/tests/liquidsoap/src/core/decoder/flac_metadata_plug.ml +3 -3
- package/tests/liquidsoap/src/core/decoder/gstreamer_decoder.ml +1 -2
- package/tests/liquidsoap/src/core/decoder/id3_plug.ml +3 -3
- package/tests/liquidsoap/src/core/decoder/image/sdlimage_decoder.ml +3 -3
- package/tests/liquidsoap/src/core/decoder/image_decoder.ml +25 -23
- package/tests/liquidsoap/src/core/decoder/image_plug.ml +3 -3
- package/tests/liquidsoap/src/core/decoder/liq_flac_decoder.ml +10 -11
- package/tests/liquidsoap/src/core/decoder/liq_ogg_decoder.ml +5 -5
- package/tests/liquidsoap/src/core/decoder/mad_decoder.ml +6 -7
- package/tests/liquidsoap/src/core/decoder/midi_decoder.ml +10 -10
- package/tests/liquidsoap/src/core/decoder/ogg_metadata_plug.ml +3 -3
- package/tests/liquidsoap/src/core/decoder/srt_decoder.ml +23 -15
- package/tests/liquidsoap/src/core/decoder/taglib_plug.ml +3 -3
- package/tests/liquidsoap/src/core/decoder/text/video_text_sdl.ml +12 -7
- package/tests/liquidsoap/src/core/decoder/video_plug.ml +3 -3
- package/tests/liquidsoap/src/core/dune +19 -22
- package/tests/liquidsoap/src/core/encoder/encoder.ml +1 -1
- package/tests/liquidsoap/src/core/encoder/encoder.mli +1 -1
- package/tests/liquidsoap/src/core/encoder/encoder_formats.ml +6 -0
- package/tests/liquidsoap/src/core/encoder/encoder_utils.ml +66 -0
- package/tests/liquidsoap/src/core/encoder/encoders/avi_encoder.ml +38 -39
- package/tests/liquidsoap/src/core/encoder/encoders/fdkaac_encoder.ml +1 -1
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_copy_encoder.ml +26 -24
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_encoder.ml +24 -6
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_encoder_common.ml +52 -45
- package/tests/liquidsoap/src/core/encoder/encoders/ffmpeg_internal_encoder.ml +55 -34
- package/tests/liquidsoap/src/core/encoder/encoders/gstreamer_encoder.ml +27 -22
- package/tests/liquidsoap/src/core/encoder/encoders/lame_encoder.ml +5 -4
- package/tests/liquidsoap/src/core/encoder/encoders/ogg_encoder.ml +14 -7
- package/tests/liquidsoap/src/core/encoder/encoders/shine_encoder.ml +4 -5
- package/tests/liquidsoap/src/core/encoder/formats/ffmpeg_format.ml +9 -0
- package/tests/liquidsoap/src/core/encoder/lang/lang_ffmpeg.ml +13 -10
- package/tests/liquidsoap/src/core/encoder/lang_encoder.ml +1 -1
- package/tests/liquidsoap/src/core/harbor/harbor.ml +7 -2
- package/tests/liquidsoap/src/core/harbor/harbor_base.ml +7 -3
- package/tests/liquidsoap/src/core/io/alsa_io.ml +8 -5
- package/tests/liquidsoap/src/core/io/ffmpeg_filter_io.ml +9 -14
- package/tests/liquidsoap/src/core/io/ffmpeg_io.ml +23 -24
- package/tests/liquidsoap/src/core/io/gstreamer_io.ml +24 -20
- package/tests/liquidsoap/src/core/io/oss_io.ml +7 -5
- package/tests/liquidsoap/src/core/io/portaudio_io.ml +7 -5
- package/tests/liquidsoap/src/core/io/pulseaudio_io.ml +8 -7
- package/tests/liquidsoap/src/core/io/srt_io.ml +115 -114
- package/tests/liquidsoap/src/core/io/udp_io.ml +6 -3
- package/tests/liquidsoap/src/core/lang.mli +3 -0
- package/tests/liquidsoap/src/core/lang_source.ml +23 -9
- package/tests/liquidsoap/src/core/ogg_formats/opus_encoder.ml +1 -1
- package/tests/liquidsoap/src/core/operators/accelerate.ml +10 -23
- package/tests/liquidsoap/src/core/operators/add.ml +131 -122
- package/tests/liquidsoap/src/core/operators/amplify.ml +36 -27
- package/tests/liquidsoap/src/core/operators/available.ml +20 -8
- package/tests/liquidsoap/src/core/operators/biquad_filter.ml +8 -8
- package/tests/liquidsoap/src/core/operators/chord.ml +7 -9
- package/tests/liquidsoap/src/core/operators/clip.ml +7 -7
- package/tests/liquidsoap/src/core/operators/comb.ml +7 -8
- package/tests/liquidsoap/src/core/operators/compand.ml +9 -9
- package/tests/liquidsoap/src/core/operators/compress.ml +15 -10
- package/tests/liquidsoap/src/core/operators/compress_exp.ml +8 -9
- package/tests/liquidsoap/src/core/operators/cross.ml +180 -247
- package/tests/liquidsoap/src/core/operators/defer.ml +8 -18
- package/tests/liquidsoap/src/core/operators/delay.ml +10 -18
- package/tests/liquidsoap/src/core/operators/delay_line.ml +9 -8
- package/tests/liquidsoap/src/core/operators/dtmf.ml +18 -16
- package/tests/liquidsoap/src/core/operators/dyn_op.ml +66 -63
- package/tests/liquidsoap/src/core/operators/echo.ml +8 -7
- package/tests/liquidsoap/src/core/operators/filter.ml +8 -8
- package/tests/liquidsoap/src/core/operators/filter_rc.ml +11 -10
- package/tests/liquidsoap/src/core/operators/fir_filter.ml +8 -7
- package/tests/liquidsoap/src/core/operators/flanger.ml +9 -8
- package/tests/liquidsoap/src/core/operators/frei0r_op.ml +113 -91
- package/tests/liquidsoap/src/core/operators/gate.ml +9 -8
- package/tests/liquidsoap/src/core/operators/iir_filter.ml +7 -7
- package/tests/liquidsoap/src/core/operators/insert_metadata.ml +29 -54
- package/tests/liquidsoap/src/core/operators/ladspa_op.ml +38 -36
- package/tests/liquidsoap/src/core/operators/lilv_op.ml +44 -44
- package/tests/liquidsoap/src/core/operators/lufs.ml +8 -8
- package/tests/liquidsoap/src/core/operators/map_metadata.ml +23 -20
- package/tests/liquidsoap/src/core/operators/map_op.ml +6 -7
- package/tests/liquidsoap/src/core/operators/max_duration.ml +21 -20
- package/tests/liquidsoap/src/core/operators/midi_routing.ml +13 -9
- package/tests/liquidsoap/src/core/operators/ms_stereo.ml +13 -15
- package/tests/liquidsoap/src/core/operators/muxer.ml +30 -101
- package/tests/liquidsoap/src/core/operators/noblank.ml +26 -48
- package/tests/liquidsoap/src/core/operators/normalize.ml +13 -9
- package/tests/liquidsoap/src/core/operators/on_end.ml +25 -12
- package/tests/liquidsoap/src/core/operators/on_frame.ml +9 -9
- package/tests/liquidsoap/src/core/operators/on_metadata.ml +9 -10
- package/tests/liquidsoap/src/core/operators/on_offset.ml +20 -13
- package/tests/liquidsoap/src/core/operators/on_track.ml +7 -10
- package/tests/liquidsoap/src/core/operators/pan.ml +7 -8
- package/tests/liquidsoap/src/core/operators/pipe.ml +14 -17
- package/tests/liquidsoap/src/core/operators/pitch.ml +7 -5
- package/tests/liquidsoap/src/core/operators/replaygain_op.ml +6 -6
- package/tests/liquidsoap/src/core/operators/resample.ml +7 -6
- package/tests/liquidsoap/src/core/operators/rms_smooth.ml +8 -8
- package/tests/liquidsoap/src/core/operators/sequence.ml +48 -58
- package/tests/liquidsoap/src/core/operators/soundtouch_op.ml +12 -12
- package/tests/liquidsoap/src/core/operators/st_bpm.ml +8 -7
- package/tests/liquidsoap/src/core/operators/stereotool_op.ml +5 -7
- package/tests/liquidsoap/src/core/operators/still_frame.ml +13 -10
- package/tests/liquidsoap/src/core/operators/switch.ml +128 -168
- package/tests/liquidsoap/src/core/operators/time_warp.ml +44 -103
- package/tests/liquidsoap/src/core/operators/track/merge_metadata.ml +31 -48
- package/tests/liquidsoap/src/core/operators/track_map.ml +6 -32
- package/tests/liquidsoap/src/core/operators/video_effects.ml +48 -13
- package/tests/liquidsoap/src/core/operators/video_fade.ml +69 -57
- package/tests/liquidsoap/src/core/operators/window_op.ml +8 -8
- package/tests/liquidsoap/src/core/outputs/graphics_out.ml +11 -8
- package/tests/liquidsoap/src/core/outputs/harbor_output.ml +3 -3
- package/tests/liquidsoap/src/core/outputs/hls_output.ml +203 -116
- package/tests/liquidsoap/src/core/outputs/icecast2.ml +31 -5
- package/tests/liquidsoap/src/core/outputs/output.ml +27 -31
- package/tests/liquidsoap/src/core/outputs/output.mli +4 -5
- package/tests/liquidsoap/src/core/outputs/pipe_output.ml +19 -8
- package/tests/liquidsoap/src/core/outputs/sdl_out.ml +12 -9
- package/tests/liquidsoap/src/core/playlist_parser.ml +2 -6
- package/tests/liquidsoap/src/core/request.ml +84 -36
- package/tests/liquidsoap/src/core/request.mli +11 -8
- package/tests/liquidsoap/src/core/source.ml +343 -181
- package/tests/liquidsoap/src/core/source.mli +147 -33
- package/tests/liquidsoap/src/core/sources/alsa_in.ml +4 -6
- package/tests/liquidsoap/src/core/sources/audio_gen.ml +23 -22
- package/tests/liquidsoap/src/core/sources/bjack_in.ml +7 -5
- package/tests/liquidsoap/src/core/sources/blank.ml +55 -36
- package/tests/liquidsoap/src/core/sources/debug_sources.ml +2 -2
- package/tests/liquidsoap/src/core/sources/external_input_video.ml +2 -3
- package/tests/liquidsoap/src/core/sources/generated.ml +25 -47
- package/tests/liquidsoap/src/core/sources/harbor_input.ml +7 -9
- package/tests/liquidsoap/src/core/sources/latest_metadata.ml +1 -2
- package/tests/liquidsoap/src/core/sources/noise.ml +38 -27
- package/tests/liquidsoap/src/core/sources/request_dynamic.ml +181 -198
- package/tests/liquidsoap/src/core/sources/synthesized.ml +36 -23
- package/tests/liquidsoap/src/core/sources/video_board.ml +8 -10
- package/tests/liquidsoap/src/core/sources/video_testsrc.ml +9 -11
- package/tests/liquidsoap/src/core/sources/video_text.ml +8 -11
- package/tests/liquidsoap/src/core/stream/aFrame.ml +0 -32
- package/tests/liquidsoap/src/core/stream/aFrame.mli +2 -46
- package/tests/liquidsoap/src/core/stream/content.ml +96 -11
- package/tests/liquidsoap/src/core/stream/content.mli +32 -22
- package/tests/liquidsoap/src/core/stream/content_audio.ml +8 -4
- package/tests/liquidsoap/src/core/stream/content_base.ml +24 -35
- package/tests/liquidsoap/src/core/stream/content_midi.ml +0 -1
- package/tests/liquidsoap/src/core/stream/content_pcm_base.ml +0 -1
- package/tests/liquidsoap/src/core/stream/content_timed.ml +15 -1
- package/tests/liquidsoap/src/core/stream/content_video.ml +91 -30
- package/tests/liquidsoap/src/core/stream/ffmpeg_content_base.ml +0 -49
- package/tests/liquidsoap/src/core/stream/ffmpeg_copy_content.ml +2 -1
- package/tests/liquidsoap/src/core/stream/ffmpeg_raw_content.ml +2 -1
- package/tests/liquidsoap/src/core/stream/frame.ml +67 -118
- package/tests/liquidsoap/src/core/stream/frame.mli +49 -43
- package/tests/liquidsoap/src/core/stream/frame_base.ml +20 -32
- package/tests/liquidsoap/src/core/stream/frame_settings.ml +13 -36
- package/tests/liquidsoap/src/core/stream/generator.ml +47 -140
- package/tests/liquidsoap/src/core/stream/generator.mli +6 -13
- package/tests/liquidsoap/src/core/stream/mFrame.ml +0 -12
- package/tests/liquidsoap/src/core/stream/mFrame.mli +0 -19
- package/tests/liquidsoap/src/core/stream/metadata_base.ml +75 -0
- package/tests/liquidsoap/src/core/stream/vFrame.ml +0 -16
- package/tests/liquidsoap/src/core/stream/vFrame.mli +1 -35
- package/tests/liquidsoap/src/core/synth/dssi_op.ml +19 -20
- package/tests/liquidsoap/src/core/synth/keyboard.ml +6 -10
- package/tests/liquidsoap/src/core/synth/keyboard_sdl.ml +5 -11
- package/tests/liquidsoap/src/core/synth/synth_op.ml +11 -10
- package/tests/liquidsoap/src/core/tools/http.ml +40 -6
- package/tests/liquidsoap/src/core/tools/http.mli +21 -3
- package/tests/liquidsoap/src/core/tools/liq_posix_time.ml +3 -1
- package/tests/liquidsoap/src/core/tools/producer_consumer.ml +7 -18
- package/tests/liquidsoap/src/core/tools/server.ml +1 -1
- package/tests/liquidsoap/src/core/tools/server_builtins.ml +1 -1
- package/tests/liquidsoap/src/core/tools/start_stop.ml +2 -6
- package/tests/liquidsoap/src/core/tools/tutils.ml +1 -1
- package/tests/liquidsoap/src/core/track.ml +1 -2
- package/tests/liquidsoap/src/core/visualization/midimeter.ml +7 -5
- package/tests/liquidsoap/src/core/visualization/video_volume.ml +55 -68
- package/tests/liquidsoap/src/core/visualization/vis_volume.ml +1 -1
- package/tests/liquidsoap/src/js/index.html +4 -4
- package/tests/liquidsoap/src/{core/builtins/builtins_magic.ml → lang/active_value.ml} +16 -12
- package/tests/liquidsoap/src/lang/active_value.mli +33 -0
- package/tests/liquidsoap/src/lang/builtins_math.ml +7 -6
- package/tests/liquidsoap/src/lang/dune +1 -0
- package/tests/liquidsoap/src/lang/environment.ml +3 -1
- package/tests/liquidsoap/src/lang/evaluation.ml +13 -2
- package/tests/liquidsoap/src/lang/lang.mli +3 -0
- package/tests/liquidsoap/src/lang/lang_core.ml +13 -6
- package/tests/liquidsoap/src/lang/lexer.ml +2 -0
- package/tests/liquidsoap/src/lang/methods.ml +1 -0
- package/tests/liquidsoap/src/lang/methods.mli +1 -0
- package/tests/liquidsoap/src/lang/modules.ml +1 -0
- package/tests/liquidsoap/src/lang/parser_helper.ml +10 -1
- package/tests/liquidsoap/src/lang/parser_helper.mli +8 -1
- package/tests/liquidsoap/src/lang/term/parsed_term.ml +2 -0
- package/tests/liquidsoap/src/lang/term/runtime_term.ml +6 -1
- package/tests/liquidsoap/src/lang/term/term_base.ml +128 -74
- package/tests/liquidsoap/src/lang/term/term_reducer.ml +69 -3
- package/tests/liquidsoap/src/lang/term.ml +0 -47
- package/tests/liquidsoap/src/lang/type.ml +17 -1
- package/tests/liquidsoap/src/lang/type.mli +1 -0
- package/tests/liquidsoap/src/lang/types/type_base.ml +1 -1
- package/tests/liquidsoap/src/lang/utils.ml +1 -0
- package/tests/liquidsoap/src/lang/value.ml +16 -2
- package/tests/liquidsoap/src/libs/error.liq +16 -0
- package/tests/liquidsoap/src/libs/extra/deprecations.liq +18 -0
- package/tests/liquidsoap/src/libs/extra/metadata.liq +101 -0
- package/tests/liquidsoap/src/libs/extra/openai.liq +152 -0
- package/tests/liquidsoap/src/libs/extra/server.liq +39 -25
- package/tests/liquidsoap/src/libs/extra/source.liq +188 -0
- package/tests/liquidsoap/src/libs/fades.liq +92 -46
- package/tests/liquidsoap/src/libs/file.liq +71 -5
- package/tests/liquidsoap/src/libs/medialib.liq +384 -2
- package/tests/liquidsoap/src/libs/metadata.liq +1 -9
- package/tests/liquidsoap/src/libs/playlist.liq +224 -141
- package/tests/liquidsoap/src/libs/request.liq +112 -84
- package/tests/liquidsoap/src/libs/server.liq +12 -0
- package/tests/liquidsoap/src/libs/source.liq +24 -3
- package/tests/liquidsoap/src/libs/sqlite.liq +164 -0
- package/tests/liquidsoap/src/libs/stdlib.liq +4 -0
- package/tests/liquidsoap/src/libs/string.liq +35 -1
- package/tests/liquidsoap/src/libs/utils.liq +8 -0
- package/tests/liquidsoap/src/libs/video.liq +2 -1
- package/tests/liquidsoap/src/runtime/build_config.ml +1 -1
- package/tests/liquidsoap/src/runtime/main.ml +1 -1
- package/tests/liquidsoap/src/tooling/parsed_json.ml +4 -0
- package/tests/liquidsoap/tests/core/content_test.ml +32 -20
- package/tests/liquidsoap/tests/core/decoder_test.ml +4 -4
- package/tests/liquidsoap/tests/core/ffmpeg_quality.ml +2 -0
- package/tests/liquidsoap/tests/core/frame_test.ml +0 -35
- package/tests/liquidsoap/tests/core/generator_test.ml +4 -4
- package/tests/liquidsoap/tests/core/more_types.ml +2 -0
- package/tests/liquidsoap/tests/core/output_encoded_test.ml +7 -5
- package/tests/liquidsoap/tests/core/output_test.ml +6 -11
- package/tests/liquidsoap/tests/core/stream_decoder_test.ml +3 -4
- package/tests/liquidsoap/tests/failures/ctype.liq +0 -0
- package/tests/liquidsoap/tests/failures/error.liq +0 -0
- package/tests/liquidsoap/tests/failures/record-invalid-member1.liq +0 -0
- package/tests/liquidsoap/tests/failures/record-invalid-member2.liq +0 -0
- package/tests/liquidsoap/tests/failures/ref.liq +0 -0
- package/tests/liquidsoap/tests/fixme/GH1170.liq +0 -0
- package/tests/liquidsoap/tests/fixme/cross2.liq +0 -0
- package/tests/liquidsoap/tests/fixme/cross3.liq +0 -0
- package/tests/liquidsoap/tests/fixme/sequence-1.liq +0 -0
- package/tests/liquidsoap/tests/language/bool.liq +1 -12
- package/tests/liquidsoap/tests/language/dune.inc +12 -0
- package/tests/liquidsoap/tests/language/file.liq +7 -2
- package/tests/liquidsoap/tests/language/functions.liq +2 -13
- package/tests/liquidsoap/tests/language/interactive.liq +5 -16
- package/tests/liquidsoap/tests/language/list.liq +73 -78
- package/tests/liquidsoap/tests/language/loop.liq +6 -18
- package/tests/liquidsoap/tests/language/mem_usage.liq +0 -1
- package/tests/liquidsoap/tests/language/metadata.liq +9 -13
- package/tests/liquidsoap/tests/language/null.liq +8 -12
- package/tests/liquidsoap/tests/language/number.liq +10 -0
- package/tests/liquidsoap/tests/language/pp.liq +8 -20
- package/tests/liquidsoap/tests/language/predicate.liq +6 -18
- package/tests/liquidsoap/tests/language/ref.liq +3 -15
- package/tests/liquidsoap/tests/language/regexp.liq +14 -25
- package/tests/liquidsoap/tests/language/sqlite.liq +96 -0
- package/tests/liquidsoap/tests/language/stdlib.liq +7 -20
- package/tests/liquidsoap/tests/language/string.liq +7 -0
- package/tests/liquidsoap/tests/media/dune.inc +39 -0
- package/tests/liquidsoap/tests/media/encoder_audio_only.liq.in +1 -1
- package/tests/liquidsoap/tests/media/encoder_audio_video.liq.in +1 -1
- package/tests/liquidsoap/tests/media/encoder_multitrack.liq.in +1 -1
- package/tests/liquidsoap/tests/media/encoder_video_only.liq.in +1 -1
- package/tests/liquidsoap/tests/media/ffmpeg_bitstream_filter.liq +94 -0
- package/tests/liquidsoap/tests/media/ffmpeg_complex_filter.liq +1 -1
- package/tests/liquidsoap/tests/media/ffmpeg_filter.liq +3 -9
- package/tests/liquidsoap/tests/media/ffmpeg_raw_hls.liq +15 -12
- package/tests/liquidsoap/tests/media/ffmpeg_transparency_filter.liq +3 -9
- package/tests/liquidsoap/tests/media/gen_dune.ml +1 -0
- package/tests/liquidsoap/tests/media/mk_encoder_test.sh +0 -0
- package/tests/liquidsoap/tests/media/mk_stream_test.sh +0 -0
- package/tests/liquidsoap/tests/media/multitrack.liq +21 -1
- package/tests/liquidsoap/tests/media/stream_audio.liq.in +0 -0
- package/tests/liquidsoap/tests/media/stream_video.liq.in +0 -0
- package/tests/liquidsoap/tests/performance/erathostenes.liq +0 -0
- package/tests/liquidsoap/tests/performance/memory.liq +0 -0
- package/tests/liquidsoap/tests/performance/small-record.liq +0 -0
- package/tests/liquidsoap/tests/regression/GH1327.liq +8 -0
- package/tests/liquidsoap/tests/regression/GH3316.liq +2 -0
- package/tests/liquidsoap/tests/regression/GH3645.liq +16 -0
- package/tests/liquidsoap/tests/regression/GH3675.liq +37 -0
- package/tests/liquidsoap/tests/regression/LS354-2.liq +11 -3
- package/tests/liquidsoap/tests/regression/dune.inc +45 -14
- package/tests/liquidsoap/tests/regression/track_sensitive.liq +17 -0
- package/tests/liquidsoap/tests/regression/unified-pcm-types.aac +0 -0
- package/tests/liquidsoap/tests/regression/unified-pcm-types.liq +3 -0
- package/tests/liquidsoap/tests/run_test.ml +7 -3
- package/tests/liquidsoap/tests/streams/195.liq +4 -1
- package/tests/liquidsoap/tests/streams/cross-override.liq +12 -4
- package/tests/liquidsoap/tests/streams/cross-persist-override.liq +12 -4
- package/tests/liquidsoap/tests/streams/cross.liq +1 -1
- package/tests/liquidsoap/tests/streams/crossfade.liq +11 -24
- package/tests/liquidsoap/tests/streams/cue-cut.liq +16 -0
- package/tests/liquidsoap/tests/streams/dtmf.liq +3 -0
- package/tests/liquidsoap/tests/streams/dtmf_pcm_s16.liq +4 -0
- package/tests/liquidsoap/tests/streams/dune.inc +145 -0
- package/tests/liquidsoap/tests/streams/fades-persistent-override.liq +7 -2
- package/tests/liquidsoap/tests/streams/hls_discontinuity.liq +68 -0
- package/tests/liquidsoap/tests/streams/hls_id3v2.liq +76 -4
- package/tests/liquidsoap/tests/streams/hls_large_frame.liq +31 -0
- package/tests/liquidsoap/tests/streams/merge_metadata.liq +2 -4
- package/tests/liquidsoap/tests/streams/no-cue-cut.liq +22 -0
- package/tests/liquidsoap/tests/streams/random.liq +4 -4
- package/tests/liquidsoap/tests/streams/rotate.liq +44 -21
- package/tests/liquidsoap/tests/streams/sharing.liq +5 -0
- package/tests/liquidsoap/tests/streams/source-cue.liq +134 -0
- package/tests/liquidsoap/tests/streams/srt_raw_pcm.liq +5 -0
- package/tests/liquidsoap/tests/test.liq +1 -2
- package/tests/run.sh +0 -0
- package/tests/liquidsoap/.github/opam/packages/duppy/duppy.0.9.3/opam +0 -37
- package/tests/liquidsoap/.github/opam/packages/ssl/ssl.0.7.0/opam +0 -40
- package/tests/liquidsoap/src/core/liqmagic.disabled.ml +0 -2
- package/tests/liquidsoap/src/core/liqmagic.enabled.ml +0 -3
- package/tests/liquidsoap/src/core/liqmagic.mli +0 -4
- package/tests/liquidsoap/src/core/operators/cuepoint.ml +0 -216
- package/tests/liquidsoap/tests/regression/GH3121.liq +0 -16
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
opam-version: "2.0"
|
|
2
|
+
synopsis: "Bindings for the ffmpeg libraries"
|
|
3
|
+
maintainer: "Romain Beauxis <toots@rastageeks.org>"
|
|
4
|
+
authors: "The Savonet Team <savonet-users@lists.sourceforge.net>"
|
|
5
|
+
license: "LGPL-2.1-only"
|
|
6
|
+
homepage: "https://github.com/savonet/ocaml-ffmpeg"
|
|
7
|
+
bug-reports: "https://github.com/savonet/ocaml-ffmpeg/issues"
|
|
8
|
+
depends: [
|
|
9
|
+
"ocaml-windows" {>= "4.08.0"}
|
|
10
|
+
"dune" {>= "3.6"}
|
|
11
|
+
"ffmpeg-av-windows" {= version}
|
|
12
|
+
"ffmpeg-avutil-windows" {= version}
|
|
13
|
+
"ffmpeg-avcodec-windows" {= version}
|
|
14
|
+
"ffmpeg-avfilter-windows" {= version}
|
|
15
|
+
"ffmpeg-avdevice-windows" {= version}
|
|
16
|
+
"ffmpeg-swscale-windows" {= version}
|
|
17
|
+
"ffmpeg-swresample-windows" {= version}
|
|
18
|
+
]
|
|
19
|
+
build: [
|
|
20
|
+
[
|
|
21
|
+
"dune"
|
|
22
|
+
"build"
|
|
23
|
+
"-p"
|
|
24
|
+
"ffmpeg"
|
|
25
|
+
"-x"
|
|
26
|
+
"windows"
|
|
27
|
+
"-j"
|
|
28
|
+
jobs
|
|
29
|
+
"@install"
|
|
30
|
+
]
|
|
31
|
+
]
|
|
32
|
+
dev-repo: "git+https://github.com/savonet/ocaml-ffmpeg.git"
|
|
33
|
+
url {
|
|
34
|
+
src: "https://github.com/savonet/ocaml-ffmpeg/archive/main.tar.gz"
|
|
35
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -65,7 +65,7 @@ else
|
|
|
65
65
|
IS_SNAPSHOT=
|
|
66
66
|
fi
|
|
67
67
|
|
|
68
|
-
MINIMAL_EXCLUDE_DEPS="alsa ao bjack camlimages dssi faad fdkaac flac frei0r gd graphics gstreamer imagelib irc-client-unix ladspa lame lastfm lilv lo mad magic ogg opus osc-unix portaudio pulseaudio samplerate shine soundtouch speex srt taglib tls theora tsdl vorbis"
|
|
68
|
+
MINIMAL_EXCLUDE_DEPS="alsa ao bjack camlimages dssi faad fdkaac flac frei0r gd graphics gstreamer imagelib irc-client-unix ladspa lame lastfm lilv lo mad magic ogg opus osc-unix portaudio pulseaudio samplerate shine soundtouch speex srt taglib tls theora tsdl sqlite3 vorbis"
|
|
69
69
|
|
|
70
70
|
{
|
|
71
71
|
echo "branch=${BRANCH}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -25,12 +25,28 @@ make update
|
|
|
25
25
|
|
|
26
26
|
echo "::endgroup::"
|
|
27
27
|
|
|
28
|
+
echo "::group::Checking out CI commit"
|
|
29
|
+
|
|
30
|
+
cd /tmp/liquidsoap-full/liquidsoap
|
|
31
|
+
|
|
32
|
+
git fetch origin "$GITHUB_SHA"
|
|
33
|
+
git checkout "$GITHUB_SHA"
|
|
34
|
+
mv .github /tmp
|
|
35
|
+
rm -rf ./*
|
|
36
|
+
mv /tmp/.github .
|
|
37
|
+
git reset --hard
|
|
38
|
+
|
|
39
|
+
echo "::endgroup::"
|
|
40
|
+
|
|
28
41
|
echo "::group::Setting up specific dependencies"
|
|
29
42
|
|
|
30
43
|
cd /tmp/liquidsoap-full/liquidsoap
|
|
31
44
|
|
|
32
45
|
./.github/scripts/checkout-deps.sh
|
|
33
46
|
|
|
47
|
+
opam update
|
|
48
|
+
opam install -y saturn_lockfree magic-mime
|
|
49
|
+
|
|
34
50
|
cd /tmp/liquidsoap-full
|
|
35
51
|
|
|
36
52
|
sed -e 's@ocaml-gstreamer@#ocaml-gstreamer@' -i PACKAGES
|
|
@@ -39,19 +55,6 @@ export PKG_CONFIG_PATH=/usr/share/pkgconfig/pkgconfig
|
|
|
39
55
|
|
|
40
56
|
echo "::endgroup::"
|
|
41
57
|
|
|
42
|
-
echo "::group::Checking out CI commit"
|
|
43
|
-
|
|
44
|
-
cd /tmp/liquidsoap-full/liquidsoap
|
|
45
|
-
|
|
46
|
-
git fetch origin "$GITHUB_SHA"
|
|
47
|
-
git checkout "$GITHUB_SHA"
|
|
48
|
-
mv .github /tmp
|
|
49
|
-
rm -rf ./*
|
|
50
|
-
mv /tmp/.github .
|
|
51
|
-
git reset --hard
|
|
52
|
-
|
|
53
|
-
echo "::endgroup::"
|
|
54
|
-
|
|
55
58
|
echo "::group::Compiling"
|
|
56
59
|
|
|
57
60
|
cd /tmp/liquidsoap-full
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -207,7 +207,7 @@ jobs:
|
|
|
207
207
|
cp -rf html/* /tmp/${{ github.run_number }}/html
|
|
208
208
|
- name: Push content
|
|
209
209
|
if: success() && github.repository_owner == 'savonet'
|
|
210
|
-
uses: crazy-max/ghaction-github-pages@
|
|
210
|
+
uses: crazy-max/ghaction-github-pages@v4
|
|
211
211
|
with:
|
|
212
212
|
repo: savonet/savonet.github.io
|
|
213
213
|
target_branch: master
|
|
@@ -245,6 +245,10 @@ jobs:
|
|
|
245
245
|
sudo -u opam -E git remote set-url origin https://github.com/savonet/liquidsoap.git
|
|
246
246
|
sudo -u opam -E git fetch origin ${{ github.sha }}
|
|
247
247
|
sudo -u opam -E git checkout ${{ github.sha }}
|
|
248
|
+
- name: Install sqlite
|
|
249
|
+
run: |
|
|
250
|
+
sudo apt-get -y install libsqlite3-dev
|
|
251
|
+
sudo -u opam -E opam install -y sqlite3
|
|
248
252
|
- name: Install pandoc
|
|
249
253
|
run: |
|
|
250
254
|
cd /tmp
|
|
@@ -395,10 +399,15 @@ jobs:
|
|
|
395
399
|
sudo apt-get update
|
|
396
400
|
sudo apt-get -y dist-upgrade
|
|
397
401
|
sudo apt-get -y autoremove
|
|
402
|
+
sudo apt-get -y install libsqlite3-dev
|
|
398
403
|
- name: Update alpine packages
|
|
399
404
|
if: matrix.os == 'alpine'
|
|
400
405
|
run: |
|
|
401
406
|
apk -U --force-overwrite upgrade
|
|
407
|
+
apk add -i sqlite-dev
|
|
408
|
+
- name: Install additional libraries
|
|
409
|
+
run: |
|
|
410
|
+
sudo -u opam -E opam install -y sqlite3
|
|
402
411
|
- name: Install pandoc
|
|
403
412
|
run: |
|
|
404
413
|
cd /tmp
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
New:
|
|
4
4
|
|
|
5
|
+
- Rewrote the streaming API to work with immutable frame content. This
|
|
6
|
+
should greatly impact impredictable side-effect of the previous models w.r.t.
|
|
7
|
+
track marks, content sharing and more. This also impacts multiple operators
|
|
8
|
+
behavior. Mostly, things should be roughly the same with differences around
|
|
9
|
+
behavors related to track marks (`source.on_track` and etc). See @TODO@ for
|
|
10
|
+
more details (#3577)
|
|
11
|
+
- Allow frames smaller than one video frames, typically values under `0.04s`.
|
|
12
|
+
Smaller frames means less latency and memory consumption at the expense of
|
|
13
|
+
a higher CPU usage. See @TODO@ for more details (#3607)
|
|
14
|
+
- Added non-interleaved API to `%ffmpeg` encoder, enabled by default when only
|
|
15
|
+
one stream is encoded.
|
|
5
16
|
- Allow trailing commas in record definition (#3300).
|
|
6
17
|
- Add `metadata.getter.source.float` (#3356).
|
|
7
18
|
- Added optional `main_playlist_writer` to `output.file.hls` and
|
|
@@ -13,8 +24,14 @@ New:
|
|
|
13
24
|
- Add `metadata.replaygain` method to extract unified replay gain value from metadata (#3438).
|
|
14
25
|
- Add `compute` parameter to `file.replaygain` to control gain calculation (#3438).
|
|
15
26
|
- Add `compute` parameter to `enable_replaygain_metadata` to control replay gain calculation (#3438).
|
|
16
|
-
- Add `copy:` protocol (
|
|
27
|
+
- Add `copy:` protocol (#3506)
|
|
17
28
|
- Add `file.touch`.
|
|
29
|
+
- Add support for sqlite databases (#3575).
|
|
30
|
+
- Add `string.of_int` and `string.spaces`.
|
|
31
|
+
- Add `list.assoc.nullable`.
|
|
32
|
+
- Add `source.cue` (#3620).
|
|
33
|
+
- Added atomic file write operations.
|
|
34
|
+
- Added `file.cover.manager` from an original code by @vitoyucepi (#3651)
|
|
18
35
|
|
|
19
36
|
Changed:
|
|
20
37
|
|
|
@@ -27,10 +44,93 @@ Changed:
|
|
|
27
44
|
mechanism for updating it (#3355).
|
|
28
45
|
- Disable output paging when `TERM` environment variable is not set.
|
|
29
46
|
- Allow running as `root` user inside `docker` container by default (#3406).
|
|
47
|
+
- Run `check_next` before playlist's requests resolutions (#3625)
|
|
30
48
|
- Set `force` to `true` by default in `file.copy` to make operator behave
|
|
31
49
|
as expected.
|
|
32
50
|
- BREAKING: `replaygain` no longer takes `ebu_r128` parameter (#3438).
|
|
33
51
|
- BREAKING: assume `replaygain_track_gain` always stores volume in _dB_ (#3438).
|
|
52
|
+
- Added `parents` option of `file.mkdir` (#3600, #3601).
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
# 2.2.2 (2023-11-02)
|
|
57
|
+
|
|
58
|
+
New:
|
|
59
|
+
|
|
60
|
+
- Added `string.escape.html` (#3418, @ghostnumber7)
|
|
61
|
+
- Add support for getters in arguments of `blank.detect` (#3452).
|
|
62
|
+
- Allow float in source content type annotation so that it possible
|
|
63
|
+
to write: `source(audio=pcm(5.1))`
|
|
64
|
+
|
|
65
|
+
Changed:
|
|
66
|
+
|
|
67
|
+
- Trim urls in `input.ffmpeg` by default. Disable using
|
|
68
|
+
`trim_url=false` (#3424)
|
|
69
|
+
- Automatically add HLS-specific ffmpeg parameters to
|
|
70
|
+
`%ffmpeg` encoder (#3483)
|
|
71
|
+
- BREAKING: default `on_fail` removed on `playlist` (#3479)
|
|
72
|
+
|
|
73
|
+
Fixed:
|
|
74
|
+
|
|
75
|
+
- Allow `channel_layout` argument in ffmpeg encoder to set the
|
|
76
|
+
number of channels.
|
|
77
|
+
- Improved support for unitary minus, fix runtime call of optional
|
|
78
|
+
methods (#3498)
|
|
79
|
+
- Fixed `map.metadata` mutating existing metadata.
|
|
80
|
+
- Fixed reloading loop in playlists with invalid files (#3479)
|
|
81
|
+
- Fixed main HLS playlist codecs when using `mpegts` (#3483)
|
|
82
|
+
- Fixed pop/clicks in crossfade and source with caching (#3318)
|
|
83
|
+
- Fixed pop/clicks when resampling using `libsamplerate` (#3429)
|
|
84
|
+
- Fixed gstreamer compilation. Remember that gstreamer features are
|
|
85
|
+
DEPRECATED! (#3459)
|
|
86
|
+
- Fixed html character escaping in `interactive.harbor` (#3418, @ghostnumber7)
|
|
87
|
+
- Fixed icecast not reconnecting after erroring out while closing connection
|
|
88
|
+
in some circumstances (#3427)
|
|
89
|
+
- Fixed parse-only mode (#3423)
|
|
90
|
+
- Fixed ffmpeg decoding failing on files with unknown codecs.
|
|
91
|
+
- Fixed a crash due to `wait_until` timestamp being in the past when
|
|
92
|
+
using `posix-time2`
|
|
93
|
+
- Make sure that temporary files are always cleaned up in HLS outputs (#3493)
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
# 2.2.1 (2023-09-05)
|
|
98
|
+
|
|
99
|
+
Changed:
|
|
100
|
+
|
|
101
|
+
- BREAKING: on HLS outputs, `on_file_change` events are
|
|
102
|
+
now `"created"`, `"updated"` and `"deleted"`, to better
|
|
103
|
+
reflect the new atomic file operations (#3284)
|
|
104
|
+
- Added `compact` argument to the `http.response.json` function. `http.response.json` will produce minified JSON by
|
|
105
|
+
default. Added a newline symbol to the end of the JSON data produced by `http.response.json`. (#3299)
|
|
106
|
+
- Bumped internal ogg decoder to make sure that it is used over the ffmpeg decoder whenever possible.
|
|
107
|
+
FFmpeg has issues with metadata in chained streams which needs to be fixed upstream. Unfortunately,
|
|
108
|
+
`input.http` can only use the ffmpeg decoder at the moment.
|
|
109
|
+
- Cleanup `output.file` encoding and file handling logic (#3328)
|
|
110
|
+
- Added `ratio` to `source.{dump,drop}` to make it possible to control its CPU peaks.
|
|
111
|
+
- Enhanced clock error reporting (#3317)
|
|
112
|
+
|
|
113
|
+
Fixed:
|
|
114
|
+
|
|
115
|
+
- Fixed slow memory leak in muxer operator (#3372, #3181, #3334)
|
|
116
|
+
- Fixed discontinuity logic error in HLS outputs after a restart.
|
|
117
|
+
- Fixed HTTP response status in `output.harbor` (#3255)
|
|
118
|
+
- Make sure main HLS playlist is regenerated after being
|
|
119
|
+
unlinked (#3275)
|
|
120
|
+
- Fixed hard crash on icecast disconnection errors.
|
|
121
|
+
- Fix `output.harbor` encoder header when encoding with
|
|
122
|
+
`%ogg`, `%vorbis` and etc. (#3276)
|
|
123
|
+
- Fixed quality argument parsing in ffmpeg encoders (#3267)
|
|
124
|
+
- Make all HLS file write atomic (#3284)
|
|
125
|
+
- Allow seek and cue operators to work with muxed sources
|
|
126
|
+
using a single underlying source (#3252)
|
|
127
|
+
- Fixed export of cover art metadata (#3279)
|
|
128
|
+
- Remove use of `stereo:` protocol in `say:` protocol:
|
|
129
|
+
this is now handled automatically by the decoder and generates latency via
|
|
130
|
+
high CPU usage peak.
|
|
131
|
+
- Fixed `output.file` reopening with flac encoding (#3328)
|
|
132
|
+
|
|
133
|
+
---
|
|
34
134
|
|
|
35
135
|
# 2.2.0 (2023-07-21)
|
|
36
136
|
|
|
@@ -36,7 +36,7 @@ See the instructions [here](https://www.liquidsoap.info/doc.html?path=install.ht
|
|
|
36
36
|
Current release status by version:
|
|
37
37
|
| Branch | Latest release | Supported | Rolling Release |
|
|
38
38
|
| --------|----------------|-----------|-----------------|
|
|
39
|
-
| `2.2.x` | [2.2.
|
|
39
|
+
| `2.2.x` | [2.2.3](https://github.com/savonet/liquidsoap/releases/tag/v2.2.3) (docker: [savonet/liquidsoap:v2.2.3](https://hub.docker.com/r/savonet/liquidsoap))| ✅ | [2.2.x](https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.2.x) (docker: [savonet/liquidsoap:rolling-release-v2.2.x](https://hub.docker.com/r/savonet/liquidsoap)) |
|
|
40
40
|
| `2.1.x` | [2.1.4](https://github.com/savonet/liquidsoap/releases/tag/v2.1.4) (docker: [savonet/liquidsoap:v2.1.4](https://hub.docker.com/r/savonet/liquidsoap))| ❌ | [2.1.x](https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.1.x) (docker: [savonet/liquidsoap:rolling-release-v2.1.x](https://hub.docker.com/r/savonet/liquidsoap)) |
|
|
41
41
|
| `2.0.x` | [2.0.7](https://github.com/savonet/liquidsoap/releases/tag/v2.0.7) | ❌ | [2.0.x](https://github.com/savonet/liquidsoap/releases/tag/rolling-release-v2.0.x) |
|
|
42
42
|
| `1.4.x` | [1.4.4](https://github.com/savonet/liquidsoap/releases/tag/v1.4.4) | ❌ | ❌ |
|
|
@@ -12,48 +12,50 @@
|
|
|
12
12
|
- live switch with ffmpeg encoded content
|
|
13
13
|
- deprecate "!" and ":=" in favor of x.get / x.set
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## For 2.2
|
|
16
16
|
|
|
17
|
-
-
|
|
18
|
-
|
|
17
|
+
- ~~switch to immutable content for metadata~~
|
|
18
|
+
- ~~Add script tooling, prettier etc.~~
|
|
19
|
+
- ~~switch to immutable content for frames (#2364)~~
|
|
20
|
+
- ~~frame should be changed to extensible arrays (a bit like `Strings`) instead
|
|
21
|
+
of filling a buffer~~
|
|
22
|
+
- ~~take the opportunity to change the handling of track boundaries (currently
|
|
23
|
+
boundary = we have a partial fill, which has quite messy corner cases)~~
|
|
24
|
+
|
|
25
|
+
## For 2.3
|
|
26
|
+
|
|
27
|
+
~~- Rewrite streaming loop~~
|
|
28
|
+
|
|
29
|
+
- rewrite the clock system
|
|
30
|
+
- the code is unreadable and overengineered ⇒ simplify it
|
|
31
|
+
- we want to get rid of the assumption clock = thread
|
|
19
32
|
- use OCaml 5 threads (#2879)
|
|
20
|
-
-
|
|
33
|
+
- update the Liquidsoap book
|
|
34
|
+
|
|
35
|
+
## For 2.4
|
|
36
|
+
|
|
37
|
+
- Optimize runtime: start time, typing and memory usage
|
|
38
|
+
- Add support for modules, load minimal API by default
|
|
21
39
|
- remove requests and use sources instead everywhere (a request is a source with
|
|
22
40
|
one track [or more])
|
|
23
41
|
- Precise scheduling with queue.push, etc.: we could make the track available
|
|
24
42
|
at some precise time if requests were sources...
|
|
25
43
|
- this may allow stuff like `append` more easily
|
|
44
|
+
|
|
45
|
+
## FOSDEM 2023 TODO
|
|
46
|
+
|
|
47
|
+
- use source getters for switch in order to be able to play two tracks ever day
|
|
48
|
+
(#2880)
|
|
26
49
|
- use naive (as in native.liq) implementation of switch (based on
|
|
27
50
|
source.dynamic)
|
|
28
51
|
- rework buffer.adaptative
|
|
29
52
|
- allow showing graphs (of buffer.adaptative for instance)
|
|
30
53
|
- reimplement video.tile in native liq
|
|
31
54
|
|
|
32
|
-
##
|
|
33
|
-
|
|
34
|
-
- update the Liquidsoap book
|
|
35
|
-
|
|
36
|
-
## For 2.3
|
|
55
|
+
## Backlog
|
|
37
56
|
|
|
38
|
-
- ~~switch to immutable content for metadata~~
|
|
39
|
-
- switch to immutable content for frames (#2364)
|
|
40
|
-
- frame should be changed to extensible arrays (a bit like `Strings`) instead
|
|
41
|
-
of filling a buffer
|
|
42
|
-
- take the opportunity to change the handling of track boundaries (currently
|
|
43
|
-
boundary = we have a partial fill, which has quite messy corner cases)
|
|
44
|
-
- Rewrite streaming loop
|
|
45
57
|
- Simple mechanism to tell source how much data will be expected in advance (e.g. 10s with cross) to allow automatic buffer management.
|
|
46
|
-
- rewrite the clock system
|
|
47
|
-
- the code is unreadable and overengineered ⇒ simplify it
|
|
48
|
-
- we want to get rid of the assumption clock = thread
|
|
49
|
-
- Take advantage of multicore
|
|
50
|
-
- Support for proper modules
|
|
51
|
-
- Optimize runtime: start time, typing and memory usage
|
|
52
|
-
- Add script tooling, prettier etc.
|
|
53
58
|
- Redefine switch-based transitions.
|
|
54
|
-
|
|
55
|
-
## Backlog
|
|
56
|
-
|
|
57
59
|
- javascrtipt/browser support using [WebCodecs](https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API)!
|
|
58
60
|
- support for subtitles
|
|
59
61
|
- refine video support in order to have next liquidshop running on Liquidsoap
|
|
@@ -62,6 +62,33 @@ liquidsoap when streaming is finished.
|
|
|
62
62
|
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
+
## Generating CUE files
|
|
66
|
+
|
|
67
|
+
When making backups of streams in audio files, it can be useful to generate CUE
|
|
68
|
+
files, which store the times where the various tracks occur along with their
|
|
69
|
+
metadata (those could then be used later on to split the file for
|
|
70
|
+
instance). This can be achieved using the `source.cue` operator:
|
|
71
|
+
|
|
72
|
+
```{.liquidsoap include="source-cue.liq" from="BEGIN" to="END"}
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
which will generate a CUE file of the following form
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
TITLE "My stream"
|
|
80
|
+
PERFORMER "The performer"
|
|
81
|
+
FILE "backup.mp3" MP3
|
|
82
|
+
TRACK 01 AUDIO
|
|
83
|
+
TITLE "Title 1"
|
|
84
|
+
PERFORMER "Artist 1"
|
|
85
|
+
INDEX 01 00:00:00
|
|
86
|
+
TRACK 02 AUDIO
|
|
87
|
+
TITLE "Title 2"
|
|
88
|
+
PERFORMER "Artist 2"
|
|
89
|
+
INDEX 01 01:12:67
|
|
90
|
+
```
|
|
91
|
+
|
|
65
92
|
## RTMP server
|
|
66
93
|
|
|
67
94
|
With our [FFmpeg support](ffmpeg.html), it is possible to create a simple RTMP server with no re-encoding:
|
|
@@ -145,6 +172,17 @@ length 5:
|
|
|
145
172
|
|
|
146
173
|
```
|
|
147
174
|
|
|
175
|
+
The default implementation of `medialib` uses standard Liquidsoap functions and
|
|
176
|
+
can be pretty expensive in terms of memory. A more efficient implementation is
|
|
177
|
+
available if you compiled with support for sqlite3 databases. In this case, you
|
|
178
|
+
can use the `medialib.sqlite` operator as follows:
|
|
179
|
+
|
|
180
|
+
```{.liquidsoap include="medialib.sqlite.liq"}
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
(we also support more advanced uses of [databases](database.html)).
|
|
185
|
+
|
|
148
186
|
## Force a file/playlist to be played at least every XX minutes
|
|
149
187
|
|
|
150
188
|
It can be useful to have a special playlist that is played at least every 20 minutes for instance (3 times per hour).
|
|
@@ -250,6 +288,11 @@ save a file per hour in wav format, the following script can be used:
|
|
|
250
288
|
|
|
251
289
|
```
|
|
252
290
|
|
|
291
|
+
Here, the function `time.string` generates the file name by replacing `%H` by
|
|
292
|
+
the hour, etc. The fact that it is between curly brackets,
|
|
293
|
+
i.e. `{time.string(...)}`, ensures that it is re-evaluated each time a new file
|
|
294
|
+
is created, the changing the file name each time according to the current time.
|
|
295
|
+
|
|
253
296
|
In the following variant we write a new mp3 file each time new metadata is
|
|
254
297
|
coming from `s`:
|
|
255
298
|
|
|
@@ -261,10 +304,10 @@ In the two examples we use [string interpolation](language.html) and time
|
|
|
261
304
|
literals to generate the output file name.
|
|
262
305
|
|
|
263
306
|
In order to limit the disk space used by this archive, on unix systems we can
|
|
264
|
-
regularly call `find` to cleanup the folder
|
|
265
|
-
recording
|
|
307
|
+
regularly call `find` to cleanup the folder; if we can to keep 31 days of
|
|
308
|
+
recording:
|
|
266
309
|
|
|
267
|
-
```{liquidsoap include="archive-cleaner.liq"}
|
|
310
|
+
```{.liquidsoap include="archive-cleaner.liq"}
|
|
268
311
|
|
|
269
312
|
```
|
|
270
313
|
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Database support
|
|
2
|
+
|
|
3
|
+
Liquidsoap supports SQL databases through the sqlite library. If you build
|
|
4
|
+
Liquidsoap by yourself, you should install the
|
|
5
|
+
[SQLite3-OCaml](https://github.com/mmottl/sqlite3-ocaml) library, e.g. with
|
|
6
|
+
`opam install sqlite3`{.bash}.
|
|
7
|
+
|
|
8
|
+
In order to create or open a database, you should use the `sqlite` function,
|
|
9
|
+
which takes as argument the file where the database is stored and returns an
|
|
10
|
+
object whose methods can be used to modify or query the database:
|
|
11
|
+
|
|
12
|
+
```{.liquidsoap include="sqlite.liq" from="open-begin" to="open-end"}
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
table in the database can then be created by calling the `table.create` method
|
|
17
|
+
on the object with as arguments the table name (labeled by `table`) and the list
|
|
18
|
+
of columns specified by pairs consisting of the column name, and its
|
|
19
|
+
type. Setting the `preserve` argument to `true`{.liquidsoap} allows not creating
|
|
20
|
+
the table if one already exists under this name. In our example, we want to use
|
|
21
|
+
our database to store metadata for files so that we create a table named
|
|
22
|
+
`"metadata"`{.liquidsoap} with columns corresponding to the artist, title, etc.:
|
|
23
|
+
|
|
24
|
+
```{.liquidsoap include="sqlite.liq" from="create-begin" to="create-end"}
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Inserting a row is then performed using the `insert` method, which takes as
|
|
29
|
+
argument the table and a record containing the data for the row:
|
|
30
|
+
|
|
31
|
+
```{.liquidsoap include="sqlite.liq" from="insert-begin" to="insert-end"}
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Since the field `filename` is a primary key, it has to be unique (two rows
|
|
36
|
+
cannot have the same file name), so that inserting two files with the same
|
|
37
|
+
filename in the database will result in an error. If we want that the second
|
|
38
|
+
insertion replace the first one, we can pass the `replace=true`{.liquidsoap}
|
|
39
|
+
argument to the `insert` function.
|
|
40
|
+
|
|
41
|
+
We can query the database with the `select` method. For instance, to obtain all
|
|
42
|
+
the files whose year is posterior to 2000, we can write
|
|
43
|
+
|
|
44
|
+
```{.liquidsoap include="sqlite.liq" from="select-begin" to="select-end"}
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
In the case where you want to use strings in your queries, you should always use
|
|
49
|
+
`sqlite.escape` to properly escape it and avoid injections:
|
|
50
|
+
|
|
51
|
+
```{.liquidsoap include="sqlite.liq" from="select2-begin" to="select2-end"}
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The `select` function, returns a list of rows. To each row will correspond a
|
|
56
|
+
list of pairs strings consisting of
|
|
57
|
+
|
|
58
|
+
- a string: the name of the column,
|
|
59
|
+
- a nullable string: its value (this is nullable because the contents of a
|
|
60
|
+
column can be NULL in databases).
|
|
61
|
+
|
|
62
|
+
We could thus extract the filenames from the above queries and use those in
|
|
63
|
+
order to build a playlist as follows:
|
|
64
|
+
|
|
65
|
+
```{.liquidsoap include="sqlite.liq" from="play-begin" to="play-end"}
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
This can be read as follows: for each row (by `list.map`{.liquidsoap}), we
|
|
70
|
+
convert the row to a list of pairs of strings as described above (by calling the
|
|
71
|
+
`to_list`{.liquidsoap} method), we replace take the field labeled
|
|
72
|
+
`"filename"`{.liquidsoap} (by `list.assoc`{.liquidsoap}) and take its value,
|
|
73
|
+
assuming that it is not null (by `null.get`{.liquidsoap}).
|
|
74
|
+
|
|
75
|
+
Since manipulating rows as lists of pairs of strings is not convenient,
|
|
76
|
+
Liquidsoap offers the possibility to represent them as records with
|
|
77
|
+
constructions of the form
|
|
78
|
+
|
|
79
|
+
```liquidsoap
|
|
80
|
+
let sqlite.row (r : {a : string; b : int}) = row
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
which instructs to parse the row `row`{.liquidsoap} as a record `r` with fields
|
|
84
|
+
`a` and `b` of respective types `string`{.liquidsoap} and
|
|
85
|
+
`int`{.liquidsoap}. The above filename extraction is thus more conveniently
|
|
86
|
+
written as
|
|
87
|
+
|
|
88
|
+
```{.liquidsoap include="sqlite.liq" from="play2-begin" to="play2-end"}
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Other useful methods include
|
|
93
|
+
|
|
94
|
+
- `count` to count the number of rows satisfying a condition
|
|
95
|
+
|
|
96
|
+
```{.liquidsoap include="sqlite.liq" from="count-begin" to="count-end"}
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
- `delete` to delete rows from a table
|
|
101
|
+
|
|
102
|
+
```{.liquidsoap include="sqlite.liq" from="play-begin" to="play-end"}
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
- `table.drop` to delete tables from the database
|
|
107
|
+
|
|
108
|
+
```{.liquidsoap include="sqlite.liq" from="drop-begin" to="drop-end"}
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
- `exec` to execute an arbitrary SQL query which does not return anything:
|
|
113
|
+
|
|
114
|
+
```{.liquidsoap include="sqlite.liq" from="exec-begin" to="exec-end"}
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
- `query` to execute an arbitrary SQL query returning rows
|
|
119
|
+
|
|
120
|
+
```{.liquidsoap include="sqlite.liq" from="query-begin" to="query-end"}
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Finally, if your aim is to index file metadata, you might be interested in the
|
|
125
|
+
`medialib.sqlite`{.liquidsoap} operator which is implemented in the standard
|
|
126
|
+
library as described above (see the [cookbook](cookbook.html)).
|
|
@@ -36,6 +36,7 @@ If you are migrating from a previous version, you might want to checkout
|
|
|
36
36
|
- [JSON import/export](json.html): Importing and exporting language values in JSON.
|
|
37
37
|
- [Playlist parsers](playlist_parsers.html): Supported playlist formats.
|
|
38
38
|
- [LADSPA plugins](ladspa.html): Using LADSPA plugins.
|
|
39
|
+
- [Database](database.html): Support for SQL databases.
|
|
39
40
|
|
|
40
41
|
## Core
|
|
41
42
|
|
|
@@ -23,8 +23,7 @@ In most liquidsoap scripts, the encoding format determines what
|
|
|
23
23
|
kind of data is streamed.
|
|
24
24
|
|
|
25
25
|
The type of an encoding format depends on its parameter.
|
|
26
|
-
For example, `%mp3` has type `format(audio=
|
|
27
|
-
but `%mp3(mono)` has type `format(audio=1,video=0,midi=0)`.
|
|
26
|
+
For example, `%mp3` has type `format(audio=pcm(stereo))`.
|
|
28
27
|
|
|
29
28
|
The type of an output like `output.icecast`
|
|
30
29
|
or `output.file` is something like
|
|
@@ -38,12 +37,12 @@ output.file(%mp3,"/tmp/foo.mp3",playlist("~/audio"))
|
|
|
38
37
|
```
|
|
39
38
|
|
|
40
39
|
then the playlist source will have to stream stereo audio.
|
|
41
|
-
Thus it will reject mono and video files.
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
In the case of audio format, liquidsoap tries its best to convert the format whenever
|
|
42
|
+
possible. For instance, in the above, liquidsoap will convert mono files
|
|
43
|
+
from the playlist to stereo files by duplicating the single audio channel
|
|
44
|
+
in a mono file. Likewise, if the encoder requires mono audio, it will compute
|
|
45
|
+
the mean of a stereo files.
|
|
47
46
|
|
|
48
47
|
# List of formats and their syntax
|
|
49
48
|
|
|
@@ -5,6 +5,26 @@ and [encoders](https://www.ffmpeg.org/ffmpeg-codecs.html), including private con
|
|
|
5
5
|
key/values, with values being of types: `string`, `int`, or `float`. If an option is not recognized (or: unused), it will raise an error
|
|
6
6
|
during the instantiation of the encoder. Here are some configuration examples:
|
|
7
7
|
|
|
8
|
+
### Interleaved muxing
|
|
9
|
+
|
|
10
|
+
FFmpeg provides two different APIs for muxing data, interleaved or not. The interleaved API buffers packets waiting to be
|
|
11
|
+
outputted to make sure that all streams, e.g. audio and video, have their packets as close to each other as possible. This
|
|
12
|
+
ensures that for instance, the stream does not start with a long chunk of audio data without any video content. However, this
|
|
13
|
+
can come with some increased memory usage due to buffering.
|
|
14
|
+
|
|
15
|
+
On the other hand, the non-interleaved API allows to send encoded packets directly to the output without intermediate buffering.
|
|
16
|
+
This can sometimes result in better latency and lower memory usage.
|
|
17
|
+
|
|
18
|
+
The `%ffmpeg` encoder can use either API. By default, it uses the interleaved API when encoding more than one stream. You can also
|
|
19
|
+
specify the interleaving mode by passing the `interleaved` parameter: `%ffmpeg(interleaved=<true|false|"default">, ...)`.
|
|
20
|
+
|
|
21
|
+
You might also want to take this into consideration when setting your encoder's parameters. Some video encoders can buffer frames for
|
|
22
|
+
a while before outputting the first encoded frame, which can also create issues even with the interleaved API enabled (the interleaving
|
|
23
|
+
buffer has a max size too!). Typically, with `libx264`, you can set `tune = "zerolatency"` to make sure that the encoder starts outputting
|
|
24
|
+
data right away.
|
|
25
|
+
|
|
26
|
+
### Encoding examples
|
|
27
|
+
|
|
8
28
|
- **AAC encoding at `22050kHz` using `fdk-aac` encoder and `mpegts` muxer**
|
|
9
29
|
|
|
10
30
|
```liquidsoap
|