Recherche avancée

Médias (91)

Autres articles (26)

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

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

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (5125)

  • Anomalie #2063 : Bug avec notes de bas de page r17814

    10 mai 2011, par Michel Fraisse

    OK, j’ai trouvé le fautif Dans article.html de dist 2007 j’ai rajouté (#TEXTE pour avoir un décompte approximatif du nombre de mots de #TEXTE. Avec ça double, sans c’est correct ce qui semble normal et rassurant après (...)

  • MAINTAINERS : add myself as vf_dejudder.c maintainer

    16 février 2014, par Nicholas Robbins
    MAINTAINERS : add myself as vf_dejudder.c maintainer
    

    Signed-off-by : Nicholas Robbins <nickrobbins@yahoo.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] MAINTAINERS
  • ffmpeg does not work with a large number of urls in the request

    2 avril 2023, par Hack team

    If i put one url in the array, everything works perfectly, but when i add more than one url to the array, it throws an error :

    &#xA;

    HTTP error 403 Forbidden https://p16-sign-sg.tiktokcdn.com/tos-alisg-i-photomode-sg/2c182489bc4e42dcbb70f37a283cf5f1~tplv-photomode-image.jpeg?from=photomode.AWEME_DETAIL&amp;x-expires=1681740000&amp;x-signature=BaB75chVtpoZg6sE%2B0oWmxtzky0%3D https://p16-sign-sg.tiktokcdn.com/tos-alisg-i-photomode-sg/34cae24dad35476d96d8db03b46076b9~tplv-photomode-image.jpeg?from=photomode.AWEME_DETAIL&amp;x-expires=1681740000&amp;x-signature=RTyGbq%2BfLz3hNahtLJyaWycQtPI%3D: Server returned 403 Forbidden (access denied)&#xA;

    &#xA;

    However, if i put each of the urls one by one, then access is available and everything works perfectly

    &#xA;

    It feels like ffmpeg makes one out of three urls and catches an error because of it. But I don't understand how to handle urls.

    &#xA;

    My code :

    &#xA;

    from PIL import Image&#xA;from io import BytesIO&#xA;&#xA;import requests&#xA;import ffmpeg&#xA;&#xA;def make_even(n):&#xA;    return n &#x2B; n % 2&#xA;&#xA;list_of_urls = [&#xA;    "https://p16-sign-sg.tiktokcdn.com/tos-alisg-i-photomode-sg/2c182489bc4e42dcbb70f37a283cf5f1~tplv-photomode-image.jpeg?from=photomode.AWEME_DETAIL&amp;x-expires=1681740000&amp;x-signature=BaB75chVtpoZg6sE%2B0oWmxtzky0%3D",&#xA;    "https://p16-sign-sg.tiktokcdn.com/tos-alisg-i-photomode-sg/34cae24dad35476d96d8db03b46076b9~tplv-photomode-image.jpeg?from=photomode.AWEME_DETAIL&amp;x-expires=1681740000&amp;x-signature=RTyGbq%2BfLz3hNahtLJyaWycQtPI%3D",&#xA;    "https://p16-sign-sg.tiktokcdn.com/tos-alisg-i-photomode-sg/c2cb000f9332498caf6bd837f42e92c6~tplv-photomode-image.jpeg?from=photomode.AWEME_DETAIL&amp;x-expires=1681740000&amp;x-signature=4Zh5PFWNUYQhxQHuKM7P8rk8geU%3D"&#xA;]&#xA;&#xA;response = requests.get(list_of_urls\[0\])&#xA;img = Image.open(BytesIO(response.content))&#xA;&#xA;width, height = img.size&#xA;width = make_even(width)&#xA;height = make_even(height)&#xA;&#xA;(&#xA;    ffmpeg&#xA;    .input(&#x27; &#x27;.join(list_of_urls), framerate=0.33)&#xA;    .filter(&#x27;scale&#x27;, width, height)&#xA;    .output(&#x27;output.mp4&#x27;)&#xA;    .run()&#xA;)&#xA;

    &#xA;