Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (9)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (5245)

  • Inputting files in different folders as arguments to ffmpeg in Python

    20 janvier 2016, par John Stanford

    I’m working on a program using ffmpeg in Python and I’m trying to stack a bunch of PNG images into a video. I want to keep the code on my Dropbox but use the local hard drive to do the work, so I when I input the files as arguments, I want to include the directory. The code below makes the raw input file just fine, but when I try to begin a pipe with ffmpeg, it tells me it can’t find the input file. Is there some special way to format this if the input file is in a different directory ? I’ve had similar code work fine with the files all located in the same folder. Thanks !

    import subprocess as sp

    import numpy as np
    import matplotlib.pyplot as plt

    import os
    import shutil

    import tkinter.filedialog as tkFileDialog

    FFMPEG_BIN = 'ffmpeg.exe'

    def readImages(pathToImages):
       filenames = os.listdir(path=pathToImages)
       f = open("C:\\Users\johnwstanford\Desktop\outputfile.raw", "wb")

       for file in filenames:
           print(file)
           image = plt.imread(pathToImages + '/' + file)
           image = np.delete(image, 3, 2)*255

           f.write(image.tobytes())
       f.close()

    readImages(tkFileDialog.askdirectory())

    command2 = [FFMPEG_BIN,
              '-y',
              '-f', 'rawvideo',
              '-vcodec', 'rawvideo',
              '-s', '1600x1200',
              '-pix_fmt', 'rgb24',
              '-r', '25',
              '-i', "C:\\Users\johnwstanford\Desktop\outputfile.raw",
              "C:\\Users\johnwstanford\Desktop\output.mp4"]

    pipe2 = sp.Popen(command2, stdin = sp.PIPE, stderr=sp.PIPE)
    print(pipe2.communicate()[1])
    pipe2.kill()
    os.remove("C:\\Users\johnwstanford\Desktop\outputfile.raw")
  • Issue with adding FFMPEG to macOS path to convert mp3 to WAV in Python [closed]

    30 mai 2024, par AndrewLittle1

    I am trying to use a simple program to convert a .MP3 file to a .WAV file in python :

    


    from os import path
from pydub import AudioSegment

src = "test1.mp3"
dst = "test1.wav"

# convert wav to mp3                                                            
sound = AudioSegment.from_mp3(src)
sound.export(dst, format="wav")


    


    When I try to run the program in an IDE, I am getting a FileNotFoundError this is what the StackTrace looks like :

    


    RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
  warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)

...

[Errno 2] No such file or directory: 'ffprobe': 'ffprobe'


    


    I know this error means that the IDE is not able to locate my FFMPEG (because it is not in the correct path). I downloaded FFMPEG, FFPROBE is located in the FFMPEG library using :

    


    pip install FFMPEG


    


    However, even when I try to run the program from the command line using

    


    python soundtest.py


    


    I am getting another FileNotFoundError :

    


    File "soundtest.py", line 13, in <module>&#xA;    with open(&#x27;simple.html&#x27;) as html_file:&#xA;FileNotFoundError: [Errno 2] No such file or directory: &#x27;simple.html&#x27;&#xA;&#xA;</module>

    &#xA;

    I am not sure why this is happening because despite FFMPEG not being in the correct path to be accessed by the IDE I cannot run it from the command line either.

    &#xA;

    Ideally, I would like to add the FFMPEG library to the system path so that it can be accessed, but I can't even get it to run from the command line. Any ideas what's going on here ?

    &#xA;

    The answer provided here also helps give more insight, but I am still running into my same error, Ffmpeg on idle python Mac

    &#xA;

  • lavu : add new D3D11 pixfmt and hwcontext

    6 juin 2017, par wm4
    lavu : add new D3D11 pixfmt and hwcontext
    

    To be used with the new d3d11 hwaccel decode API.

    With the new hwaccel API, we don’t want surfaces to depend on the
    decoder (other than the required dimension and format). The old D3D11VA
    pixfmt uses ID3D11VideoDecoderOutputView pointers, which include the
    decoder configuration, and thus is incompatible with the new hwaccel
    API. This patch introduces AV_PIX_FMT_D3D11, which uses ID3D11Texture2D
    and an index. It’s simpler and compatible with the new hwaccel API.

    The introduced hwcontext supports only the new pixfmt.

    Frame upload code untested.

    Significantly based on work by Steve Lhomme <robux4@gmail.com>, but with
    heavy changes/rewrites.

    Signed-off-by : Diego Biurrun <diego@biurrun.de>

    • [DBH] doc/APIchanges
    • [DBH] libavutil/Makefile
    • [DBH] libavutil/hwcontext.c
    • [DBH] libavutil/hwcontext.h
    • [DBH] libavutil/hwcontext_d3d11va.c
    • [DBH] libavutil/hwcontext_d3d11va.h
    • [DBH] libavutil/hwcontext_internal.h
    • [DBH] libavutil/pixdesc.c
    • [DBH] libavutil/pixfmt.h
    • [DBH] libavutil/version.h