Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (45)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (6647)

  • Why is `subprocess.call` not invoking the command

    6 juin 2014, par Shookie

    I’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 the output_file isn’t created and I’m getting an exception in the open() 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 rcp

    I'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

    


    Actual output in bash script

    


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

    


  • ffmpeg not creating video from images

    16 décembre 2014, par Knight Rider

    I have read this Create Video using ffmpeg

    Stack Question for the Same

    Wiki Page for the same

    Still I am not able to get it.
    I have written this shell command in PHP

    echo $make_movie = "$ffmpeg -framerate 1/5 -i $folder_name/img%03d.png -c:v libx264 -r 25 -pix_fmt yuv420p $folder_name/output.mp4";

    This gives output

    ffmpeg\bin\ffmpeg.exe -framerate 1/5 -i ankit/img%03d.png -c:v libx264 -r 25 -pix_fmt yuv420p ankit/output.mp4

    if(shell_exec($make_movie)){
       echo "<br />Movie Created..<br />";
    }
    else{
       echo "<br />Movie Creation Error..<br />";
    }

    The Output is Movie Creation Error that means the Shell Command is not executing ?

    Questions :

    1. What is wrong ?
    2. For future use, any debugging methods for this ?

    I ran the same command on cmd and it made the video..!!!