Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (75)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • 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

Sur d’autres sites (14855)

  • Revision 17548 : make sure we don’t ignore the last line of a srt file it if does not ...

    20 octobre 2010, par oggk — Log

    make sure we don’t ignore the last line of a srt file it if does not
    end with a newline ; also move some code in a separate function now
    that it is used from two places. OKd by j.

  • How to pass command line arguments to FFMpeg in iOS

    23 septembre 2014, par Arif Nadeem

    This is a beginner question, since I am new to iOS(I started it today), so please pardon my ignorance and lack of iOS knowledge.

    After building and successfully using FFMpeg for Android I wanted to do the same for iOS.
    So I built FFMpeg successfully for iOS by following this link, but after all that pain I am confused as how to use FFMpeg in iOS, I mean how can I pass command line arguments to libffmpeg.a file ?

    I am assuming that there must be a way to run the .a file as an executable and then pass command line arguments and hope for FFMpeg to do the magic, I did the same in Android and it worked beautifully.

    I am also aware that I can use ffmpeg.c class and use its main method, but the question remains ; how do I pass those command line arguments ?

    Is there something I am supposed to be aware of here, is the thing what I am doing now correct or am I falling short on my approach ?

    I wanted to mix two audio files, so the command for doing that would be ffmpeg -i firstSound.wav -i secondSound.wav -filter_complex amix=inputs=2:duration=longest finalOutput.wav, how do I do the same in iOS ?

    Can someone please shed some light on this ?

  • While loop in bash to read a file skips first 2 characters of THIRD Line

    9 juillet 2018, par Yaser Sakkaf
    #bin/bash
    INPUT_DIR="$1"
    INPUT_VIDEO="$2"
    OUTPUT_PATH="$3"
    SOURCE="$4"
    DATE="$5"

    INPUT="$INPUT_DIR/sorted_result.txt"
    COUNT=1
    initial=00:00:00
    while IFS= read -r line; do
     OUT_DIR=$OUTPUT_PATH/$COUNT
     mkdir "$OUT_DIR"
     ffmpeg -nostdin -i $INPUT_VIDEO -vcodec h264 -vf fps=25 -ss $initial -to $line $OUT_DIR/$COUNT.avi
     ffmpeg -i $OUT_DIR/$COUNT.avi -acodec pcm_s16le -ar 16000 -ac 1 $OUT_DIR/$COUNT.wav
     python3.6 /home/Video_Audio_Chunks_1.py $OUT_DIR/$COUNT.wav
     python /home/transcribe.py  --decoder beam --cuda --source $SOURCE --date $DATE --video $OUT_DIR/$COUNT.avi --out_dir "$OUT_DIR"
     COUNT=$((COUNT + 1))
     echo "--------------------------------------------------"
     echo $initial
     echo $line
     echo "--------------------------------------------------"
     initial=$line
    done < "$INPUT"

    This is the code I am working on.
    The contents of file sorted_results.txt are as follows :

    00:6:59
    00:7:55
    00:8:39
    00:19:17
    00:27:48
    00:43:27

    While reading the file it skips first two characters of the third line i.e. it takes it as :8:39 which results in the ffmpeg error and the script stops.

    However when I only print the variables $INITIAL and $LINE, commenting the ffmpeg command the values are printed correctly i.e. same as the file contents.

    I think the ffmpeg command is somehow affecting the file reading process or the variable value. BUT I CAN’T UNDERSTAND HOW ?

    PLEASE HELP.