Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (40)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • 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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (5885)

  • How to turn an AppleScript path into a posix path and pass to shell script ?

    18 mars 2017, par Björn

    I´m trying to create a textfile that my ffmpeg-command can use to merge two videofiles. The problem I´m having is getting my folder/file-paths to look like I want. The two lines that cause my problems are :

    set theFile to path to replay_folder & "ls.txt"

    I simply want this path to be the path of replay_folder and ls.txt

    In the shell script line I want the same thing.

    do shell script "cd " & replay_folder & "
       /usr/local/bin/ffmpeg -f concat -i ls.txt -c copy merged.mov"

    I get this path with the shell script Macintosh HD:Users:BjornFroberg:Documents:wirecast:Replay-2017-03-17-12_11-1489749062:

    But I want this /Users/BjornFroberg/Documents/wirecast/Replay-2017-03-17-12_11-1489749062/

    The full code is :

    tell application "Finder"
    set sorted_list to sort folders of folder ("Macintosh HD:Users:bjornfroberg:documents:wirecast:") by creation date
    set replay_folder to item -1 of sorted_list
    set replay_files to sort items of replay_folder by creation date
    end tell

    set nr4 to "file '" & name of item -4 of replay_files & "'"
    set nr3 to "file '" & name of item -3 of replay_files & "'"

    set theText to nr4 & return & nr3

    set overwriteExistingContent to true

    set theFile to path to replay_folder & "ls.txt" --actual path is: POSIX file "/Users/BjornFroberg/Documents/wirecast/Replay-2017-03-17-12_11-1489749062/ls.txt"

    set theOpenedFile to open for access file theFile with write permission

    if overwriteExistingContent is true then set eof of theOpenedFile to 0

    write theText to theOpenedFile starting at eof

    close access theOpenedFile

    do shell script "cd " & replay_folder & "
    /usr/local/bin/ffmpeg -f concat -i ls.txt -c copy merged.mov"

    Any help is appreciated :)

  • Passing shell variables containing spaces as arguments

    29 octobre 2014, par Julian Delphiki

    I know there are many of these questions out there already, but my situation is unique enough that none of them have helped me thus far.

    I’m writing a script that will reformat my (poorly tagged) music library. It’s currently in the form of Music/Genre/Artist/Album/##-Title.wav.

    From the Music directory, I run my script1, which calls find -name "*.wav" -exec script2 {} ${other_args}. Script2 parses the path to variables, creates the appropriate output directory if it doesn’t exist, and then calls ffmpeg to do the compression.

    ex : ($sourcefilepath contains {} from find)

    ffmpeg -i "$sourcefilepath" "$path/$to/$outfile.$extension"

    If my file name or path contains no spaces, it works like a charm.

    If it contains spaces, ffmpeg fails, with the following error :

    Blues/Country Blues/Rhythm, Country And Blues/08-Natalie Cole & Reba
    McEntire Since I Fell For You.wav : No such file or directory

    Note : that’s the source file it can’t find. The output file appears to be working correctly, even with spaces. That’s not the full command I’m running (it has some -metadata flags too, but that also appears to be working correctly. I’m debugging with the command I wrote above).

    The interesting thing here is that ffmpeg is NOT interpreting $sourcefilepath as two args, it just can’t find the file I specified. Running the following from the Music directory works.

    ffmpeg -i Blues/Country\ Blues/Rhythm\,\ Country\ And\ Blues/08-Natalie\ Cole\ \&\ Reba\ McEntire\ \ \ Since\ I\ Fell\ For\ You.wav output.flac

    I’m kind of stuck here. The other information on the web involves getting a command to see a variable with a space as one arg instead of multiple. I appear to have done that, but ffmpeg can’t find my file now.

    Normally I’d just use find -name "*.wav" -exec ffmpeg -i {} ${args} \; but I need to process the file path to extract my metadata.

    I’m fairly new to shell scripting ; does anybody know what’s going on here ?

  • build : Replace cltostr.pl by a shell script

    7 mai 2014, par Diego Biurrun
    build : Replace cltostr.pl by a shell script
    

    This avoids a dependency on Perl to build OpenCL support.

    • [DH] Makefile
    • [DH] configure
    • [DH] tools/cltostr.pl
    • [DH] tools/cltostr.sh