
Recherche avancée
Autres articles (18)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip 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, parMediaSPIP 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, parLe 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ánI'm having problems with ffmpeg, probably due to my inexperience with this software.


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.


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

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.


EDIT


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.


-
Failed to load audio : [WinError 2] The specified file can not be found. RVC
25 septembre 2024, par Eduard VlasovTrying to convert audio with text to my own AI Model with rvc_convert, but it fails and got me this Exception :


Traceback (most recent call last):
 File "f:\python\py\tts\venv\src\rvc\lib\audio.py", line 14, in load_audio
 ffmpeg.input(file, threads=0)
 File "F:\Python\py\TTS\venv\lib\site-packages\ffmpeg\_run.py", line 313, in run
 process = run_async(
 File "F:\Python\py\TTS\venv\lib\site-packages\ffmpeg\_run.py", line 284, in run_async
 return subprocess.Popen(
 File "C:\Users\Quick\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__
 self._execute_child(args, executable, preexec_fn, close_fds,
 File "C:\Users\Quick\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Не удается найти указанный файл

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "F:\Python\py\TTS\main.py", line 47, in <module>
 rvc_convert(model_path='eduard.pth',
 File "f:\python\py\tts\venv\src\rvc-tts-pipe\rvc_infer.py", line 323, in rvc_convert
 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)
 File "f:\python\py\tts\venv\src\rvc-tts-pipe\rvc_infer.py", line 160, in vc_single
 audio = load_audio(input_audio_path, 16000)
 File "f:\python\py\tts\venv\src\rvc\lib\audio.py", line 19, in load_audio
 raise RuntimeError(f"Failed to load audio: {e}")
RuntimeError: Failed to load audio: [WinError 2] Не удается найти указанный файл
</module>


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

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


-
How to read data from subprocess pipe ffmpeg without block in line when rtsp is disconnected
22 août 2024, par Jester48I have some problems with the ffmpeg subprocess in python where I open an RTSP stream.
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() ?


class RTSPReceiver(threading.Thread):
 def __init__(self):
 threading.Thread.__init__(self)
 self.ffmpeg_cmd = ['ffmpeg','-loglevel','quiet','-rtsp_transport' ,'tcp','-nostdin','-i',f'rtsp://{config("LOGIN")}:{config("PASS")}@{config("HOST")}/stream=0','-fflags','nobuffer','-flags','low_delay','-map','0:0','-r',f'{config("RTSP_FPS")}','-f','rawvideo','-pix_fmt','bgr24','-']
 self.img_w = 2688
 self.img_h = 1520
 self.image = None
 self.pipe = subprocess.Popen(self.ffmpeg_cmd, stdout=subprocess.PIPE)

 def reconnect(self) -> None:
 if self.pipe:
 self.pipe.terminate()
 self.pipe.kill()
 self.pipe.wait()

 def run(self) -> None:
 self.connect()
 while True:
 try:
 ready, _, _ = select.select([self.pipe.stdout], [], [], 15.0)
 if ready:
 raw_image = self.pipe.stdout.read(self.img_w*self.img_h*3)
 if raw_image:
 with self.lock:
 self.image = np.frombuffer(raw_image, dtype=np.uint8).reshape(self.img_h, self.img_w, 3)
 else:
 self.reconnect()
 except Exception as e:
 self.connect()