Recherche avancée

Médias (0)

Mot : - Tags -/masques

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (82)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (9568)

  • Filter complex with split source and multiple overlays : Can my code be simplified ?

    29 juin 2024, par Patrick Hennessey

    I've created a complex split filter that splits a single 1372 x 1372 input source into multiple uniquely shaped and cropped slices (s1, s2, etc), and overlays them on a padded background plate into a single output. It also applies a 20fps target framerate on the last overlay step.

    


    It works exactly how I want, but I'm wondering if this code is inefficient or redundant in any way :

    


    ffmpeg -i test.mp4 -filter_complex "[0:v]split=5[s1][s2][s3][s4][s5];
[s1]scale=377:377,crop=360:360:2:2,pad=1920:1080:1560:720[bg];
[s2]crop=1372:1068:0:0[s2];[bg][s2]overlay=0:0[bg];
[s3]crop=460:308:0:1064[s3];[bg][s3]overlay=1372:0[bg];
[s4]crop=460:308:456:1064[s4];[bg][s4]overlay=1372:308[bg];
[s5]crop=460:308:912:1064[s5];[bg][s5]overlay=1372:616,fps=20" output.mp4


    


    Is there a more elegant way to achieve the same result ?

    


  • 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 !

    


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