Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (57)

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

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

  • 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

Sur d’autres sites (5919)

  • avcodec/pgssubdec : fix end display time

    18 juin 2014, par John Stebbins
    avcodec/pgssubdec : fix end display time
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/pgssubdec.c
  • Print the userlist with time log

    19 janvier 2015, par Merlin Sundar

    I have two bash scripts. One which parallelises the other script with accompanied parameters(userlist:10,20,100...),Images :1,2,3..,Image sizes :320x240,640x480...,Virtual machines :1,2,3,4. etc. in a loop and
    the other script that has the executables and a counter for time(this is run in a loop).
    the first script s run on my localhost , after which the directory is changed and the rest is run on the remote server. Technically the entire second script is in the server and begins with the time counter and executables like ffmped, sr.out code. etc.
    Now i want the time log to also have the Userlist printed on it along side(which is so that computation gets easy after running the tests after 8-10 hours. I have written a line in the script but it instead runs the no. of times the user is and then prints time like

    this is 1
    0.20
    this is 50
    this is 50
    this is 50
    this is 50
    this is 50
    this is 50....(50 times) then the time...
    2.98
    3.49(50 entries

    While all I want is

    This is 1
    0.24
    This is 50
    2.41
    3.43
    5.64...(50 entries)
    This is 100
    2.40(100 entries)

    How to do it ?

    here are the two codes.
    First code this runs on my end

    #!/bin/bash    

    # Variables are declared:    

    #50 100 200 300 400 500 600 700 800 900 1000    

    #FList=("input/flower1.jpg" "input/flower2.jpg" "input/flower3.jpg" "input/flower4.jpg")    

    #IList=("320X240"           "640X480"           "1280X960"          "1920X1200")    

    NList=(1 10 20)    

    # FList and IList have been aligned exactly below each other so that the variable "index"      

    # takes the order of each file and its corresponding size    

    FList=("input/flower2.jpg")  

    IList=("640X480")        

    SList=(2)          
    for (( index=0; $index &lt; ${#FList[@]}; index++ )) do    

       echo "$index"        

       file=${FList[$index]}          

       image_size=${IList[$index]}        

       width=`echo $image_size|cut -d "X" -f1`        

       height=`echo $image_size|cut -d "X" -f2`        

       for scale_factor in ${SList[@]}; do          

               for users in ${NList[@]}; do          

                   echo "V: $VM, " "F: $file, " "S: $scale_factor, " "I: $width $height , " "N: $users"    

               for i in `seq 1 $users` ; do    

                   echo $users    

                   cd ~/Documents/Merlin_testing/    

                   echo This is $users exp >>out_put/Time_log.txt    

                   sh sr_run_once.sh $file $width $height $scale_factor &amp;    

               done    
               wait
           done # for users            
       done # for scale_factor
    done # for index

    exit 0

    second script : runs on server

    #!/bin/bash

    output_file=out_put/Time_log.txt


    START=$(date +%s.%N)

    echo PID=$$

    #argumets : input_file.jpg width height scale_factor  

    ./ffmpeg -i $1  -s $2x$3 -pix_fmt yuv420p in_$$.yuv

       if (($? > 0)); then

    #       echo $? >$output_file

    #       printf '%s\n' 'Failure in first ffmpeg' > $output_file

           exit 1

       fi

    ./OUT_SR.out in_$$.yuv out_sr_$$.yuv  $2  $3 $4

    w=$(($2 * $4));

    h=$(($3 * $4));

    #   if (($? > 0)); then

    #       printf '%s\n' 'Failure in SR.out' >$output_file

    #       exit 1

    #   fi

    ./ffmpeg -s ${w}x${h} -pix_fmt yuv420p -i out_sr_$$.yuv out_put/out_sr_$$.jpg



    #   if (($? > 0)); then

    #       printf '%s\n' 'Failure in last ffmpeg' >$output_file

    #               exit 1

    #   fi

    rm -rf out_put/*.yuv

    rm -rf *.yuv

    rm -rf out_put/*.jpg

    END=$(date +%s.%N)

    DIFF=$(echo "$END - $START" | bc)

    echo "this is  $DIFF" | tee -a $output_file

    exit 0
  • matroskaenc : Also validate chapter end time

    9 mars 2015, par Vittorio Giovara
    matroskaenc : Also validate chapter end time
    

    This prevents it to be written as unsigned. Also add an error message.

    CC : libav-stable@libav.org
    Bug-Id : CID 1265717

    • [DH] libavformat/matroskaenc.c