Skip to content

Apache module to cut audiovisual files in real time

This module add the feature to Apache http server to cut audiovisual fragments by specific time. It use the MPEG-4 Part 12, ISO/IEC 14496-12:2022 definition to find the in and out position and server the fragment as new audiovisual file.

To install

You can get the module in /dedalo/install/http_modules/mod_h264_streaming-3.0.0 directory, get the correct version for your server platform, or compile it by your self.

Ubuntu/Debian

  1. Copy mod_dedalo_h264_streaming.so to modules:

    cp mod_dedalo_h264_streaming.so /usr/lib/apache2/modules/
    
  2. Copy dedalo_h264.load to apache2 config

    cp dedalo_h264.load /etc/apache2/mods-available/
    
  3. Activate it

        a2enmod dedalo_h264
    
  4. reload Apache

        systemctl restart apache2
    

Rocky/RedHat/Fedora

  1. Copy mod_dedalo_h264_streaming.so to modules:

    cp mod_dedalo_h264_streaming.so /usr/lib64/httpd/modules/
    
  2. Copy 00-dedaloh264.conf to httpd config

    cp dedalo_h264.load /etc/httpd/conf.modules.d
    
  3. Activate it

    systemctl restart httpd
    

To compile

  1. Install dependencies

    Ubuntu/Debian

    apt install apache2-devel
    

    Rocky/RedHat/Fedora

    dnf groupinstall "Development Tools"
    dnf install httpd-devel
    
  2. Compile and install

    cd ~/mod_h264_streaming-3.0.0
    ./configure
    make
    sudo make install
    

Note

OSX: Apple removed the apxs support in 10.13+ and it's necessary to compile it with the brew or other as:

./configure --with-apxs='/opt/homebrew/Cellar/httpd/2.4.57_1/bin/apxs'
make
sudo make install