Recherche avancée

Médias (91)

Autres articles (107)

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

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

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

Sur d’autres sites (5251)

  • Filtering string for hidden character when read from file in bash [duplicate]

    19 mai 2021, par BharathYes

    I am writing a bash script to trim video file into small pieces and finally merge them into a single video file using ffmpeg based on specified time.

    


    #!/bin/bash

filename="$1"
linecount=`wc -l "${filename}.txt"`
echo -n "" > to-merge.list

# file split by time
count=0
IFS=''
while read -r fromTime ; read -r toTime; do
    echo "$fromTime and $toTime done"
    ffmpeg -i "${filename}.mp4" -ss $fromTime -to $toTime -c copy "${filename}_pt_${count}.mp4"
    echo "file '${filename}_pt_${count}.mp4'" >> to-merge.list
    count=$((count+1))
done < "${filename}.txt"

# file merge
`ffmpeg -f concat -safe 0 -i to-merge.list -c copy "${filename}-trimmed.mp4"`


    


    The input file contains time (odd lines are taken as start time and even as the end time). A file I use is :

    


    00:00:00
00:39:34
00:39:38
01:23:14
01:23:16
02:03:45
02:03:48
02:43:43


    



    


    problem faced

    


    The echo in while loop prints this : done02:03:45

    


    The overwriting makes me think the time stored in the variables must contain a special character at the end that makes it invalid in ffmpeg.
ffmpeg throws this error : Invalid duration specification for ss: 01:23:16

    


    Is there a way to cleanup the time variable ?

    


    I have tried to find what is causing this issue or how to get rid of it but drawing a blank.

    



    


    what I have tried so far

    


    use grep -Eo '[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}' to find time. While this works on the shell I am unable to use it in the script.

    


    Tried splitting time by : into hour, min and sec and saving them into an array to then merge them back but this makes it unnecessarily complicated and error prone.

    


    PS :
Is while read to be preferred for reading multiple lines like here or should tools like sed be used for best practice ? Such as sed '2,4 !d' /tmp/test.txt ?

    


  • Anomalie #4360 (Nouveau) : Message d’erreur au début de l’installation d’un site web SPIP par spip...

    13 juillet 2019, par Vincent ROBERT

    Sur Xampp avec Apache 2.4.39 (Win64) & PHP 7.2.19
    En initiant une nouvelle installation avec spiploader, j’ai le message d’erreur suivant :

    "Warning : Use of undefined constant _DIR_TMP - assumed ’_DIR_TMP’ (this will throw an Error in a future version of PHP) in C :\xampp\htdocs\news-test\pclzip.php on line 28"

    Ce message apparaît juste avant le début de l’installation, sur la page "Téléchargement de SPIP - !Le programme va télécharger les fichiers de SPIP à l’intérieur de ce répertoire."

  • Anomalie #2910 : Erreur 404 après redirection après message forum ds un site avec URLs arbo.

    8 janvier 2013, par Joachim SENE

    intéressant : avec URLs Propres+.html le forum fonctionne mais les URLs sont parfois correctes -Titre-article.html parfois non ?page=article&id_article=17 ce qui fait que malgré ça, dans les 2 cas la redirection après validation du message de forum est ok … mais ce n’est pas satisfaisant du pt de (...)