Recherche avancée

Médias (0)

Mot : - Tags -/serveur

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (18)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (2635)

  • Stream mp4 file with watermark through a web using ffmpeg

    24 mars 2023, par Jose A. Matarán

    I'm having problems with ffmpeg, probably due to my inexperience with this software.

    &#xA;

    My basic need is the following : I have a series of videos with material that I want to protect so that it is not plagiarized. For this I want to add a watermark so that when a user views it, they also see some personal data that prevents them from downloading and sharing it without permission.

    &#xA;

    What I would like is to create a small Angular + Java application that does this task (invoking ffmpeg via Runtime#exec)

    &#xA;

    I have seen that from ffmpeg I can emit to a server, like ffserver but I wonder if there is a somewhat simpler way. Something like launching the ffmpeg command from my java application with the necessary configuration and having ffmpeg emit the video along with the watermark through some port/protocol.

    &#xA;

    EDIT

    &#xA;

    I have continued to investigate and I have seen that ffmpeg allows you to broadcast for WebRTC, but you need an adapter. What I would like and I don't know if it is possible is to launch ffmpeg so that it acts as a server and it can be consumed from the web.

    &#xA;

  • Failed to load audio : [WinError 2] The specified file can not be found. RVC

    25 septembre 2024, par Eduard Vlasov

    Trying to convert audio with text to my own AI Model with rvc_convert, but it fails and got me this Exception :

    &#xA;

    Traceback (most recent call last):&#xA;  File "f:\python\py\tts\venv\src\rvc\lib\audio.py", line 14, in load_audio&#xA;    ffmpeg.input(file, threads=0)&#xA;  File "F:\Python\py\TTS\venv\lib\site-packages\ffmpeg\_run.py", line 313, in run&#xA;    process = run_async(&#xA;  File "F:\Python\py\TTS\venv\lib\site-packages\ffmpeg\_run.py", line 284, in run_async&#xA;    return subprocess.Popen(&#xA;  File "C:\Users\Quick\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__&#xA;    self._execute_child(args, executable, preexec_fn, close_fds,&#xA;  File "C:\Users\Quick\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child&#xA;    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,&#xA;FileNotFoundError: [WinError 2] Не удается найти указанный файл&#xA;&#xA;During handling of the above exception, another exception occurred:&#xA;&#xA;Traceback (most recent call last):&#xA;  File "F:\Python\py\TTS\main.py", line 47, in <module>&#xA;    rvc_convert(model_path=&#x27;eduard.pth&#x27;,&#xA;  File "f:\python\py\tts\venv\src\rvc-tts-pipe\rvc_infer.py", line 323, in rvc_convert&#xA;    wav_opt=vc_single(0,input_path,f0_up_key,None,f0method,file_index,file_index2,index_rate,filter_radius,resample_sr,rms_mix_rate,protect)&#xA;  File "f:\python\py\tts\venv\src\rvc-tts-pipe\rvc_infer.py", line 160, in vc_single&#xA;    audio = load_audio(input_audio_path, 16000)&#xA;  File "f:\python\py\tts\venv\src\rvc\lib\audio.py", line 19, in load_audio&#xA;    raise RuntimeError(f"Failed to load audio: {e}")&#xA;RuntimeError: Failed to load audio: [WinError 2] Не удается найти указанный файл&#xA;</module>

    &#xA;

    I read that other people had the same error. I need to do something with ffmpeg, but nothing works for me.&#xA;Python 3.10

    &#xA;

    Tried to reinstall ffmpeg. Not working.&#xA;Trying to use other Python versions. Not working.&#xA;Trying to extract ffmpeg.exe from this archive https://github.com/BtbN/FFmpeg-Builds/releases into ffmpge library folder. Not working

    &#xA;

  • How to read data from subprocess pipe ffmpeg without block in line when rtsp is disconnected

    22 août 2024, par Jester48

    I have some problems with the ffmpeg subprocess in python where I open an RTSP stream.&#xA;One of them is the long time of reading a frame from the pipe, I noticed that reading one frame takes about 250ms -> most of this time is the select.select() line which can take just that long. This makes opening the stream above 4FPS problematic. When I do not use the select.select function, the reading speed is normal, but when the connection to RTSP streams is lost, the program gets stuck in the self.pipe.stdout.read() function and does not exit from it. Is it possible to protect yourself in case of missing data in pipe.stdout.read() without losing frame reading speed as in the case of select.select() ?

    &#xA;

    class RTSPReceiver(threading.Thread):&#xA;    def __init__(self):&#xA;        threading.Thread.__init__(self)&#xA;        self.ffmpeg_cmd = [&#x27;ffmpeg&#x27;,&#x27;-loglevel&#x27;,&#x27;quiet&#x27;,&#x27;-rtsp_transport&#x27; ,&#x27;tcp&#x27;,&#x27;-nostdin&#x27;,&#x27;-i&#x27;,f&#x27;rtsp://{config("LOGIN")}:{config("PASS")}@{config("HOST")}/stream=0&#x27;,&#x27;-fflags&#x27;,&#x27;nobuffer&#x27;,&#x27;-flags&#x27;,&#x27;low_delay&#x27;,&#x27;-map&#x27;,&#x27;0:0&#x27;,&#x27;-r&#x27;,f&#x27;{config("RTSP_FPS")}&#x27;,&#x27;-f&#x27;,&#x27;rawvideo&#x27;,&#x27;-pix_fmt&#x27;,&#x27;bgr24&#x27;,&#x27;-&#x27;]&#xA;        self.img_w = 2688&#xA;        self.img_h = 1520&#xA;        self.image = None&#xA;        self.pipe = subprocess.Popen(self.ffmpeg_cmd, stdout=subprocess.PIPE)&#xA;&#xA;    def reconnect(self) -> None:&#xA;        if self.pipe:&#xA;            self.pipe.terminate()&#xA;            self.pipe.kill()&#xA;            self.pipe.wait()&#xA;&#xA;    def run(self) -> None:&#xA;        self.connect()&#xA;        while True:&#xA;            try:&#xA;                ready, _, _ = select.select([self.pipe.stdout], [], [], 15.0)&#xA;                if ready:&#xA;                    raw_image = self.pipe.stdout.read(self.img_w*self.img_h*3)&#xA;                    if raw_image:&#xA;                        with self.lock:&#xA;                            self.image = np.frombuffer(raw_image, dtype=np.uint8).reshape(self.img_h, self.img_w, 3)&#xA;                else:&#xA;                    self.reconnect()&#xA;            except Exception as e:&#xA;                self.connect()&#xA;

    &#xA;