10 Commits

Author SHA1 Message Date
Andrea Bondavalli
466f6b4fc4 First import of HTTP Streamer functionality in the daemon used to receive AES67 audio streams via HTTP file streaming.
The HTTP Streamer can be enabled via the _streamer_enabled_ daemon parameter.
When the Streamer is active the daemon starts capturing the configured _Sinks_ up to the maximum number of channels configured by the _streamer_channels_ parameters.

The captured PCM samples are split into _streamer_files_num_ files of _streamer_file_duration_ duration (in seconds) for each sink, compressed using AAC LC codec and served via HTTP.

The HTTP streamer requires the libfaac-dev package to compile.

Please note that since the HTTP Streamer uses the RAVENNA ALSA device for capturing it's not possible to use such device for other audio captures.
2024-07-06 17:27:49 +02:00
Andrea Bondavalli
c68d53c9bc Added documentation about effects of CPU scaling events on daemon streams and patched daemon test scripts to disable CPU scaling 2022-11-17 21:51:05 +01:00
Andrea Bondavalli
1c11e7d212 Fix for issue #84 2022-05-25 17:34:22 +02:00
Andrea Bondavalli
dbb593120a Enhancement of daemon reconfiguration and PTP status update notification via shell script. See #82
The daemon can apply a configuration change to the following parameters without a restart:
    sap_interval, syslog_proto, syslog_server, log_severity, sample_rate

The daemon can apply a configuration change to the following parameters without a light restart:
    http_port, rtsp_port, http_base_dir, rtp_mcast_base, sap_mcast_addr, rtp_port, rtp_port, status_file, interface_name, mdns_enabled

A light restart means that the configuration can be applied without interrupting the playback/capture applications

A change to one of following paramters causes a full daemon restart:
    interface_name, tic_frame_size_at_1fs, max_tic_frame_size

On PTP status change the daemon can run in background an external shell script whose path name is specified by the new ptp_status_script Config parameter.
If this parameter is empty, no script is invoked. The PTP clock status is passed as first parameter to the script and it can be unlocked, locking or locked.
A sample script is provided in daemon/scripts/ptp_status.sh
2022-05-19 19:04:26 +02:00
Andrea Bondavalli
6a025c1e7a Modified sample scripts sample rate to daemon default, that is 48Khz 2020-06-04 09:24:42 -07:00
Andrea Bondavalli
c8f437950a Use the ALSA HW plug name instead of the HW device id in all the scripts using the ALSA device 2020-02-06 10:19:15 -08:00
Andrea Bondavalli
a9ad806c12 A single multicast address is used for PTP traffic. 2020-02-03 17:26:50 +01:00
Andrea Bondavalli
0c32e8e698 Added handling of multicast membership for PTP messages.
Limited PTP domain value to the range 0 - 127.
2020-02-02 07:12:36 -08:00
Andrea Bondavalli
d1d7299545 Added script to stop PulseAudio, this uses and keeps busy the ALSA playback and capture devices causing troubles.
Added termination of PulseAudio during the demo.
2020-01-29 18:51:40 +01:00
Andrea Bondavalli
259e99afbc First import 2020-01-28 20:16:30 +01:00