Recherche avancée

Médias (0)

Mot : - Tags -/upload

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

Autres articles (86)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (8243)

  • aiff : add support for XA ADPCM

    3 janvier 2018, par Misty De Meo
    aiff : add support for XA ADPCM
    

    Certain AIFF files encode XA ADPCM compressed audio using a chunk
    with the tag `APCM`. Aside from this custom chunk type, they're
    otherwise standard AIFF files. I've only observed these files in the
    Sega Saturn game Sonic Jam so far.

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

    • [DH] libavformat/aiffdec.c
  • Can I get pictures/stills/photos from inside a container file from a CD-I disc ?

    8 décembre 2017, par user9047197

    I have ffmpeg setup.

    Is there a way to extract pictures/stills/photos (etc) from a container (file) that’s from an old CD-I game that I have.

    I don’t want to extract the audio nor video. And I don’t want frames from the videos either.

    I want the bitmaps (etc) from INSIDE that container file.

    I know my Windows 8.1 PC can’t read inside that container file - so I’m hoping there’s a way to extract all the files (I want) instead using ffmpeg.

    (IsoBuster only gives the audio and video so I know already about IsoBuster.)

    I think there are no individual headers for the pictures/stills/photos, etc.

    Here’s what ExifTool decoded the file as :

    ExifTool Version Number (10.68)
    File Name (green.3t)
    File Size (610 MB)
    File Permissions (rw-rw-rw-)
    File Type (MPEG)
    File Type Extension (mpg)
    MIME Type (video/mpeg)
    MPEG Audio Version (1)
    Audio Layer (2)
    Audio Bitrate (80 kbps)
    Sample Rate (44100)
    Channel Mode (Single Channel)
    Mode Extension (Bands 4-31)
    Copyright Flag (False)
    Original Media (False)
    Emphasis (None)
    Image Width (368)
    Image Height (272)
    Aspect Ratio (1.0695)
    Frame Rate (25 fps)
    Video Bitrate (1.29 Mbps)
    Duration (1:02:12 approx)
    Image Size (368x272)
    Megapixels (0.100)

    Thank you for reading and - help !! :D

  • 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;