Recherche avancée

Médias (91)

Autres articles (98)

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

  • python - tqdm progress bar on ffmpeg process with avs pipe

    9 octobre 2019, par MeSo2

    I am trying to implement a tqdm progress bar, but have no idea on how to do this when calling ffmpeg with check_output. (Most of the commands are set inside the avs file.)

    from subprocess import check_output
    check_output("ffmpeg -i \"temp_AVS.avs\" -c:v libx264 -b:v 25M -c:a aac 1.mp4", shell=True)

    I cam across this Can ffmpeg show a progress bar ? but nothing hints on how to best implement it with my code.

    I also found this related post How to link the ffmpeg transcoding process information into a vb6 GUI app ?, and it look like I just need to call for the ffmpeg output. But I am note sure how to do that.

  • Pipe opencv images to ffmpeg using python

    9 décembre 2015, par jlarsch

    How can I pipe openCV images to ffmpeg (running ffmpeg as a subprocess) ?
    (I am using spyder/anaconda)

    I am reading frames from a video file and do some processing on each frame.

    import cv2  
    cap = cv2.VideoCapture(self.avi_path)
    img = cap.read()
    gray = cv2.cvtColor(img[1], cv2.COLOR_BGR2GRAY)
    bgDiv=gray/vidMed #background division

    then, to pipe the processed frame to ffmpeg, I found this command in a related question :

    sys.stdout.write( bgDiv.tostring() )

    next, I am trying to run ffmpeg as a subprocess :

    cmd='ffmpeg.exe -f rawvideo -pix_fmt gray -s 2048x2048 -r 30 -i - -an -f avi -r 30 foo.avi'
    sp.call(cmd,shell=True)

    (this also from the mentioned post)
    However, this fills my IPython console with cryptic hieroglyphs and then crashes it. any advice ?

    ultimately, I would like to pipe out 4 streams and have ffmpeg encode those 4 streams in parallel.

  • Pipe opencv images to ffmpeg using python

    16 avril 2022, par jlarsch

    How can I pipe openCV images to ffmpeg (running ffmpeg as a subprocess) ?
(I am using spyder/anaconda)

    



    I am reading frames from a video file and do some processing on each frame.

    



    import cv2   
cap = cv2.VideoCapture(self.avi_path)
img = cap.read()
gray = cv2.cvtColor(img[1], cv2.COLOR_BGR2GRAY)
bgDiv=gray/vidMed #background division


    



    then, to pipe the processed frame to ffmpeg, I found this command in a related question :

    



    sys.stdout.write( bgDiv.tostring() )


    



    next, I am trying to run ffmpeg as a subprocess :

    



    cmd='ffmpeg.exe -f rawvideo -pix_fmt gray -s 2048x2048 -r 30 -i - -an -f avi -r 30 foo.avi'
sp.call(cmd,shell=True)


    



    (this also from the mentioned post)
However, this fills my IPython console with cryptic hieroglyphs and then crashes it. any advice ?

    



    ultimately, I would like to pipe out 4 streams and have ffmpeg encode those 4 streams in parallel.