Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (46)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (4323)

  • Bash Script using formatted date string in FFMPEG command

    30 juin 2024, par coco

    In my bash (zsh) script, I am receiving a string that represents a Unix epoch, like :

    


    myTimestamp="1719742786"


    


    I want to change that date into a formatted string, and then store it in a variable so it can be used in an upcoming ffmpeg script. I'm doing it this way :

    


    theDate=$(date -u -r "$myTimestamp" "+%b %d, %H:%M:%S")
echo "$theDate"


    


    which prints to my screen what I want :

    


    Jun 30, 06:19:48


    


    but when I try to use this variable in my ffmpeg script, I get errors :

    


    ffmpeg -y -i "$file" -vf \
        "drawtext=text='$theDate':fontcolor=gray:fontsize=$fontSize:x=$width:y=$height:" \
        "$output"


    


    Note that if I change out '$theDate' in the script (to something like '$myTimestamp'), I do not get errors.

    


    What I do get, along with Error initializing filters, is this (possibly important ?) error :

    


    


    Both text and text file provided. Please provide only one

    


    


  • Zsh script using formatted date string in FFMPEG command [closed]

    1er juillet 2024, par coco

    In my zsh script, I am receiving a string that represents a Unix epoch, like :

    


    myTimestamp="1719742786"


    


    I want to change that date into a formatted string, and then store it in a variable so it can be used in an upcoming ffmpeg script. I'm doing it this way :

    


    theDate=$(date -u -r "$myTimestamp" "+%b %d, %H:%M:%S")
echo "$theDate"


    


    which prints to my screen what I want :

    


    Jun 30, 06:19:48


    


    but when I try to use this variable in my ffmpeg script, I get errors :

    


    ffmpeg -y -i "$file" -vf \
        "drawtext=text='$theDate':fontcolor=gray:fontsize=$fontSize:x=$width:y=$height:" \
        "$output"


    


    Note that if I change out '$theDate' in the script (to something like '$myTimestamp'), I do not get errors.

    


    What I do get, along with Error initializing filters, is this (possibly important ?) error :

    


    


    Both text and text file provided. Please provide only one

    


    


    Note I am on MacOS v14.5. The man date mentions The date utility is expected to be compatible with IEEE Std 1003.2 (“POSIX.2”).  With the exception of the -u option, all options are extensions to the standard.

    


    My full script :

    


    #!/bin/zsh
outDir="printed"
width=200
height=650
fontSize=95

for file in initial/*.png; do
    filename=$(basename "$file")
    prefix="${filename%.*}"
    theDate=$(date -u -r "$prefix" "+%b %d, %H:%M:%S")
    output="$outDir/$filename"

    echo "$theDate"

    ffmpeg -y -i "$file" -vf \
    "drawtext=text='$theDate':fontcolor=gray:fontsize=$fontSize:x=$width:y=$height:" \
       "$output"

done
exit


    


  • lavc/qsvenc : add support for oneVPL string API

    29 février 2024, par Mandava, Mounika
    lavc/qsvenc : add support for oneVPL string API
    

    A new option -qsv_params <str> is added, where <str> is a :-separated
    list of key=value parameters.

    Example :
    $ ffmpeg -y -f lavfi -i testsrc -vf "format=nv12" -c:v h264_qsv -qsv_params
    "TargetUsage=1:GopPicSize=30:GopRefDist=2:TargetKbps=5000" -f null -

    Signed-off-by : Mounika Mandava <mounika.mandava@intel.com>
    Signed-off-by : Haihao Xiang <haihao.xiang@intel.com>

    • [DH] Changelog
    • [DH] configure
    • [DH] doc/encoders.texi
    • [DH] libavcodec/qsvenc.c
    • [DH] libavcodec/qsvenc.h