
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (98)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (3988)
-
What does the variable ${i%.*} mean in terminal ?
17 mars 2020, par wongzThis shell command converts all .avi to .mp4 as per this answer by @llogan
Can someone explain how $i%.* works ?
In particular, what does % do ?for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done
-
Why is `subprocess.call` not invoking the command
6 juin 2014, par ShookieI’m trying to run a .wav file through ffmpeg using the
subprocess.call(shell=True)
in the following code and it doesn’t seem to run. I know this because theoutput_file
isn’t created and I’m getting an exception in theopen()
method.
What am I doing wrong ?try:
import pocketsphinx
except:
import pocketsphinx as ps
import sphinxbase
import subprocess
import os
hmmd = "../../Pocketsphinx_Files/en-us-8khz"
lmdir = "../../Pocketsphinx_Files/cmusphinx-5.0-en-us.lm"
dictp = "../../Pocketsphinx_Files/cmu07a.dic"
output_filename = "../../temp/ps_output.wav"
def recognize(filename="../../temp/temp_output.wav"):
command = "ffmpeg -i "+filename+" -ac 1 -ab 16 -ar 16000 "+output_filename
subprocess.call(command,shell=True)
wavFile = open(output_filename,"rb")
speechRec = ps.Decoder(hmm = hmmd, lm = lmdir, dict = dictp)
wavFile.seek(44)
speechRec.decode_raw(wavFile)
result = speechRec.get_hyp()
#os.remove(filename)
#os.remove(output_filename)
return result
if __name__=="__main__":
print(recognize())edit : I’ve got ffmpeg installed.
Furthermore, when I run the subprocess.call() command from the python interpreter it seems to work. This is why I’m stumped. -
FFMPEG not working as intended in a bash script
9 mai 2024, par rcpI'm trying to get the mean volume of a recording and the echo the expected value. When I do it line by line, everything works fine, but as soon as I execute it in a bash script, I have a problem with the FFMPEG line. I identified the problem, which is that
&> analysis
is not doing anything for some reason and instead of saving the output in a file it prints it in the shell.

I don't know how to fix it since it works fine when not in a script.


#!/bin/bash

# Record sound
sh aud2.sh

# Run ff.sh in the background to analyze volume and save results
ffmpeg -i test.wav -af "volumedetect" -vn -sn -dn -f null - &> analysis.vol

# Extract mean_volume and save to mean.vol
grep "mean_volume" analysis.vol > mean.vol

# Extract numerical value and save to val.vol
sed -n 's/^.*mean_volume: \([-0-9.]*\) dB.*/\1/p' < mean.vol > val.vol

# Read the value from val.vol into the variable volume
volume=$(code>


Expected output when line by line




I expected the shell output to be saved in a file.