Recherche avancée

Médias (91)

Autres articles (50)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (6548)

  • af_channelsplit : set output channels, fix assertion failure

    28 mars 2013, par Michael Niedermayer

    af_channelsplit : set output channels, fix assertion failure

  • AAC encoder : fix assertion error re SF differences

    12 octobre 2015, par Claudio Freire
    AAC encoder : fix assertion error re SF differences
    

    Intermediate results can indeed violate SF delta. Instead of asserting
    there, just make the code safe, and assert on the final result.

    Also re-clamp SFs more often in short windows (which tend to violate
    the restriction when encoding the switch from one window to the other)

    • [DH] libavcodec/aaccoder_twoloop.h
  • 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 :

    


    HTTP error 403 Forbidden https://p16-sign-sg.tiktokcdn.com/tos-alisg-i-photomode-sg/2c182489bc4e42dcbb70f37a283cf5f1~tplv-photomode-image.jpeg?from=photomode.AWEME_DETAIL&x-expires=1681740000&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&x-expires=1681740000&x-signature=RTyGbq%2BfLz3hNahtLJyaWycQtPI%3D: Server returned 403 Forbidden (access denied)


    


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

    


    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.

    


    My code :

    


    from PIL import Image
from io import BytesIO

import requests
import ffmpeg

def make_even(n):
    return n + n % 2

list_of_urls = [
    "https://p16-sign-sg.tiktokcdn.com/tos-alisg-i-photomode-sg/2c182489bc4e42dcbb70f37a283cf5f1~tplv-photomode-image.jpeg?from=photomode.AWEME_DETAIL&x-expires=1681740000&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&x-expires=1681740000&x-signature=RTyGbq%2BfLz3hNahtLJyaWycQtPI%3D",
    "https://p16-sign-sg.tiktokcdn.com/tos-alisg-i-photomode-sg/c2cb000f9332498caf6bd837f42e92c6~tplv-photomode-image.jpeg?from=photomode.AWEME_DETAIL&x-expires=1681740000&x-signature=4Zh5PFWNUYQhxQHuKM7P8rk8geU%3D"
]

response = requests.get(list_of_urls\[0\])
img = Image.open(BytesIO(response.content))

width, height = img.size
width = make_even(width)
height = make_even(height)

(
    ffmpeg
    .input(' '.join(list_of_urls), framerate=0.33)
    .filter('scale', width, height)
    .output('output.mp4')
    .run()
)