Recherche avancée

Médias (91)

Autres articles (10)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • 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 (...)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

Sur d’autres sites (2769)

  • How to multithread ffmpeg-python process ?

    19 décembre 2022, par duruburak

    I'm working on a cancel button that cancels the ffmpeg video & audio merging process when pressed.
But while loop doesn't keep looping once ffmpeg starts execution, while loop continues to loop after ffmpeg finished the process. I couldn't really figure it out, sorry if it's duplicate.

    


    I know the code looks really silly but I'm kinda doomed, any help will be greatly appreciated. Thanks in advance.

    


    from tkinter import *&#xA;import ffmpeg&#xA;import threading&#xA;&#xA;def start_ffmpeg_thread(audio_part, video_part, path):&#xA;    threading.Thread(target=start_ffmpeg, args=(audio_part, video_part, path)).start()&#xA;&#xA;def start_ffmpeg(audio_part, video_part, path):&#xA;    while True:&#xA;        if is_cancelled:&#xA;            break&#xA;        threading.Thread(target=ffmpeg_func, args=(audio_part, video_part, path)).start()&#xA;&#xA;def ffmpeg_func(audio_part, video_part, path):&#xA;    ffmpeg.output(audio_part, video_part, path).run(overwrite_output=True)&#xA;&#xA;def cancel_ffmpeg():&#xA;    global is_cancelled&#xA;    is_cancelled = True&#xA;&#xA;&#xA;is_cancelled = False&#xA;&#xA;root = Tk()&#xA;&#xA;video_part = ffmpeg.input("")&#xA;audio_part = ffmpeg.input("")&#xA;path = "<path>"&#xA;&#xA;button_1 = Button(root, text="Start", command=lambda: start_ffmpeg_thread(audio_part, video_part, path))&#xA;button_1.pack(pady=30, padx=30)&#xA;&#xA;button_2 = Button(root, text="Stop", command=cancel_ffmpeg)&#xA;button_2.pack(pady=30, padx=30)&#xA;&#xA;root.mainloop()&#xA;</path>

    &#xA;

  • Splitting audio by vocal / voice

    1er octobre 2020, par ML85

    I am working with audio file using webrtcvad and pydub. The split of any fragment is by silence of the sentence.&#xA;Is there any way by which the split can be done at each vocal (after each spoken word) ?&#xA;If librosa/ffmpeg/pydub has any feature like this, can split is possible at each vocal ? but after split, I need start and end time of the vocal exactly what that vocal part has positioned in the original file.&#xA;One simple solution or way to split by ffmpeg is also defined by :

    &#xA;

    https://gist.github.com/vadimkantorov/00bf4fbe4323360722e3d2220cc2915e

    &#xA;

    but this is also splitting by silence, and with each padding number or the frame size, the split is different. I am trying split by vocal.

    &#xA;

  • include a string variable that contains spaces into the 'subprocess.run()' [duplicate]

    9 juillet 2022, par zayn

    I'm trying to combine a video and it's audio into one file using ffmpeg using subprocess in python and I want to do something like this.

    &#xA;

    name = &#x27;spider man.mp4&#x27;&#xA;&#xA;subprocess.run("ffmpeg -i " &#x2B; &#x27;temp\\vid.mp4&#x27; &#x2B; " -i "&#x2B; &#x27;temp\\aud.mp4&#x27; &#x2B; " -c copy " &#x2B; path&#x2B;&#x27;\\&#x27;&#x2B;name)&#xA;&#xA;

    &#xA;

    "name" is the name concatenated with the extension of the resulting file but as you see, "name" contains spaces so when I pass it to the subprocess it takes the first word only which is (spider), so he don't find the extension of the resulting file and it give this error

    &#xA;

    Unable to find a suitable output format for &#x27;C:\Users\Zain\Downloads\spider&#x27;&#xA;C:\Users\Zain\Downloads\spider: Invalid argument&#xA;&#xA;

    &#xA;