Recherche avancée

Médias (0)

Mot : - Tags -/page unique

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

Autres articles (39)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

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

  • Revision df38196453 : [spatial svc] Remove encoding modes since we only need one mode at this time. C

    25 juin 2014, par Minghai Shang

    Changed Paths :
     Modify /examples/vp9_spatial_svc_encoder.c


     Modify /test/svc_test.cc


     Modify /vpx/src/svc_encodeframe.c


     Modify /vpx/svc_context.h



    [spatial svc] Remove encoding modes since we only need one mode at this time.

    Change-Id : I1b6ed2e82a7e3e8a9e790bf29d667a3f856a9518

  • 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
  • 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 < ${#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 &    

               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