
Recherche avancée
Autres articles (78)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (8389)
-
File created in subprocess.run not found by os.listdir()
13 novembre 2019, par AbitbolI am using subprocess to launch an instance of ffmpeg extracting frames in a folder. Then I do
os.listdir
on that same folder and it returns an empty list ; off course I would except to see the files created by ffmpeg listed.Here is a minimal example
import os
import subprocess
folder = 'generated'
subprocess.run(['ffmpeg', '-i', 'input.mp4', '-vf', 'fps=4', f'{folder}/%05d.png'])
print(os.listdir(folder)) # []I can testify that the files are created while the script is running.
In the full example I am using ffmpeg complex filter to generate two output, I don’t think that is the source of the problem.
-
Reducing latency of FFmpeg audio stream using Opus encoding
28 septembre 2022, par Victor AlmeidaI'm trying to stream my microphone audio using FFmpeg, but there's a delay of about 3 seconds from when the audio is recorded to when it is played.


The snippet below contains the minimal command for which I can reproduce the problem.


ffmpeg -f dshow -i "audio=Microphone (Realtek(R) Audio)" -f opus - | ffplay -



However, I've tried various other flags to no effect. Such as :


- 

-analyzeduration 0
-loglevel 0
-audio_buffer_size 50
-fflags nobuffer
-flags low_delay
-acodec libopus














Is there any way to reduce the latency to less than a second while still using Opus encoding ?


-
SharedArrayBuffer not defined when using Cypress
15 janvier 2023, par unlocoI'm using Vite and Cypress for dev and testing


I'm loading ffmpeg, it loads fine on Chrome but on Cypress, it gives this error


ReferenceError: SharedArrayBuffer is not defined



Apparently, it's caused by cross origin isolation.


I tried disabling web security in
Cypress.json
but it didn't help

Sample code


import { createFFmpeg } from "@ffmpeg/ffmpeg"

const ffmpeg = createFFmpeg({ log: true })
ffmpeg.load()




Is there a workaround ?


Minimal Repro
https://github.com/unlocomqx/cypress-ffmpeg