Recherche avancée

Médias (1)

Mot : - Tags -/livre électronique

Autres articles (66)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • 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 (...)

Sur d’autres sites (10879)

  • Bash Script to get info from ffprobe

    14 novembre 2016, par Alan

    I am trying to create a script to process videos, but I was hoping to get bit_rate, width, and height info from the incoming files so I could better tune the output. The script works when I do the files one at a time, but when I put it into a loop all of a sudden I don’t get any info.

    So this works :

    #!/bin/bash
    eval $(ffprobe -v quiet -show_format -of flat=s=_ -show_entries stream=height,width,nb_frames,duration,codec_name input.mp4);
    width=${streams_stream_0_width};
    height=${streams_stream_0_height};
    bitrate=$((${format_bit_rate}/1000));
    echo $width,$height,$bitrate;

    This doesn’t when executed from find ./ -type f -regex ".*\.\(mkv\|mp4\|wmv\|flv\|webm\|mov\|avi\)" -print0 | xargs -0 /root/newbatch.sh

    for i; do
    eval '$(ffprobe -v quiet -show_format -of flat=s=_ -show_entries stream=height,width,nb_frames,duration,codec_name $i)';
    width=${streams_stream_0_width};
    height=${streams_stream_0_height};
    bitrate=${format_bit_rate};
    kbitrate=$((bitrate/1000));
    echo $i,$width,$height,$kbitrate;

    done

    I also get an error with the math of bitrate in the loop, but even when I comment it out I still get no results. Since it works one at a time, I am assuming the problem is a bash scripting and nothing to do with ffmpeg / ffprobe.

    That being said, I can do this :

    echo $i,$width,$height,$bitrate;

    and get back

    ./file1.mkv,,,
    ./file2.mkv,,,
    ./file3.mkv,,,
    ./file4.mkv,,,

    So it does get some info back, but it loses the info from the eval statement.

  • Converting stereo file to mono but preserving peak and RMS loudness

    14 juin 2020, par user319249

    I am converting stereo audio files to mono using ffmpeg.

    



    ffmpeg -i $1 -ac 1 -ab 192k mono_$1


    



    However, after conversion, the RMS and peak loudness levels are not the same.

    



    Tests-iMac:auditions test$ ./rms.sh mono_test.mp3 
 mean_volume: -20.1 dB
 max_volume: -0.2 dB
 Peak level dB: -0.150201
 RMS level dB: -20.138039
 RMS peak dB: -10.650649
 RMS trough dB: -94.923318
 Flat factor: 0.000000
 Peak count: 2.000000
 Bit depth: 32/32
 Number of samples: 5800320
 Number of NaNs: 0.000000
 Number of Infs: 0.000000
 Number of denormals: 0.000000
Tests-iMac:auditions test$ ./rms.sh test.mp3 
 mean_volume: -22.9 dB
 max_volume: -2.9 dB
 Peak level dB: -2.896314
 RMS level dB: -22.883812
 RMS peak dB: -13.397327
 RMS trough dB: -95.943631
 Flat factor: 0.000000
 Peak count: 2.000000
 Bit depth: 32/32
 Number of samples: 5800320
 Number of NaNs: 0.000000
 Number of Infs: 0.000000
 Number of denormals: 0.000000


    



    The first ouput is the mono file which is technically louder than the stereo file, listed second. How can I preserve the peak and RMS values while also converting to mono ? I have no issue scripting in order to obtain the stereo loudness values to pass to the mono conversion process.

    



    Thanks !

    


  • Anomalie #4579 (Nouveau) : Deprecated en php 8 à la création d’un article

    19 octobre 2020, par Franck D

    Hello :)

    Easyphp
    Apache 2.4.43 x64
    PHP 8.0.0 beta 1 x64
    MySQL 8.0.20 x64
    Firefox 81.0.2
    Windows 10 (1909)

    J’ai fait la création d’une rubrique, puis après avoir fait un clique pour la création d’un article, j’ai un Deprecated qui apparait au dessus du champ "titre de l’article"
    Deprecated : Required parameter $do follows optional parameter $idem in C :\...\ecrire\inc\chercher_rubrique.php on line 282