Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (60)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (8087)

  • ffmpeg - when scaling, how to keep shapes of people's heads

    19 janvier 2017, par Dave

    Ok, I’m quite familiar with FFMPEG utility in general, and have used it for
    years to cut short snippets from videos, etc. But it’s only in the last
    month that and I decided to learn to use it to transcode with video-filters
    etc. (Before that, I was using other tools such as ’Handbrake’ and ’FreeMake’
    and VLC, etc.)

    For my ffmpeg transcodes, my target output resolution will always be constant, from one transcode run to the next. But the resolution and display aspect-ratio of the input file, from one transcode run to the next, will vary...could be almost any values.
    The input files will never already have black-bars when displayed.

    So, the relevant portion [ i.e. the video-filter(s) part) of my cmd line ] presently is as follows :

    ffmpeg ... -vf "scale=720:406,setsar=1,pad=720:506:0:40:Black" ...

    Also note : I do NOT use the "-aspect" option in the cmd-line. (Maybe I’ll
    need to (???) to solve my issue, but I’m unsure about how that interacts
    with scaling.)

    ( EDIT : Oh, I happen to have chosen that resolution value of 720x406, for
    the image-area (i.e. inside the top/bottom black bars) because it
    has an aspect ratio of 16:9 (Of course, 16:9 ratio is common these days. )

    My cmd always executes cleanly and produces an output file (a WebM, tho I doubt
    that container types and/or vcodec choices matter at all to scaling algorithm issues).

    So the issue/problem that I’m trying to solve is how to prevent any stretching
    in either direction. In other words, a round soccer ball in the input file
    must yield a round ball in the output file ! (NOT oval-shaped in either axis).

    ( Edit #2 : Oh, I forgot to mention that I’m not have the same amount of stretching from one ffmpeg output file to the next. Sometimes there is
    no stretch in my output file, and with some other input file, the
    people are too tall in the output, and some other output file will have
    people are too wide. I’m assuming
    there is some single cmd that will always work for each randomly sized
    input file, WITHOUT having to resort to examining meta-data of each
    input and then having to adjust portions of the needed ffmpeg cmd.
    I assume this because I have used a tool called "FreeMake" that needs
    no such adjustment. When you do a ’scale’ with that program, it asks
    you to choose one of four adjustment-algorithms labeled "original"
    "stretched", "zoom..." and "auto". If I recall correctly, it was the
    "auto" choice that prevented any stretching.)

    The goal of that last filter (i.e. the "pad=720:506:0:40:Black" phrase) is to
    add a black bar of 40 pixels to the top and 60 pixels to the bottom.
    (That filter IS producing the black-bands, as desired. I mention it,
    because I’m unsure whether it could be having any effect on the altered
    shape of the ’round soccer ball’). If the "pad" filter IS part of the
    issue, then maybe I’ll need to make multiple ffmpeg cmds to achieve
    my overall goal (!?!?). [I’d LIKE to be able to do everything in just
    one ffmpeg cmd, as shown.]

    OK ?

    So are there any image-processing and ffmpeg gurus out there that
    know how to fix my problem ?

    TIA...

    Dave

  • fate : add swr-convertaudio test

    17 octobre 2016, par Muhammad Faiz
    fate : add swr-convertaudio test
    

    test for flt to s16
    should pass on correct rounding to nearest

    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] tests/fate/libswresample.mak
  • Batch script for creating QCTools reports

    26 décembre 2019, par avfool

    I’m new here and new to bash scripting and have been having trouble with a script to do batch QCTools reports using ffprobe. Hoping someone can tell me what I’m getting wrong.

    I’ve been using ffmpovisr for help with creating scripts for transcoding folders full of video files. I’ve been successful with this and now would really like to generate QCTools reports for all the video files in a folder as well.

    I’m starting with this command line, which I use to run transcodes :

    for file in *.mov ; do ffmpeg -i "$file" -map 0 -dn -c:v ffv1 -level 3 -g 1 -slicecrc 1 -slices 16 -c:a copy "$file%.mov.mkv" ; done

    I’m trying to modify it to include the QCTools report command line which is :

    ffprobe -f lavfi -i "movie=input_file:s=v+a[in0][in1], [in0]signalstats=stat=tout+vrep+brng, cropdetect=reset=1:round=1, idet=half_life=1, split[a][b] ;[a]field=top[a1] ;[b]field=bottom, split[b1][b2] ;[a1][b1]psnr[c1] ;[c1][b2]ssim[out0] ;[in1]ebur128=metadata=1, astats=metadata=1:reset=1:length=0.4[out1]" -show_frames -show_versions -of xml=x=1:q=1 -noprivate | gzip > input_file.qctools.xml.gz

    What I’ve ended up with looks like this :

    for file in *.mov ; do ffprobe -f lavfi -i "movie="$file":s=v+a[in0][in1], [in0]signalstats=stat=tout+vrep+brng, cropdetect=reset=1:round=1, idet=half_life=1, split[a][b] ;[a]field=top[a1] ;[b]field=bottom, split[b1][b2] ;[a1][b1]psnr[c1] ;[c1][b2]ssim[out0] ;[in1]ebur128=metadata=1, astats=metadata=1:reset=1:length=0.4[out1]" -show_frames -show_versions -of xml=x=1:q=1 -noprivate | gzip > “$file%.mov.qctools.xml.gz” ; done

    I’ve messed around with various parts of this to try to get it to work and I just can’t figure out where the problem is. Any suggestions would be greatly appreciated !