Skip to content

Instantly share code, notes, and snippets.

@stanfea
stanfea / normalize.php
Created October 9, 2023 07:30
Ffmpeg code to normalize 3 mp3s together
<?php
require 'vendor/autoload.php';
$opener="intro.mp3";
$closer="outro.mp3";
$audioFile = "final.mp3";
$bookSummaryFile="summary.mp3";
$ffprobe = FFMpeg\FFProbe::create();
$openerDuration = $ffprobe->format($opener)->get('duration');
$summaryDuration = $ffprobe->format($bookSummaryFile)->get('duration');
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"os"
"github.com/bradfitz/gomemcache/memcache"
from cefpython3 import cefpython
import threading, time
import os
import sys
settings = {
"log_severity": cefpython.LOGSEVERITY_INFO, # LOGSEVERITY_VERBOSE
#"log_file": GetApplicationPath("debug.log"), # Set to "" to disable.
"release_dcheck_enabled": True, # Enable only when debugging.