Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (99)

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

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

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

  • Revision 37455 : Une meilleure vérification... On ne disposait pas encore de l’id_orig ici

    20 avril 2010, par kent1@… — Log

    Une meilleure vérification... On ne disposait pas encore de l’id_orig ici

  • avcodec/mpegvideo_dec : Move memcpy'ing ctx to mpeg4videodec.c

    29 avril, par Andreas Rheinhardt
    avcodec/mpegvideo_dec : Move memcpy'ing ctx to mpeg4videodec.c
    

    When the destination MpegEncContext in ff_mpeg_update_thread_context()
    is not initialized, the source MpegEncContext is simply copied
    over it before (potentially) calling ff_mpv_common_init().
    This leads to data races when this code is executed which is why
    it should be replaced with only copying the necessary fields
    (this is for future commits).

    Given that the RV30 and RV40 decoders always call said function
    with an already initialized MpegEncContext (they use context_reinit
    in case of frame size changes), they don't need this ugly
    initialization (and are therefore race-free). This means that
    this code can be moved to the only decoder that actually needs it :
    MPEG-4. This commit does so.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/mpeg4videodec.c
    • [DH] libavcodec/mpegvideo_dec.c
  • How to Capture a Sequence of High-Quality PDF Frames from a Website (Without Screen Recording) ?

    9 mars, par Pubg Mobile

    In Firefox, I can take very high-quality screenshots of a webpage by using Ctrl + P and saving the page as a PDF. This method preserves the text, images, and code in excellent resolution.

    &#xA;

    Now, I have created a movable bar chart race in Flourish Studio and want to convert it into a high-quality video. However, I do not want to use screen recording tools.

    &#xA;

    My Goal :
    &#xA;I want to capture 30 high-resolution PDF frames from the website at different points in time (like a video sequence). Ideally, I need a tool or script that can automate the process of saving multiple PDFs from the website as it plays the animation.

    &#xA;

    What I Tried :
    &#xA;I attempted to write a Python script that :

    &#xA;

    Opens the local HTML file of my Flourish chart in Firefox using Selenium.
    &#xA;Waits for the page to load.
    &#xA;Listens for the F1 key and triggers Ctrl + P to print the page as a PDF.
    &#xA;However, the script does not save the PDF file in the output folder. I'm not sure why.

    &#xA;

    Here is my code :

    &#xA;

    import time&#xA;import keyboard&#xA;from selenium import webdriver&#xA;from selenium.webdriver.firefox.service import Service&#xA;from selenium.webdriver.common.by import By&#xA;from selenium.webdriver.common.keys import Keys&#xA;from selenium.webdriver.firefox.options import Options&#xA;&#xA;# Define paths&#xA;html_file_path = r"E:\Desktop\New folder (4)\20250309101616805.html"&#xA;geckodriver_path = r"E:\Desktop\New folder (4)\geckodriver.exe"&#xA;save_path = r"E:\Desktop\New folder (4)\New folder\output.pdf"  # Save PDF location&#xA;&#xA;# Set up Firefox options&#xA;options = Options()&#xA;options.set_preference("print.always_print_silent", True)  # Silent printing&#xA;options.set_preference("print.show_print_progress", False)  # Hide progress&#xA;options.set_preference("print.print_to_file", True)  # Print to file&#xA;options.set_preference("print.save_print_settings", True)  # Save settings&#xA;options.set_preference("print.printer_PDF", "Save as PDF")  # Set printer&#xA;options.set_preference("print.print_to_file", True)  # Enable saving print output to file&#xA;options.set_preference("print.print_file_name", save_path)  # Define the save location for PDF&#xA;&#xA;# Start WebDriver&#xA;service = Service(executable_path=geckodriver_path)&#xA;driver = webdriver.Firefox(service=service, options=options)&#xA;&#xA;# Open the HTML file&#xA;driver.get("file:///" &#x2B; html_file_path)&#xA;&#xA;# Wait for the page to load&#xA;time.sleep(2)&#xA;&#xA;print("Press F1 to save as PDF.")&#xA;&#xA;# Listen for F1 key press&#xA;while True:&#xA;    if keyboard.is_pressed(&#x27;F1&#x27;):&#xA;        print("F1 pressed, saving as PDF...")&#xA;        &#xA;        # Trigger print command (Ctrl &#x2B; P)&#xA;        body = driver.find_element(By.TAG_NAME, &#x27;body&#x27;)&#xA;        body.send_keys(Keys.CONTROL &#x2B; &#x27;p&#x27;)&#xA;        &#xA;        # Wait for the print dialog to process&#xA;        time.sleep(2)&#xA;&#xA;        print("PDF should be saved to:", save_path)&#xA;        break&#xA;&#xA;# Close browser&#xA;driver.quit()&#xA;

    &#xA;

    My Questions :

    &#xA;

    Why is my script not saving the PDF in the specified output folder ?

    &#xA;

    Is there a better way to automate capturing 30 sequential PDFs from the website at different animation frames ?

    &#xA;

    Is there any tool or script that can generate a sequence of PDFs (like 30 frames per second) from a webpage ?

    &#xA;

    Important :

    &#xA;

    I do NOT want to use screen recording tools.

    &#xA;

    I only need high-quality PDF frames that can later be converted into a video.

    &#xA;

    Any help would be greatly appreciated !

    &#xA;