Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (9)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

Sur d’autres sites (3910)

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