Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (52)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

Sur d’autres sites (5588)

  • How does CMP pass comparison value to the next line in a bash script ?

    22 août 2015, par Tandy Freeman

    I want to compare the output of two framemd5 (decoded md5 of every video frame) digests.
    http://stackoverflow.com/a/12736416/2188572

    The cmp script works perfectly for me.
    I know next to nothing about coding, so I want to educate myself on what’s happening, and I can’t figure out from SO or googling.

    It seems like the script should require more input from me, like I should have to stipulate(apologies for awful pseudo code)

    cmp file1 file 2
    if cmp produces a difference;then
    else

    It seems that just entering "if cmp file1 file 2" automatically produced the equivalent of a YES or NO and stores that info for the then, else etc ?

  • Script - split video file in equivalent segments

    4 octobre 2014, par Code_Ed_Student

    I am currently using ffmpeg to slice video files. I automated the process through a script called ffmpeg_split.sh. To view the full script click HERE.
    When I ran this script on a few .mp4 files I had, it would return nothing :

    __DURATION_HMS=$(ffmpeg -i "$__FILE" 2>&1 | grep Duration | \
       grep '\d\d:\d\d:\d\d.\d\d' -o)

    NOTE : This is line #54.

    So without this value, the calls that come after it to the function parse_duration_info() are returning the error message.

    According to the comments in the original script, there should be 2 arguments to parse_duration_info().

    # arg1: duration in format 01:23:45.67
    # arg2: offset for group 1 gives hours, 2 gives minutes,
    #       3 gives seconds, 4 gives milliseconds

    Here is the syntax to slice a video with script : ffmpeg_split.sh -s test_vid.mp4 -o video-part%03d.mp4 -c 00:00:08

    Belowe is where I parse the duration :

    function parse_duration_info() {
       if [[ $1 ]] && [[ $2 -gt 0 ]] && [[ $2 -lt 5 ]] ; then
           __OFFSET=$2
           __DURATION_PATTERN='\([0-9][0-9]\):\([0-9][0-9]\):\([0-9][0-9]\)\.\([0-9][0-9]\)'
           echo "$1" | sed "s/$__DURATION_PATTERN/\\$__OFFSET/"
       else
           echo "Bad input to parse_duration_info()"
           echo "Givven duration $1"
           echo "Givven offset $2"
           echo "Exiting..."
           exit 1
       fi
    }
  • syntax error near unexpected token `do' in bash script

    11 mai 2016, par Avi

    I have bash script which takes 3 parameters from the command line. It compares all of the files in the directory to see if they are of the type of the first 2 parameters. If they are, the script converts such files to the type of the third parameter using an FFMPEG command. I would execute the script with the following command :

    ./convert.sh .avi .mp4 .flv

    That this, this script would convert all of the .avi and .mp4 files to .flv.

    When I run the script, I get the error

    syntax error near unexpected token `do' in bash script.

    Here is the code :

    #!/bin/bash

    # $1 is the first parameter passed
    # $2 is the second parameter passed
    # $3 is the third parameter passed

    for file in *.*;
       do
           #comparing the file types in the directory to the first 2 parameters passed
           if[  ( ${file: -4} == "$1" ) || ( ${file: -4 } == "$2" )  ]{
               export extension=${file: -4}
               #converting such files to the type of the first parameter using the FFMPEG comand
               do ffmpeg -i "$file" "${file%.extension}"$3;
    done