Recherche avancée

Médias (91)

Autres articles (45)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (7382)

  • FFMPEG : preset not found in Windows Vista

    12 juin 2012, par StackOverflowNewbie

    I download FFMPEG from http://www.videohelp.com/tools/ffmpeg#download and saved it in my c :\program files\ffmpeg (Windows Vista). My Path's first 2 entries are :

    c:\program files\ffmpeg\bin;c:\program files\ffmpeg\presets;

    I found the following command on the net (http://paulrouget.com/e/converttohtml5video/)

    ffmpeg -i input.avi -acodec libvorbis -ab 96k -vcodec libx264 -vpre main -level 21 -refs 2 -b 345k -bt 345k -threads 0 -s 320x240 output.mp4

    When I run this on command line, I get the following error :

    File for preset main not found

    Any ideas what might be wrong ?

  • ffmpeg extensionless ts file [closed]

    15 avril, par Erv00

    I want to download a video file that is streamed with HLS.
    
Unfortunately, the .m3u8 file references the segments that have no extension, and thus the HLS demuxer throws the following error :

    


    detected format mpegts extension none mismatches allowed extensions in url <the url="url">&#xA;</the>

    &#xA;

    The url is like https://example.com/segment3

    &#xA;

    I have tried to allow all extensions with -allowed_extensions ALL,none, but this does not work.
    &#xA;My question is, how can I make this work, without having to download all segments by hand ?

    &#xA;

  • How to get the video count of youtube_dl (1 of 256) in its output and hide ffmpeg console when converting the format ?

    28 août 2020, par Kristen

    I am creating a GUI program in Qt creator via Pyside2 and it's a program that lets you download Youtube music. My goal is to get the video count like x of 256 or x of 2 or 1 of 256 when downloading the playlist but I don't know how. I've come across two problems.

    &#xA;

    First problem : I don't know how to get this information from youtube_dl output

    &#xA;

    [youtube:playlist] Downloading playlist PLi0XaxnSihZSnD1TNm82Y43o92r6UNEfH - add --no-playlist to just download video -5EmnQp3V48&#xA;[youtube:playlist] PLi0XaxnSihZSnD1TNm82Y43o92r6UNEfH: Downloading webpage&#xA;[download] Downloading playlist: Dance Central Songs&#xA;[youtube:playlist] PLi0XaxnSihZSnD1TNm82Y43o92r6UNEfH: Downloading page #1&#xA;[youtube:playlist] PLi0XaxnSihZSnD1TNm82Y43o92r6UNEfH: Downloading page #2&#xA;[youtube:playlist] playlist Dance Central Songs: Downloading 251 videos&#xA;[download] Downloading video **1 of 251**&#xA;[youtube] bESGLojNYSo: Downloading webpage&#xA;[download] Destination: Lady Gaga - Poker Face (Official Music Video)-bESGLojNYSo.webm&#xA;[download] 100% of 3.50MiB in 00:01                   &#xA;Finished&#xA;[ffmpeg] Destination: Lady Gaga - Poker Face (Official Music Video)-bESGLojNYSo.mp3&#xA;Deleting original file Lady Gaga - Poker Face (Official Music Video)-bESGLojNYSo.webm (pass -k to keep)&#xA;[download] Downloading video **2 of 251**&#xA;[youtube] E2tMV96xULk: Downloading webpage&#xA;14:03:36: C:\Python38\python.exe exited with code 0&#xA;

    &#xA;

    Second problem : If my program is in .exe format then FFMPEG console appears and disappears immediately after it has completed the conversion but it's taking the user focus every time which gets annoying.

    &#xA;

    What I've tried for first problem is that I tried to get it manually but it did not work then I checked youtube_dl github download dictionary keys and there is not a key that can acquire that video count 1 of 256

    &#xA;

    print("Download keys:", download.keys())&#xA;Download keys: dict_keys([&#x27;status&#x27;, &#x27;downloaded_bytes&#x27;, &#x27;total_bytes&#x27;, &#x27;tmpfilename&#x27;, &#x27;filename&#x27;, &#x27;eta&#x27;, &#x27;speed&#x27;, &#x27;elapsed&#x27;, &#x27;_eta_str&#x27;, &#x27;_percent_str&#x27;, &#x27;_speed_str&#x27;, &#x27;_total_bytes_str&#x27;])&#xA;

    &#xA;

    What I've tried for second problem is actually none. I checked C# versions and with C# you can hide that console or disable it but I haven't found a way to do that in Python yet. Goal here is disable ffmpeg console taking either the focus or hide/disable it or third option is to use another converter.

    &#xA;

    Youtube_dl code that is in Worker thread :

    &#xA;

    def run(self):&#xA;    self.main_window.progressBar.setValue(0)&#xA;&#xA;    self.ydl_opts = {&#xA;        &#x27;format&#x27;: &#x27;bestaudio/best&#x27;,&#xA;        &#x27;noplaylist&#x27;: self.main_window.playlist,&#xA;        &#x27;source_address&#x27;: &#x27;0.0.0.0&#x27;,&#xA;        &#x27;ignoreerrors&#x27;: True,&#xA;        &#x27;progress_hooks&#x27;: [self.my_hook],&#xA;        &#x27;postprocessors&#x27;: [{&#xA;            &#x27;key&#x27;: &#x27;FFmpegExtractAudio&#x27;,&#xA;            &#x27;preferredcodec&#x27;: &#x27;mp3&#x27;&#xA;        }]&#xA;    }&#xA;&#xA;    with youtube_dl.YoutubeDL(self.ydl_opts) as ydl:&#xA;        ydl.download([f&#x27;{self.main_window.downloadURL.text()}&#x27;])&#xA;&#xA;def my_hook(self, download):&#xA;    if download["status"] == "finished":&#xA;        print("Finished")&#xA;        self.main_window.progressText.setText("Ready")&#xA;    if download["status"] == "downloading":&#xA;        self.updateText.emit("Downloading...")&#xA;        percent = download["_percent_str"]&#xA;        percent = percent.replace("%", "")&#xA;        self.updateProgress.emit(float(percent))&#xA;

    &#xA;

    Edit : FFMPEG console appearing and disappearing for a moment is shown in this video here in dropbox :&#xA;ffmpeg console appearing and disappearing video

    &#xA;