Recherche avancée

Médias (91)

Autres articles (74)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (8935)

  • How to determine WxH of video using ffprobe java android studio

    15 février 2021, par sara bensarghin

    I'm trying to concatenate two videos on Android. I would like to know how to work with ffprobe to determine WxH of the first video and scaling the second video to the resolution of the first video.

    


            a(new String[]{"-y",
                        "-ss",
                        String.valueOf(this.m),
                        "-t",
                        String.valueOf(this.a),
                        "-i",
                        (String) FileUtils.myUri.get(0),
                        "-ss",
                        String.valueOf(this.n),
                        "-t",
                        String.valueOf(this.b),
                        "-i",
                        (String) FileUtils.myUri.get(1),
                        "-strict",
                        "experimental",
                        "-filter_complex",
                        "[0:v]scale=320x240," +
                                "setsar=1:1[v0];[1:v]scale=320x240,setsar=1:1[v1];[v0][v1] concat=n=2:v=1",
                        "-ab",
                        "48000",
                        "-ac",
                        "2",
                        "-ar",
                        "22050",
                        "-s",
                        "320x240",
                        "-r",
                        "15",
                        "-b",
                        "2097k",
                        "-vcodec",
                        "mpeg4",
                        this.d},
                this.d);
    }



    


  • Determine if FFmpeg ran successfully [duplicate]

    31 janvier 2021, par Spedwards

    I have a script I've been using to transcode videos from h264 to h265 in order to preserve space. A lot of manual effort is required to go through and delete the larger files (not always the h264 version). If I was able to determine whether or not FFmpeg finished successfully, I'd be able to save myself a lot of time.

    


    I'll cut out a lot of stuff that's not relevant to the question but below you'll find my script.

    


    function transcode() {
    output=$(echo "$1" | sed -r 's/^(.+)(\.\w{3})$/\1.h265\2/g');
    ffmpeg # a lot of options (including -hide_banner and -loglevel panic)
    echo "$output";
}

RESET=$(tput sgr0);
YELLOW=$(tput setaf 3);
CYAN=$(tput setaf 6);

for f in *.mp4; do
    original=$(stat -c %s "$f");
    echo "${YELLOW}Transcoding file: ${CYAN}$f${RESET}";
    new_file_name=$(transcode "$f");
    new_file_size=$(stat -c %s "$new_file_name");
    if [[ "$new_file_size" -gt "$original" ]]; then
        rm "$new_file_name";
    fi
    echo "";
done;


    


    Ideally, I'd like to delete the original source file if the transcoded file is smaller and FFmpeg ran successfully. Unfortunately due to various reasons FFmpeg can fail while transcoding.

    


    I have seen a few questions asking similar stuff but implementing it is just going over my head. I can't really be creating text files with the output either (though I guess that can be cleaned up as it goes).

    


    Any help would be greatly appreciated.

    


  • ffmpeg how to determine the size of the image and stretch the video to fit it ?

    11 décembre 2020, par Артем

    I want to automatically detect the size of the image and stretch the video to fit it.
    
I have images of different sizes.
    
There is a video with a green background one size.
    
I remove the chromakey and overlay the image.
    
But I have a problem, my video is of a different size.
    
Me need to automatically expand or contract it to the size of the image.

    


    @echo off
setlocal EnableDelayedExpansion
color a
set a=Your_files\*.jpg
set aa=Your_files\*.mp4
set b="Result\%%~na.mp4"
set c=ffmpeg
set f=-filter_complex "[1:v]chromakey=0x00D700:0.1:0.3[ckout];[0:v][ckout]overlay=(W-w)/1:(H-h)/1[o]" -map [o] -map 1:a -c:a copy
for %%s in (%aa%) do !set aud="%%s"!
for %%a in (%a%) do (%c% -y -i "%%a" -i %aud% %f% %b%)
exit


    


    Help me please

    


    Bad idea.. Images can be of different formats. (there will be distortion)

    


    


    Me only one thing comes to my mind.
    
Separately resize the image.
    
Separately resize the video.
    
And then work with them...