Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (57)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (7547)

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