
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (83)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (4291)
-
Evolution #3091 : Gérer le timeout lors du calcul des filtres images
10 août 2014, par cedric -Le problème ne vient pas du nombre de modèles
<doc></doc>
ou<img style='max-width: 300px; max-height: 300px' />
proprement dit, mais du nombre d’images réduites qu’il faut générer lors de l’affichage de la page. Ainsi, lors du premier affichage, on doit calculer toutes les images réduites d’un coup, ce qui prend du temps, et on fait timeout. Il suffit en général de ré-afficher la page une fois (ou plusieurs si il y en a vraiment beaucoup) pour que le calcul des images se finisse, et l’article s’affichera très bien ensuite.Il n’est pas question de limiter le nombre de documents/images insérées dans un article, car ce serait trop limitatif.
Idéalement il faudrait être capable de gérer proprement ce timeout, et relancer le hit automatiquement au besoin. -
ffmpeg nodejs lambda crop issue
29 juillet 2020, par AjouveI have a lambda function to crop videos with ffmpeg


I am installing the layer this way


#!/bin/bash
mkdir -p layer
cd layer
rm -rf *
curl -O https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
tar -xf ffmpeg-git-amd64-static.tar.xz
mv ffmpeg-git-*-amd64-static ffmpeg
rm ffmpeg-git-amd64-static.tar.xz



I do not really which version but should be recent as I did it today for the last time


Then my node js lambda function is running with the following nodejs module https://github.com/fluent-ffmpeg/node-fluent-ffmpeg


return new Promise((resolve, reject) => {
 ffmpeg(inputFile.name)
 .videoFilters(`crop=${width}:${height}:${x}:${y}`)
 .format('mp4')
 .on('error', reject)
 .on('end', () => resolve(fs.readFileSync(outputFile.name)))
 .save(outputFile.name);



with for example
videoFilters('crop=500:500:20:20')


And I have the folowing error


ffmpeg exited with code 1: Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!



On my local computer I am running the following command on the exact same image


ffmpeg -i in.mp4 -filter:v "crop=500:500:20:20" out.mp4



my version of ffmpeg is 4.2.2 and this is working great


I do not have the issue with all videos, here one video which is causing me the issue https://ajouve-util.s3.amazonaws.com/earth.mp4


-
Audio to text is slow and words are getting dropped
8 mars 2019, par Madhur YadavI have a code which takes videos from an input folder, converts it into audio file(.wav) using ffmpeg.
It then converts the audio file to text by recording 30 seconds audio (dura=30) and converting it to text using google translate api.The problem is that the code takes a lot of time to convert video to text and it drops first two words and some words after every 30 seconds.
import speech_recognition as sr
import sys
import shutil
from googletrans import Translator
from pathlib import Path
import os
import wave
def audio_to_text(self,video_lst,deploy_path,video_path,audio_path):
try:
txt_lst=[]
for video_file in video_lst:
file_part=video_file.split('.')
audio_path_mod = audio_path +'/'+ '.'.join(file_part[:-1])
dir_path=video_path+'.'.join(file_part[:-1])
self.createDirectory(audio_path_mod)
audio_file='.'.join(file_part[:-1])+'.wav'
command_ffmpeg='set PATH=%PATH%;'+deploy_path.replace('config','script')+'audio_video/ffmpeg/bin/'
command='ffmpeg -i '+video_path+'/'+video_file+' '+audio_path_mod+'/'+audio_file
os.system(command_ffmpeg)
os.system(command)
r=sr.Recognizer()
dura=30
lang='en'
wav_filename=audio_path_mod+'/'+audio_file
f = wave.open(wav_filename, 'r')
frames = f.getnframes()
rate = f.getframerate()
audio_duration = frames / float(rate)
final_text_lst=[]
counter=0
with sr.AudioFile(wav_filename) as source:
while countercode>Any help/suggestion would be valuable. Thanks in advance.