Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (112)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (11450)

  • avformat/aaxdec : Check string before strcmp()

    23 octobre 2020, par Michael Niedermayer
    avformat/aaxdec : Check string before strcmp()
    

    Fixes : NULL ptr dereference
    Fixes : 26508/clusterfuzz-testcase-minimized-ffmpeg_dem_AAX_fuzzer-5694725249826816

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/aaxdec.c
  • Revert "avutil/timecode : fix sscanf format string with garbage at the end"

    16 janvier 2021, par Marton Balint
    Revert "avutil/timecode : fix sscanf format string with garbage at the end"
    

    This reverts commit 6696a07ac62bfec49dd488510a719367918b9f7a.

    It is wrong to restrict timecodes to always contain leading zeros or for hours
    or frames to be 2 chars only.

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavutil/timecode.c
  • 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.

    &#xA;

    #!/bin/bash&#xA;&#xA;filename="$1"&#xA;linecount=`wc -l "${filename}.txt"`&#xA;echo -n "" > to-merge.list&#xA;&#xA;# file split by time&#xA;count=0&#xA;IFS=&#x27;&#x27;&#xA;while read -r fromTime ; read -r toTime; do&#xA;    echo "$fromTime and $toTime done"&#xA;    ffmpeg -i "${filename}.mp4" -ss $fromTime -to $toTime -c copy "${filename}_pt_${count}.mp4"&#xA;    echo "file &#x27;${filename}_pt_${count}.mp4&#x27;" >> to-merge.list&#xA;    count=$((count&#x2B;1))&#xA;done &lt; "${filename}.txt"&#xA;&#xA;# file merge&#xA;`ffmpeg -f concat -safe 0 -i to-merge.list -c copy "${filename}-trimmed.mp4"`&#xA;

    &#xA;

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

    &#xA;

    00:00:00&#xA;00:39:34&#xA;00:39:38&#xA;01:23:14&#xA;01:23:16&#xA;02:03:45&#xA;02:03:48&#xA;02:43:43&#xA;

    &#xA;


    &#xA;

    problem faced

    &#xA;

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

    &#xA;

    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.&#xA;ffmpeg throws this error : Invalid duration specification for ss: 01:23:16

    &#xA;

    Is there a way to cleanup the time variable ?

    &#xA;

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

    &#xA;


    &#xA;

    what I have tried so far

    &#xA;

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

    &#xA;

    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.

    &#xA;

    PS :&#xA;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 &#x27;2,4 !d&#x27; /tmp/test.txt ?

    &#xA;