Recherche avancée

Médias (91)

Autres articles (105)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (12949)

  • swscale/arm : re-enable neon rgbx to nv12 routines

    22 février 2016, par Xiaolei Yu
    swscale/arm : re-enable neon rgbx to nv12 routines
    

    Commit ’842b8f4ba2e79b9c004a67f6fdb3d5c5d05805d3’ fixed clang/iphone
    build but failed on some versions of cygwin. It has now been verified
    to work on both platforms.

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

    • [DH] libswscale/arm/Makefile
    • [DH] libswscale/arm/swscale_unscaled.c
  • Respecter les rotations des vidéos

    2 mai 2011

    Les vidéos prises avec des dispositifs mobiles (Apple Iphone notamment) disposent d’une métadata de Rotation que Mediainfo peut récupérer.

    Il serait donc mieux d’inverser les hauteurs / largeurs à ce moment là et d’encoder avec rotation ... Peut être

    cf :

  • How to make an automated video of changing webpage

    21 mars 2023, par jonas wouters

    I'm currently working on a project where I need to make a recording of a webpage without opening this browser. (headless browser)&#xA;The file I'm working on is stored locally on my machine and is generated with a Python script. It's generated because it will be different for every user and will be deleted after the recording is made.

    &#xA;

    I'm currently stuck with trying to make a recording of a webpage.&#xA;Does somebody know how I can record a webpage.

    &#xA;

    Currently I'm doing this

    &#xA;

    # Make a video&#xA;def create_video(duration, name):&#xA;    # Path of the HTML file you want to record&#xA;    html_file_path = os.path.join(py_dir_path, &#x27;templates/video/&#x27;, f&#x27;{name}.html&#x27;)&#xA;    width = 1080&#xA;    height = 1920&#xA;    framerate = 30&#xA;    &#xA;    options = Options()&#xA;    options.headless = True&#xA;    options.add_experimental_option(&#x27;mobileEmulation&#x27;, {&#x27;deviceName&#x27;: &#x27;iPhone SE&#x27;})&#xA;    driver = webdriver.Chrome(options=options)&#xA;    driver.get(f&#x27;file://{html_file_path}&#x27;)&#xA;    print(driver)&#xA;    outputName = f&#x27;{name}.mp4&#x27;&#xA;&#xA;    cmd= f&#x27;ffmpeg -y -f xcbgrab -s {width}x{height} -framerate {framerate} -i :0.0&#x2B;0,0 -f alsa -i default -vcodec libx264 -pix_fmt yuv420p -preset ultrafast {outputName}&#x27;&#xA;    p = subprocess.Popen(cmd, shell=True)&#xA;&#xA;    import time&#xA;    time.sleep(duration)&#xA;&#xA;    p.kill()&#xA;

    &#xA;

    This code makes a headless browser and plays the website, but the recording process is not working for me

    &#xA;

    I've already have had working code, but this was based on making screenshots of the webpage and then pasting these screenshots after each other, this code was difficult to read and worst of all very slow.

    &#xA;

    Working bad code

    &#xA;

    # Make a video&#xA;def create_video(duration, name, timesFaster):&#xA;    # Path of the HTML file you want to record&#xA;    html_file_path = os.path.join(py_dir_path, &#x27;templates/video/&#x27;, f&#x27;{name}.html&#x27;)&#xA;    # Use function create_driver to create a driver and use this driver&#xA;    try:&#xA;        # Make a chrome window with size --> width: 390px, height: 850px&#xA;        options = webdriver.ChromeOptions()&#xA;        options.add_argument("--headless")&#xA;        options.add_experimental_option(&#x27;mobileEmulation&#x27;, {&#x27;deviceName&#x27;: &#x27;iPhone SE&#x27;})&#xA;        driver = webdriver.Chrome(options=options)&#xA;        driver.get(f&#x27;file://{html_file_path}&#x27;)&#xA;        &#xA;        # Use function capture_screenshots to take screenshots for &#xA;        capture_screenshots(driver, int(duration), name, timesFaster)&#xA;    finally:&#xA;        driver.quit&#xA;&#xA;# Make as many screens as possible in ... amount of time (... = animation_duration)&#xA;def capture_screenshots(driver, animation_duration, name, timesFaster):&#xA;    screenshots = []&#xA;    # Calculate the ending time&#xA;    end_time = time.time() &#x2B; animation_duration&#xA;    # Keeps track of amount of screenshots&#xA;    index = 1&#xA;&#xA;    try:&#xA;        # Take as many screenshots as possible until the current time exceeds the end_time&#xA;        while time.time() &lt; end_time:&#xA;            # Each time a new filename (so it does not overwrite)&#xA;            screenshot_file_name = f&#x27;capture{index}.png&#x27;&#xA;            # Save the screenshot on device&#xA;            driver.save_screenshot(screenshot_file_name)&#xA;            # Append the screenshot in screenshots ([])&#xA;            screenshots.append(screenshot_file_name)&#xA;            index &#x2B;= 1&#xA;        &#xA;        &#xA;        # Calculate the FPS&#xA;        fps = (len(screenshots)/animation_duration) * timesFaster&#xA;        print("sec: ", animation_duration/timesFaster)&#xA;        print("fps: ", fps)&#xA;        # Make the video with the FPS calculated above&#xA;        clip = ImageSequenceClip(screenshots, fps=fps)&#xA;        # File name of the result (video)&#xA;        output_file_path = os.path.join(mp4_dir_path, f"part/{name}.mp4")&#xA;        # Write the videoFile to the system&#xA;        clip.write_videofile(output_file_path, codec=&#x27;libx264&#x27;, bitrate="2M")&#xA;    finally:&#xA;        # Delete all screenshots&#xA;        for screenshot in screenshots:&#xA;            try:&#xA;                os.remove(screenshot)&#xA;            except:&#xA;                pass&#xA;

    &#xA;

    At the moment it's not that important for me that it's a local file, if I would be able to record a webpage (for example https://jonaswouters.sinners.be/3d-animatie/) this will be equally helpfull

    &#xA;

    Thanks in advance&#xA;Jonas

    &#xA;