Recherche avancée

Médias (91)

Autres articles (39)

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

  • Normalise video aspect ratio with ffmpeg

    4 juillet 2022, par Benjamin Tamasi

    I'm parsing a video stream from an application that receives an h264 stream and writes it to a file. (The frame data is an unencrypted depacketized H.264 elementary stream).

    


    I use ffmpeg to resize it to a fixed resolution. (I overlay it on a black canvas with -f lavfi -i color=c=black:s=1920x1080:r=30) and -filter_complex [1][0]scale2ref=w='if(gt(mdar\,dar),iw,oh*mdar)':h='if(gt(mdar\,dar),ow/mdar,ih)'[2mp4][base];[base][2mp4]overlay=x='(W-w)/2':y='(H-h)/2':eof_action=pass[vout]

    


    My issue is, that since this stream is coming from a phone's camera, whenever the orientation of the phone changes, the stream's aspect ratio changes. It can go from portrait to landscape, and back, in the same stream. When I open the file in vlc, it handles it quite nicely by resizing the window of the player to match the aspect ratio as it changes.

    


    How can I "normalise" the video, so it's always nicely overlayed on my black canvas as the aspect ratio changes ? Currently it's just using the initial aspect ratio, and if that changes mid stream, it will ignore the change, effectively distorting the stream by squishing or stretching it.

    


    Is there some way I can get ffmpeg to do this ?

    


  • ffmpeg combine existing filter_complex with upscaleto e.g. 720p

    24 novembre 2019, par Tom Meyer

    Currently I am combining two videos using this filter :

    -filter_complex "[1:v][0:v]scale2ref=main_w:ih[sec][pri]; [sec]setsar=1,drawbox=c=black:t=fill[sec];[pri][sec]hstack[canvas]; [canvas][1:v]overlay=main_w-overlay_w"

    The output is the following : test.png (Green is the first video input, orange the second one) The whole video (red) has a format of 1600x540 (That might change depending on the input sizes.)

    My question is whether there is a way to upscale this video to maybe 1920x1080 or 1280x720 in the same command. By upscaling I mean to change its size and to fittingly insert black bars on the side/top.

  • FFMPEG no audio in final output [migrated]

    16 juin 2015, par Maverick

    I have the following FFMPEG command working.

    ffmpeg -y -i slide.mp4 -f lavfi -i "color=c=black:s=1920x1080:r=25:d=1" -filter_complex "[0:v] setpts=PTS-STARTPTS [main]; \
    [1:v] trim=end=3,setpts=PTS-STARTPTS [pre]; \
    [1:v] trim=end=3,setpts=PTS-STARTPTS [post]; \
    [pre][main][post] concat=n=3:v=1:a=0 [out]" -map "[out]" output.mp4

    It appends black frames at the start and end of the video. However, the output file does not contain the audio from the input file.

    Any pointers to the problem will be highly appreciated.