Recherche avancée

Médias (91)

Autres articles (105)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (13884)

  • Using ffmpeg with frei0r on windows 10. Can't find module from frei0r

    21 février 2023, par Denis

    I am trying to add a filter to my video using ffmpeg and frei0r filters on windows 10. ffmpeg.exe is located in the system32 folder. ffmpeg works fine on other tasks. As soon as I try to add the frei0r filter, I get an error :

    


    Could not find module 'glow'.
Error initializing filter 'frei0r' with args 'glow:20'


    


    I downloaded the frei0r dll files from the official site and placed them in the system32 folder, and then placed them in another folder. Additionally, I registered the path :

    


    set FREI0R_PATH=C:\WINDOWS\system32\frei0r-1


    


    In cmd I enter the following command :

    


    ffmpeg -loglevel debug -i 1.mp4 -vf "frei0r=glow:20" -t 10 1out.mp4


    


    help me

    


    I tried everything I saw online and nothing helped.

    


  • how to write subcommand to FFPLAY during playback using subprocess module ?

    4 mars 2023, par ChienMouille

    I'm trying to pause a video playback started with FFPLAY through a python subprocess. You can do this manually by pressing the "p" key on the keyboard while the video is playing. I'd like to emulate this behavior through a python call.

    


    I'm now sending a "p" string, encoded as bytes, through the stdin of the Popen call. The video starts and I can pause it with the keyboard but the communicate command doesn't seem to do anything.

    


    import subprocess
import time

proc = subprocess.Popen(['ffplay', 'PATH_TO_'],
                        stdin=subprocess.PIPE,
                        stdout=subprocess.PIPE,
                        )
time.sleep(2) # just waiting to make sure playback has started
proc.communicate(input="p".encode())[0]



    


    Thanks in advance !

    


  • TypeError at /api/v1/file/86370b91-8e25-4833-bbc6-a4b833363893/ 'module' object is not callable

    16 avril 2023, par Olyx

    Please help me, I'm writing a patch request that should change the video resolution, but I can't get the file back from celery
views.py

    


    def patch(self, request, id = None):
    file = File.objects.get(id = id)
    width =  request.data.get('width')
    height = request.data.get('height')
    file.width = width
    file.height = height 
   
    file.video = change_video_extension.delay(file.video.path, width, height).get()
    file.save()
    return Response({'width':width, 'height':height})


    


    tasks.py

    


    import os
from demo.celery import app

@app.task(name = "change_video_extension")
def change_video_extension(input_file, width, height):
    output_file = "abc123.mp4"
    os.system(f"ffmpeg -i {input_file} -s {width}x{height} {output_file}")
    return output_file


    


    TypeError

    


    TypeError at /api/v1/file/86370b91-8e25-4833-bbc6-a4b833363893/
'module' object is not callable
Request Method : PATCH
Request URL : http://127.0.0.1:8000/api/v1/file/86370b91-8e25-4833-bbc6-a4b833363893/
Django Version : 4.2
Exception Type : TypeError
Exception Value :
    
'module' object is not callable