Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (41)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • 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 binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (5155)

  • Getting error while transcribing mp3 file into text file

    8 août 2021, par Parul Verma

    I used the below code to transcribe the mp3 file into text.

    


    import speech_recognition as sr
from pydub import AudioSegment

# convert mp3 file to wav  
src=(r"C:\Users\user.name\Desktop\python\DATA\Audio files\Audio1.mp3")
sound = AudioSegment.from_mp3(src)
sound.export(r"C:\Users\user.name\Desktop\python\DATA\Audio files\Audio1.wav"), format="wav")

file_audio = sr.AudioFile(r"C:\Users\user.name\Desktop\python\DATA\Audio files\Audio1.wav")

# use the audio file as the audio source                                        
r = sr.Recognizer()
with file_audio as source:
 audio_text = r.record(source)

print(type(audio_text))
print(r.recognize_google(audio_text))


    


    But I got the following error-

    


    FileNotFoundError                         Traceback (most recent call last)&#xA; in <module>&#xA;    4 # convert mp3 file to wav&#xA;    5 src=(r"C:\Users\user.name\Desktop\python\DATA\Audio files\Audio1.mp3")&#xA;----> 6 sound = AudioSegment.from_mp3(src)&#xA;    7 sound.export(r"C:\Users\user.name\Desktop\python\DATA\Audio files\Audio1.wav", format="wav")&#xA;    8 &#xA;&#xA;~\Anaconda3\lib\site-packages\pydub\audio_segment.py in from_mp3(cls, file, parameters)&#xA;    794     @classmethod&#xA;    795     def from_mp3(cls, file, parameters=None):&#xA;--> 796         return cls.from_file(file, &#x27;mp3&#x27;, parameters=parameters)&#xA;    797 &#xA;    798     @classmethod&#xA;&#xA;~\Anaconda3\lib\site-packages\pydub\audio_segment.py in from_file(cls, file, format, codec, parameters, start_second, duration, **kwargs)&#xA;    726             info = None&#xA;    727         else:&#xA;--> 728             info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)&#xA;    729         if info:&#xA;    730             audio_streams = [x for x in info[&#x27;streams&#x27;]&#xA;&#xA;~\Anaconda3\lib\site-packages\pydub\utils.py in mediainfo_json(filepath, read_ahead_limit)&#xA;    272 &#xA;    273     command = [prober, &#x27;-of&#x27;, &#x27;json&#x27;] &#x2B; command_args&#xA;--> 274     res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)&#xA;    275     output, stderr = res.communicate(input=stdin_data)&#xA;    276     output = output.decode("utf-8", &#x27;ignore&#x27;)&#xA;&#xA;~\Anaconda3\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)&#xA;    852                             encoding=encoding, errors=errors)&#xA;    853 &#xA;--> 854             self._execute_child(args, executable, preexec_fn, close_fds,&#xA;    855                                 pass_fds, cwd, env,&#xA;    856                                 startupinfo, creationflags, shell,&#xA;&#xA;~\Anaconda3\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)&#xA;1305             # Start the process&#xA;1306             try:&#xA;-> 1307                 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,&#xA;1308                                          # no special security&#xA;1309                                          None, None,&#xA;&#xA;FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;</module>

    &#xA;

  • Cant find file or directory

    25 juillet 2019, par Mister from Belarus

    Suprocess cant find file or directory from python script

    I`ve tried to convert mp3 to wav with subprocess and it works with cmd, when i write ffmpeg -i file.mp3 file.wav, but indetical code on python cant find my files. ffmpeg version N-94387-g923d5c489f.

    subprocess.call([’ffmpeg’, ’-i’, ’file.mp3’,
    ’file.wav’], cwd=r’C :/Users/Lenovo/Desktop’)

    Users/Lenovo/PycharmProjects/coloon/main.py
    Traceback (most recent call last) :
    File "C :/Users/Lenovo/PycharmProjects/coloon/main.py", line 4, in
    ’file.wav’], cwd=r’C :/Users/Lenovo/Desktop’)
    File "C :\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p :
    File "C :\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 707, in init
    restore_signals, start_new_session)
    File "C :\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 990, in _execute_child
    startupinfo)
    FileNotFoundError : [WinError 2] Не удается найти указанный файл

    I`ve also tried to use this

    subprocess.call(['ffmpeg', '-i', r'D:/file.mp3',
                    r'D:/file.wav'])

    but result is the same.

  • avformat/utils : Discard huge timestamps which would cause overflows if used in basic...

    25 septembre 2016, par Michael Niedermayer
    avformat/utils : Discard huge timestamps which would cause overflows if used in basic computations
    

    Allowing larger timestamps makes it impossible to calculate basic things like the
    difference of 2 timestamps or their sum without checking each individual computation for
    overflow.
    This should avoid a significant number of overflow checks

    Fixes Ticket5136

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/utils.c