Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (49)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (4581)

  • Anomalie #2612 (Nouveau) : Forum public sur objet éditorial

    24 mars 2012, par Teddy Payet

    Un peu dans la même lignée que http://core.spip.org/issues/2542 On a une référence à un objet précis et non à un objet générique. On reste "limiter" sur article, breves et sites. http://zone.spip.org/trac/spip-zone/browser/_core_/plugins/forum/formulaires/activer_forums_objet.php#L17 Ce qui fait que (...)

  • Anomalie #3452 (Nouveau) : L’image jointe à un message de forum n’est pas prise en charge (bug SPI...

    18 mai 2015, par Pascal Verrier

    Bonjour,

    Depuis la MAJ toute récente de SPIP 3.0.19 je constate que l’image jointe à un message de forum n’est plus affichée après enregistrement du message.

    Le document est cependant bien créé dans la médiathèque mais n’est plus associé au forum.

    J’ai identifié le code responsable, dans plugins-dist/medias/action/editer_document.php lignes 260 à 267 : il s’agit d’un ajout depuis la 3.0.17 (ajout du même type également quelques lignes plus haut L252 avec "dissocierdocuments") :

       // verifier les droits d'associer<br />    foreach($objets_parents as $objet=>$ids){<br />        foreach($ids as $k=>$id){<br />            if (!autoriser('associerdocuments',$objet,$id)){<br />                unset($objets_parents[$objet][$k]);<br />            }<br />        }<br />    }<br />

    L’utilisateur courant devrait donc avoir le droit "associerdocuments" pour que l’image soit associée au forum. Or je suis connecté en tant que webmestre. Notez que par ailleurs notre forum peut également être utilisé par des "visiteurs" qui peuvent également joindre des images.

    En supprimant ce code l’image est de nouveau prise en charge normalement.

  • ffmpeg command exports flac with wrong 'length' metadata, works fine for mp3

    21 juillet 2023, par Martin

    I have some audio recorded in Audacity 3.2.3 that I have exported as an mp3 and a flac. Then I have this file split_by_silence.sh

    &#xA;

    Which has hardcoded input path values that take an input file, split it by detecting silence, and then finally run an ffmpeg command to split the files. If you save the below code into a file split.sh, you can call it with the command $ ./split_by_silence.sh "value1" "value2"

    &#xA;

    # ./split_by_silence.sh "full_lowq.flac" %03d_output.flac&#xA;#IN=$1&#xA;#OUT=$2&#xA;&#xA;OUT="%03d_output.flac"&#xA;IN="/mnt/e/martinradio/rips/vinyl/WIP/Dogs On Fire (1983, Vinyl)/dog on fire.flac"&#xA;OUTPUT_LOCATION="/mnt/e/martinradio/rips/vinyl/WIP/Dogs On Fire (1983, Vinyl)/"&#xA;&#xA;true ${SD_PARAMS:="-18dB"};&#xA;true ${MIN_FRAGMENT_DURATION:="20"};&#xA;export MIN_FRAGMENT_DURATION&#xA;if [ -z "$OUT" ]; then&#xA;    echo "Usage: split_by_silence.sh full.mp3 output_template_%03d.mp3"&#xA;    echo "Depends on FFmpeg, Bash, Awk, Perl 5. Not tested on Mac or Windows."&#xA;    echo ""&#xA;    echo "Environment variables (with their current values):"&#xA;    echo "    SD_PARAMS=$SD_PARAMS       Parameters for FFmpeg&#x27;s silencedetect filter: noise tolerance and minimal silence duration"&#xA;    echo "    MIN_FRAGMENT_DURATION=$MIN_FRAGMENT_DURATION    Minimal fragment duration"&#xA;    exit 1&#xA;fi&#xA;#&#xA;# get comma separated list of split points (use ffmpeg to determine points where audio is at SD_PARAMS [-18db] )&#xA;#&#xA;&#xA;echo "_______________________"&#xA;echo "Determining split points..." >&amp; 2&#xA;SPLITS=$(&#xA;    ffmpeg -v warning -i "$IN" -af silencedetect="$SD_PARAMS",ametadata=mode=print:file=-:key=lavfi.silence_start -vn -sn  -f s16le  -y /dev/null \&#xA;    | grep lavfi.silence_start= \&#xA;    | cut -f 2-2 -d= \&#xA;    | perl -ne &#x27;&#xA;        our $prev;&#xA;        INIT { $prev = 0.0; }&#xA;        chomp;&#xA;        if (($_ - $prev) >= $ENV{MIN_FRAGMENT_DURATION}) {&#xA;            print "$_,";&#xA;            $prev = $_;&#xA;        }&#xA;    &#x27; \&#xA;    | sed &#x27;s!,$!!&#x27;&#xA;)&#xA;echo "SPLITS= $SPLITS"&#xA;&#xA;#&#xA;# Add 5 seconds to each of the comma separated numbers&#xA;#&#xA;# Convert the comma-separated string into an array&#xA;arr=($(echo $SPLITS | tr &#x27;,&#x27; &#x27;\n&#x27;))&#xA;# Initialize a new array to store the results&#xA;new_arr=()&#xA;# Iterate through each element and add 5 seconds of padding&#xA;for i in "${arr[@]}"; do&#xA;  result=$(echo "$i &#x2B; 5" | bc -l)&#xA;  new_arr&#x2B;=("$result")&#xA;done&#xA;# Convert the array back into a comma-separated string&#xA;NEW_SPLITS=$(IFS=,; echo "${new_arr[*]}")&#xA;# Print the result&#xA;echo "NEW_SPLITS= $NEW_SPLITS"&#xA;SPLITS=$NEW_SPLITS&#xA;&#xA;#&#xA;# Print how many tracks should be exported&#xA;#&#xA;res="${SPLITS//[^,]}"&#xA;CHARCOUNT="${#res}"&#xA;num=$((CHARCOUNT &#x2B; 2))&#xA;echo "Exporting $num tracks"&#xA;echo "_______________________"&#xA;&#xA;#&#xA;# Split audio into individual tracks&#xA;#&#xA;current_directory=$(pwd)&#xA;&#xA;cd "$OUTPUT_LOCATION"&#xA;&#xA;echo "Running ffmpeg command: "&#xA;&#xA;ffmpeg -i "$IN" -c copy -map 0 -f segment -segment_times "$SPLITS" "$OUT"&#xA;#ffmpeg -i "full_lowq.flac" -c copy -map 0 -f segment -segment_times "302.825,552.017" "%03d_output.flac"&#xA;&#xA;&#xA;echo "Done."&#xA;&#xA;cd $current_directory&#xA;&#xA;echo "running flac command"&#xA;# check flac file intrgrity&#xA;

    &#xA;

    If I call this code for my flac file :

    &#xA;

    OUT="%03d_output.flac"&#xA;IN="/mnt/e/martinradio/rips/vinyl/WIP/Dogs On Fire (1983, Vinyl)/dog on fire.flac"&#xA;

    &#xA;

    The outputted files have an incorrect metadata for the length. They all report as having the same length, but if i import any of them into audacity, the file has a correct length.

    &#xA;

    enter image description here

    &#xA;

    but if i run this for my mp3 file, we can see the correct length metadata :

    &#xA;

    OUT="%03d_output.mp3"&#xA;IN="/mnt/e/martinradio/rips/vinyl/WIP/Dogs On Fire (1983, Vinyl)/dogs on fire.mp3"&#xA;

    &#xA;

    enter image description here

    &#xA;

    So there is something with my ffmpeg command that causes it to export flac files with wrong 'length' metadata

    &#xA;

    ffmpeg -i "$IN" -c copy -map 0 -f segment -segment_times "$SPLITS" "$OUT"&#xA;&#xA;

    &#xA;

    I've tried with the flac example to change -c copy to -c:a flac, but that just gives every output flac file a length of 00:00:00

    &#xA;

    is it a problem with my ffmpeg command ? Or my files ? https://file.io/tIFsa1l70076&#xA;it works for mp3 files just fine, why does it have this issue with flac ?

    &#xA;