Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (52)

  • 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 ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

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

  • Tailing a logfile and processing each line is missing data when converting a file with ffmpeg

    8 avril 2014, par Chris.D

    I am running a script to tail a log file as per the code snippet below. I am running into a problem where by the line passed into $line is missing a number amount of bytes from the beginning when several lines are written to the log file at nearly the same time.

    I can check the file afterwards and see that the offending line is complete in the file so why is it incomplete in the script. Some kind of buffering issue perhaps ?

    The processing can sometimes take several seconds to complete would that make a difference ?

    #!/bin/bash
    tail -F /var/log/mylog.log | while read line
    do
      log "$line"
      ffmpeg -i "from.wav" "to.mp3"
    done

    Full line in file

    "12","","765467657","56753763","test"

    example logged $line

    657","56753763","test"

    Update
    I have done some more debugging of my code and it seems the processing that is causing the problem is a call to ffmpeg used to convert a wav to mp3. If I swap that with just a sleep then the problem goes away. Could ffmpeg effect the buffer somehow ?

  • Tailing a logfile and processing each line is missing data when converting a file with ffmpeg

    1er août 2018, par Chris.D

    I am running a script to tail a log file as per the code snippet below. I am running into a problem where by the line passed into $line is missing a number amount of bytes from the beginning when several lines are written to the log file at nearly the same time.

    I can check the file afterwards and see that the offending line is complete in the file so why is it incomplete in the script. Some kind of buffering issue perhaps ?

    The processing can sometimes take several seconds to complete would that make a difference ?

    #!/bin/bash
    tail -F /var/log/mylog.log | while read line
    do
      log "$line"
      ffmpeg -i "from.wav" "to.mp3"
    done

    Full line in file

    "12","","765467657","56753763","test"

    example logged $line

    657","56753763","test"

    Update
    I have done some more debugging of my code and it seems the processing that is causing the problem is a call to ffmpeg used to convert a wav to mp3. If I swap that with just a sleep then the problem goes away. Could ffmpeg effect the buffer somehow ?

  • BASH deletes the first letter from line (ffmpeg) [duplicate]

    21 mars 2020, par LubieCiastka

    Input :

    # cat list
    video1.mp4
    video2.mp4
    video3.mp4
    video4.mp4

    My script :

    #!/bin/bash

    while IFS= read -r line || [[ -n "$line" ]]; do
     echo $line
     ffmpeg -i $line -c copy -bsf:v h264_mp4toannexb -f mpegts $line.ts
     echo $line

    done < "./list";

    rm *.ts

    Every second iterations, bash reads "ideo2.mp4" instead of "video2.mp4" or "ideo4.mp4" instead of "video4.mp4"

    FULL output

    + IFS=
    + read -r line
    + echo video1.mp4
    video1.mp4
    + ffmpeg -i video1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts video1.mp4.ts
    ...
    + echo video1.mp4
    video1.mp4
    + IFS=
    + read -r line
    + echo ideo2.mp4
    ideo2.mp4
    + ffmpeg -i ideo2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts ideo2.mp4.ts
    ...
    ideo2.mp4: No such file or directory
    + echo ideo2.mp4
    ideo2.mp4
    + IFS=
    + read -r line
    + echo video3.mp4
    video3.mp4
    + ffmpeg -i video3.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts video3.mp4.ts
    ...
    + echo video3.mp4
    video3.mp4
    + IFS=
    + read -r line
    + echo ideo4.mp4
    ideo4.mp4
    + ffmpeg -i ideo4.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts ideo4.mp4.ts
    ...
    ideo4.mp4: No such file or directory
    + echo ideo4.mp4
    ideo4.mp4

    When I comment line "ffmpg..." everything works fine.
    Testing on local Ubuntu (bash 4.4.20(1)-release) and on VPS (debian) (bash 4.4.12(1))
    What is going on ?