Recherche avancée

Médias (91)

Autres articles (108)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (9492)

  • avcodec/svq3 : Print unknown fields at debug level

    2 mai 2015, par Michael Niedermayer
    avcodec/svq3 : Print unknown fields at debug level
    

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

    • [DH] libavcodec/svq3.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
  • avplay : Do not print a possibly uninitialized value

    28 avril 2015, par Luca Barbato
    avplay : Do not print a possibly uninitialized value
    

    Initialize `diff` to 0.

    Signed-off-by : Luca Barbato <lu_zero@gentoo.org>

    • [DH] avplay.c