Recherche avancée

Médias (91)

Autres articles (102)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (10871)

  • how to pass glob string to ffmpeg from a bash function ? [duplicate]

    20 novembre 2017, par Timothy W. Hilton

    This question already has an answer here :

    I’m trying to create an animation from a group of png
    files prefix_XXXX.png in a directory (where X is a digit 0-9). This creates the file foo.mp4 :

    ffmpeg -nostdin -r 2 -pattern_type glob  -i './prefix_*.png' -c:v libx264 -pix_fmt yuv420p foo.mp4

    I want to place my command in a bash function so I don’t have to
    dig all the ffmpeg args out of my bash history everytime. I suspect I’m
    not quoting the glob string correctly :

    function wrf_animate()  {
       # usage: wrf_animate files_to_animate_glob_string name_of_output.mp4
       echo "running in $PWD"
       echo " ==== "
       ls -lh $1
       echo " ==== "
       ffmpeg -nostdin -r 2 -pattern_type glob  -i "$1" -c:v libx264 -pix_fmt yuv420p $2
    }

    The echo and ls lines in the above function show I’m running in
    the right place and the args are making it in.

    $1, "$1", \’"$1"\’ all result in : "File ’prefix_0100.png’ already exists. Exiting."

    "\’$1\’" results in : \’prefix_0000.png\’ : No such file or directory

    \’$1\’ results in : ’prefix_0000.png’ : No such file or directory

  • Finding a string with AWK before or after an iteration of a repeated sequence

    9 novembre 2017, par dne202

    So I’ve got a text document that looks like this (truncated)

    [FRAME]
    pkt_pts_time=0.000000
    pict_type=I
    [/FRAME]
    [FRAME]
    pkt_pts_time=0.250250
    pict_type=B
    [/FRAME]
    [FRAME]
    pkt_pts_time=0.500500
    pict_type=P
    [/FRAME]
    [FRAME]
    pkt_pts_time=0.750750
    pict_type=B
    [/FRAME]
    [FRAME]
    pkt_pts_time=0.959292
    pict_type=I
    [/FRAME]

    This text was created with this command :

    ffprobe -select_streams v -show_frames -show_entries frame=pkt_pts_time,pict_type,frame_number -v quiet input.mp4

    As you can see, the [Frame] to [/Frame] sequence is repeated. So this is a way for me to count the frames and find which frame is an I frame. In each sequence the "pict_type=" value changes. I was wondering if there was a way for me to use AWK to input an iteration number and output the preceding pkt_pts_time value where the pict_type value equals I.

    For instance, if my frame number is 3. I would be able to enter the number 3 and the awk expression would go to the third [Frame] to [/Frame] sequence and then look back from there till it found a "pict_type=I" string. Then it would see that the pkt_pts_time for that sequence iteration was "pkt_pts_time=0.00000" and it would output 0.0000

  • String command for text-watermarking a video using FFmpeg in Android Studio

    11 octobre 2017, par djac

    Following is the ffmpeg function which accepts string command, coded in Android Studio. Can you give Sample/Reference string command for text-watermarking a video for this function (in Android Studio) ?

    For example :
    Input video file absolute path is "inputvideo".
    Watermark text is "stackoverflow".
    Output video file absolute path is "outputvideo".

    private void execFFmpegBinary(final String[] command) {
    try {
    ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
    @Override
    public void onFailure(String s) {
    Log.d(TAG, “FAILED with output : ” + s);
    }

    @Override
    public void onSuccess(String s) {
    Log.d(TAG, “SUCCESS with output : ” + s);
    //Perform action on success
    }
    }

    @Override
    public void onProgress(String s) {
    Log.d(TAG, “progress : ” + s);
    }

    @Override
    public void onStart() {
    Log.d(TAG, “Started command : ffmpeg ” + command);
    }

    @Override
    public void onFinish() {
    Log.d(TAG, “Finished command : ffmpeg ” + command);

    }
    });
    } catch (FFmpegCommandAlreadyRunningException e) {

    }
    }