Recherche avancée

Médias (1)

Mot : - Tags -/vidéo

Autres articles (56)

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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

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

  • ffmpeg settings for high quality youtube videos [migrated]

    1er avril 2018, par pb.

    I am trying to record short video of my desktop and upload it to youtube.
    The problem is that every time when I upload it to youtube or even dropbox (as video), the quality is much worse.

    My ffmpeg execution :

    ffmpeg -f x11grab -s 1366x768 -r 30 -i :0.0 -codec:v libx264 -crf 10 -bf 20 -flags +cgop -pix_fmt yuv440p -movflags faststart help.mp4

    based on :

    ffmpeg -i <input file="file" /> -codec:v libx264 -crf 21 -bf 2 -flags +cgop -pix_fmt yuv420p -codec:a aac -strict -2 -b:a 384k -r:a 48000 -movflags faststart .mp4

    which I found here

    Original file (.zip) :
    https://www.dropbox.com/s/xlkr83rkqfxon23/help.mp4.zip?dl=0

    File after upload to youtube :
    https://www.youtube.com/watch?v=ewEUgpXOpmg

    As you can see, I loss quality after upload to youtube.

    Could you help me ?
    How should I choose the appropriate parameters to record and upload high quality video ?

  • ffmpeg settings for high quality youtube videos [migrated]

    1er avril 2018, par pb.

    I am trying to record short video of my desktop and upload it to youtube.
    The problem is that every time when I upload it to youtube or even dropbox (as video), the quality is much worse.

    My ffmpeg execution :

    ffmpeg -f x11grab -s 1366x768 -r 30 -i :0.0 -codec:v libx264 -crf 10 -bf 20 -flags +cgop -pix_fmt yuv440p -movflags faststart help.mp4

    based on :

    ffmpeg -i <input file="file" /> -codec:v libx264 -crf 21 -bf 2 -flags +cgop -pix_fmt yuv420p -codec:a aac -strict -2 -b:a 384k -r:a 48000 -movflags faststart .mp4

    which I found here

    Original file (.zip) :
    https://www.dropbox.com/s/xlkr83rkqfxon23/help.mp4.zip?dl=0

    File after upload to youtube :
    https://www.youtube.com/watch?v=ewEUgpXOpmg

    As you can see, I loss quality after upload to youtube.

    Could you help me ?
    How should I choose the appropriate parameters to record and upload high quality video ?

  • Is there a way to use youtube-dl in async

    8 octobre 2024, par Stam Kaly

    I have an application where I use zmq with asyncio to communicate with the clients who have the ability to download a video with youtube-dl to the server. I tried adding await to youtube_dl's download function but it gave me an error since it was not a coroutine. My code right now is simply looking like this :

    &#xA;&#xA;

    import asyncio&#xA;import youtube_dl&#xA;&#xA;&#xA;async def networking_stuff():&#xA;    download = True&#xA;    while True:&#xA;        if download:&#xA;            print("Received a request for download")&#xA;            await youtube_to_mp3("https://www.youtube.com/watch?v=u9WgtlgGAgs")&#xA;            download = False&#xA;        print("Working..")&#xA;        await asyncio.sleep(2)&#xA;&#xA;&#xA;async def youtube_to_mp3(url):&#xA;    ydl_opts = {&#xA;        &#x27;format&#x27;: &#x27;bestaudio/best&#x27;,&#xA;        &#x27;postprocessors&#x27;: [{&#xA;            &#x27;key&#x27;: &#x27;FFmpegExtractAudio&#x27;,&#xA;            &#x27;preferredcodec&#x27;: &#x27;mp3&#x27;,&#xA;            &#x27;preferredquality&#x27;: &#x27;192&#x27;,&#xA;        }]&#xA;    }&#xA;&#xA;    with youtube_dl.YoutubeDL(ydl_opts) as ydl:&#xA;        ydl.download([url])&#xA;&#xA;&#xA;loop = asyncio.get_event_loop()&#xA;loop.create_task(networking_stuff())&#xA;loop.run_forever()&#xA;

    &#xA;&#xA;

    which gives the following output :

    &#xA;&#xA;

    Received a request for download&#xA;[youtube] u9WgtlgGAgs: Downloading webpage&#xA;[youtube] u9WgtlgGAgs: Downloading video info webpage&#xA;[youtube] u9WgtlgGAgs: Extracting video information&#xA;[youtube] u9WgtlgGAgs: Downloading MPD manifest&#xA;[download] Destination: The Cardigans - My Favourite Game “Stone Version”-u9WgtlgGAgs.webm&#xA;[download] 100% of 4.20MiB in 00:03&#xA;[ffmpeg] Destination: The Cardigans - My Favourite Game “Stone Version”-u9WgtlgGAgs.mp3&#xA;Deleting original file The Cardigans - My Favourite Game “Stone Version”-u9WgtlgGAgs.webm (pass -k to keep)&#xA;Working..&#xA;Working..&#xA;....&#xA;Working..&#xA;Working..&#xA;

    &#xA;&#xA;

    whereas I would expect the Working.. message to be printed in between youtube-dl's messages as well. Am I missing something here or is this impossible with async/await ? Is ffmpeg blocking ? If so, can I run the download in async without converting to mp3 or is using threads the only way ?

    &#xA;