Recherche avancée

Médias (91)

Autres articles (75)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (8761)

  • avformat/utils : Move the reference to the packet list

    20 septembre 2019, par Andreas Rheinhardt
    avformat/utils : Move the reference to the packet list
    

    Up until now, ff_packet_list_put had a flaw : When it moved a packet to
    the list (meaning, when it ought to move the reference to the packet
    list instead of creating a new one via av_packet_ref), it did not reset
    the original packet, confusing the ownership of the data in the packet.
    This has been done because some callers of this function were not
    compatible with resetting the packet.

    This commit changes these callers and fixes this flaw. In order to
    indicate that the ownership of the packet has moved to the packet list,
    pointers to constant AVPackets are used whenever the target of the
    pointer might already be owned by the packet list.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavformat/utils.c
  • Looping 2 videos simultaneously until audio file ends in FFMPEG

    20 septembre 2022, par Fin Cottle

    I'm very new to ffmpeg, learning quickly but struggling to find a solution to the following.

    &#xA;

    I would like to be able to loop 2 videos until the end of an extra audio file.&#xA;One of the videos will be a base & the other will be an overlay of 50% opacity on top of the base.

    &#xA;

    I've got the gist of how to execute these within other operations (e.g. the 50% opacity, or the looping of a single video until the end of an audio file, these don't need to be answered here), but the looping of both videos until the end of the separate audio is proving challenging.

    &#xA;

    Here's where I've got so far :

    &#xA;

    ffmpeg -stream_loop -1 -i base.mp4 -i overlay.mp4 -i audio.mp3 -filter_complex "[0:v]setpts=PTS-STARTPTS[top]; [1:v]setpts=PTS-STARTPTS, format=yuva420p,colorchannelmixer=aa=0.5[bottom]; [top][bottom]overlay=shortest=1[v1]" -map "[v1]" -map 2:a -vcodec libx264 -y out.mp4&#xA;

    &#xA;

    This loops the base until the end of the overlay, but then freezes the base & overlay until the end of the audio (as the audio is longer).

    &#xA;

    One solution may be to loop v1 until the end of the audio ? How would I go about this ?

    &#xA;

    Either way, no matter the length of either video, the final output should be the length of the audio.

    &#xA;

    My implementation could be pretty messy as my attempts are all amalgamations of internet answers & research without knowing the full meaning of each param, so please let me know if anything is wrong.

    &#xA;

    Thanks in advance.

    &#xA;

  • Piping input AND output of ffmpeg in python

    5 mars 2019, par bluesummers

    I’m using ffmpeg to create a video, from a list of base64 encoded images that I pipe into ffmpeg.

    Outputting to a file (using the attached code below) works perfectly, but what I would like to achieve is to get the output to a Python variable instead - meaning piping input and piping output but I can’t seem to get it to work

    My current code :

    output = os.path.join(screenshots_dir, 'video1.mp4')

    cmd_out = ['ffmpeg',
              '-y',  # (optional) overwrite output file if it exists
              '-f', 'image2pipe',
              '-vcodec', 'png',
              '-r', str(fps),  # frames per second
              '-i', '-',  # The input comes from a pipe
              '-vcodec', 'png',
              '-qscale', '0',
              output]

    pipe = sp.Popen(cmd_out, stdin=sp.PIPE)

    for screenshot in screenshot_list:
       im = Image.open(BytesIO(base64.b64decode(screenshot)))
       im.save(pipe.stdin, 'PNG')

    pipe.stdin.close()
    pipe.wait()

    This results in a working mp4, but I would like to avoid saving to local.

    Running the same code with changing output to '-' or 'pipe:1' and adding stdout=sp.PIPE results in an error

    [NULL @ 0x2236000] Unable to find a suitable output format for ’pipe :’