Recherche avancée

Médias (1)

Mot : - Tags -/livre électronique

Autres articles (82)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (6030)

  • How to get dimension and aspect ratio of input video and pass it as param to another input in the same command ?

    2 mars 2020, par theapache64

    I’ve a mp4 file. I want to create an input color feed with same dimension and sample aspect ratio. Currently, I use ffprobe to get dimension and sar as a separate command and pass it to ffmpeg command manually.

    ffmpeg -y
    -i input.mp4
    -i bgm.mp3
    -f lavfi -i color=c=black :s="1280"x"544":sar=1299/1280:d=3.0
    -filter_complex ...

    Is there any way to get dimension and sar of first input video to -f lavfi -i color.

    Something like

    -f lavfi -i color=c=black:s="widthOfFirstVideo"x"heightOfFirstVideo":sar=sarOfFirstVideo:d=3.0

  • Convert video using ffmpeg for watermark creation with multiple text

    19 septembre 2016, par Iura Gaitur

    I want to convert a video using FFMPEG and place a watermark with multiple texts on it. Combining the commands for placing a text and a watermark is :

    ffmpeg -i input_1.mp4 -i watermark_small.png -filter_complex "[0]overlay=10:10; [1]drawtext=enable='between(t,0,12)':fontfile=font.ttf:text='Some text' : fontcolor=black: fontsize=18: box=1: boxcolor=yellow@0.5:boxborderw=5: x=(w-text_w)/1.15:y=30, drawtext=enable='between(t,14,22)':fontfile=font.ttf:text='Next text' : fontcolor=black: fontsize=18: box=1: boxcolor=yellow@0.5:boxborderw=5: x=(w-text_w)/1.15:y=30" -codec:v libx264 -preset ultrafast output1.mp4

    Unfortunately this command puts the watermark and the first text but not the next text. I assume the problem is on -filter_complex setting. Unfortunately I don’t know how to set it in the right way in order to work. Could someone help me and say what needs to be changed in this command in order to convert it in the right way ?

  • My filters seem to be applied in wrong order

    4 septembre 2020, par Jao

    I'm using ffmpeg to join frames into a video with some parameters.
Here is a sample of the commands I run :

    


    


    "ffmpeg -y -r 24 -f image2 -i "C :\Users\Pictures\me\frame%04d.bmp" -filter_complex "[0:v]select=between(n,0,76)[selected] ;[selected]crop=in_w:in_h-60-60:0:60[cropped] ;[cropped]scale=w=2ceil(2048.0/20.5):h=2ceil(858.0 /20.5) " -c:v libx264 -q:v 1 -b:v 2M "C :\Users\me\Video\output.mp4""

    


    


    When I run this command I have calculated the size of my cropping on the frames to remove black rectangles at the top and bottom of the frame (I tried using cropdetect but it doesn't fit my usecase so I'm using another soft).So my first that was that ffmpeg would crop on the input stream so it would only crop my black rectangles. But when I change my scale it crops a part of the image.

    


    So my understanding is that ffmpeg crops after scaling (maybe I'm wrong) and if I get the crop parameters on the input images it is sure the they will be wrong if I apply them on the scaled video.

    


    I tried using " ;" and "," to separate my filters. I tried naming and not naming my streams between filters. Nothing seems to solve my issue.

    


    What could I do to fix that or am I understanding the issue incorrectely ?
Thanks in advance