Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (109)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (11082)

  • How to encode mp4 so that Apple devices can stream VP9 encoded Videos via fmp4 HLS ? [closed]

    13 mai 2024, par Leon S

    The question is in the title...

    


    I have not figured it out, obviously Youtube has achieved that, but how could i do it in my own app so that i can effectively stream vp9 encoded content in my app.

    


    Would be great to get a solution, maybe some ffmpeg settings or something like that ?
I know that it is officially not supported, but everywhere i look they say that it is still possible, and even "quite easy", e.g. here : https://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=133907

    


    Trief multiple fmp4 encodings so far for vp9 but neither my app player nor safari play the videos, even though VLC and co do.

    


  • Evolution #3450 : déporter apple-touch-icon.png et autres variantes vers le plugin favicon

    5 février 2021

    Pour info, le projet Favicon est maintenant sur github (sic)
    https://github.com/tetue/favicon

  • Script doesnt recognize bars / length right for cutting audio , ffmpeg terminal

    14 avril 2024, par totzillarbeats

    This terminal script doesn't recognize bars / length right for cutting audio, maybe somebody knows what's wrong with the calculation ...

    


    Would be happy about any help the cutting already works !

    


    #!/bin/bash

# Function to extract BPM from filename

get_bpm() {
    local filename="$1"
    local bpm=$(echo "$filename" | grep -oE '[0-9]{1,3}' | head -n1)
    echo "$bpm"
}

# Function to cut audio based on BPM
cut_audio() {
    local input_file="$1"
    local bpm="$2"
    local output_file="${input_file%.*}_cut.${input_file##*.}" # Appends "_cut" to original filename

    # Define the number of beats per bar (assuming 4 beats per bar)
    beats_per_bar=4

    # Calculate the duration of each bar in seconds
    bar_duration=$((60 * beats_per_bar / bpm))

    # Define start and end times for each bar range
    start_times=(0 21 33 45 57 69 81 93 105 117 129 141)
    end_times=(20 29 41 53 65 77 89 101 113 125 137 149)

    # Iterate through each bar range
    for ((i = 0; i < ${#start_times[@]}; i++)); do
        start_time=${start_times[$i]}
        end_time=${end_times[$i]}
        echo "Cutting audio file $input_file at $bpm BPM for bar $((i + 1)) ($start_time-$end_time) for $bar_duration seconds..."

        # Cut audio for current bar range using ffmpeg
        ffmpeg -i "$input_file" -ss "$start_time" -to "$end_time" -c copy "$output_file"_"$((i + 1)).${input_file##*.}" -y
    done

    # Check if the output files are empty and delete them if so
    for output_file in "${output_file}"_*; do
        if [ ! -s "$output_file" ]; then
            echo "Output file $output_file is empty. Deleting..."
            rm "$output_file"
        fi
    done

    echo "Audio cut and saved as $output_file"
}


# Main script
if [ "$#" -eq 0 ]; then
    echo "Usage: $0 [audio_file1] [audio_file2] ..."
    exit 1
fi

for file in "$@"; do
    bpm=$(get_bpm "$file")
    if [ -z "$bpm" ]; then
        echo "Error: No BPM found in filename $file"
    else
        cut_audio "$file" "$bpm"
    fi
done


    


    Maybe its only the math calc in the beginning but idk :)

    


    If you need more details just lmk