Recherche avancée

Médias (91)

Autres articles (112)

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

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (13623)

  • Input seeking for frame at specified timestamp with Py-AV

    9 décembre 2019, par neonScarecrow

    I have a project already using Py-AV and am trying to replicate a specific ffmpeg command. The goal is to get a frame roughly around the specified timestamp.

    Here’s the ffmpeg commmand :
    https://trac.ffmpeg.org/wiki/Seeking

    ffmpeg -ss 14 -i https://some_url.mp4 -frames:v 1 frame_at_14_seconds.jpg

    Here’s my code :

       #return one frame around 14 seconds into the movie
       target_sec = 14
       container = av.open('https://some_url.mp4', 'r')
       container.streams.video[0].thread_type = 'AUTO'
       video_stream = next(s for s in container.streams if s.type == 'video')
       time_base = float(video_stream.time_base)
       target_timestamp = int(target_sec / time_base) + video_stream.start_time
       video_stream.seek(target_timestamp)
       for frame in container.decode(video_stream):
           frame.to_image().save('frame_at_14_seconds.jpg')
           break

    Additionally, I have found any documentation about this, but does anyone know if either command (ffmpeg/av.open) is downloading the entire file to a tmp file behind the scenes. I’m looking for a less memory-intensive way to read a frame for every second in an up to 60 second video.

  • avformat/matroskaenc : Allow to use custom reformatting functions

    15 janvier 2022, par Andreas Rheinhardt
    avformat/matroskaenc : Allow to use custom reformatting functions
    

    Matroska uses variable-length elements and in order not to waste
    bytes on length fields, the length of the data to write needs to
    be known before writing the length field. Annex B H.264/5 and
    WavPack need to be reformatted to know this length and this
    currently involves writing the data into temporary buffers ;
    AV1 sometimes suffers from this as well.

    This commit aims to solve this by adding a callback that is called
    twice per packet : Once to get the size and once to actually write
    the data. In case of WavPack and AV1 (where parsing is cheap due
    to length fields) both calls will just parse the data with only
    the second function writing anything. For H.264/5, the position
    of the NALUs will need to be stored to be written lateron.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/matroskaenc.c
  • FFmpeg Drawbox Errors ?

    12 mars 2021, par Alex Gurr

    Using ffmpeg version 4.3.2.

    &#xA;

    Command :

    &#xA;

    ffmpeg -y&#xA;&#xA;  -i /usr/src/app/backgrounds/pink-blue.jpg&#xA;  -i files/fuzzy-octopus-5/path/file.webm&#xA;  -i files/fuzzy-octopus-5/path/file.webm&#xA;  -i /usr/src/app/logo.png&#xA;  -filter_complex "&#xA;    [0]drawbox=x=-140:y=(((H-th)/2) - 205):w=840:h=490:color=white@0.2:t=fill,&#xA;       drawbox=x=770:y=(((H-th)/2) - 205):w=840:h=490:color=white@0.2:t=fill[bg]; &#xA;    ...&#xA;

    &#xA;

    However I am getting the following errors ?

    &#xA;

    Error while processing the decoded data for stream #3:0&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error reinitializing filters!&#xA;[Parsed_drawbox_0 @ 0x564a87058e80] Failed to configure input pad on Parsed_drawbox_0&#xA;[Parsed_drawbox_0 @ 0x564a87058e80] Error when evaluating the expression &#x27;(((H-th)/2) - 205)&#x27;.&#xA;Last message repeated 5 times&#xA;[Parsed_drawbox_0 @ 0x564a87058e80] [Eval @ 0x7ffcf25dc650] Undefined constant or missing &#x27;(&#x27; in &#x27;H-th)/2)-205)&#x27;&#xA;

    &#xA;

    I have the right amount of brackets and this definitely works on my local machine (macOS). It's only throwing this error in our deployed AWS EC2 linux instance.

    &#xA;

    Any ideas ? Thanks !

    &#xA;

    Update : Tried replacing th with h but get the same error

    &#xA;