Recherche avancée

Médias (91)

Autres articles (68)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (5160)

  • hwcontext_vulkan : add support for mapping multiplane images into CUDA

    7 mars, par Lynne
    hwcontext_vulkan : add support for mapping multiplane images into CUDA
    

    This patch refactors the CUDA import code to allow for Vulkan images
    with multiple planes to be mapped.

    Currently, a driver bug exists which causes NV12 images to be mapped
    incorrectly when the memory being mapped contains both planes, the
    issue has been reported to NVIDIA.
    yuv420p does work correctly, however.

    This is still an improvement, as the code used to crash when trying to
    map the memory, unless disable_multiplane=1 was given as an option.

    • [DH] libavutil/hwcontext_vulkan.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.

    


    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.

    


    My Goal :
    
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.

    


    What I Tried :
    
I attempted to write a Python script that :

    


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

    


    Here is my code :

    


    import time
import keyboard
from selenium import webdriver
from selenium.webdriver.firefox.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.options import Options

# Define paths
html_file_path = r"E:\Desktop\New folder (4)\20250309101616805.html"
geckodriver_path = r"E:\Desktop\New folder (4)\geckodriver.exe"
save_path = r"E:\Desktop\New folder (4)\New folder\output.pdf"  # Save PDF location

# Set up Firefox options
options = Options()
options.set_preference("print.always_print_silent", True)  # Silent printing
options.set_preference("print.show_print_progress", False)  # Hide progress
options.set_preference("print.print_to_file", True)  # Print to file
options.set_preference("print.save_print_settings", True)  # Save settings
options.set_preference("print.printer_PDF", "Save as PDF")  # Set printer
options.set_preference("print.print_to_file", True)  # Enable saving print output to file
options.set_preference("print.print_file_name", save_path)  # Define the save location for PDF

# Start WebDriver
service = Service(executable_path=geckodriver_path)
driver = webdriver.Firefox(service=service, options=options)

# Open the HTML file
driver.get("file:///" + html_file_path)

# Wait for the page to load
time.sleep(2)

print("Press F1 to save as PDF.")

# Listen for F1 key press
while True:
    if keyboard.is_pressed('F1'):
        print("F1 pressed, saving as PDF...")
        
        # Trigger print command (Ctrl + P)
        body = driver.find_element(By.TAG_NAME, 'body')
        body.send_keys(Keys.CONTROL + 'p')
        
        # Wait for the print dialog to process
        time.sleep(2)

        print("PDF should be saved to:", save_path)
        break

# Close browser
driver.quit()


    


    My Questions :

    


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

    


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

    


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

    


    Important :

    


    I do NOT want to use screen recording tools.

    


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

    


    Any help would be greatly appreciated !

    


  • avcodec : add AV_CODEC_ID_IVTV_VBI

    14 décembre 2024, par Scott Theisen
    avcodec : add AV_CODEC_ID_IVTV_VBI
    

    IVTV, a Linux driver for TV tuners, and V4L2 utilize
    a coding named after IVTV to carry sliced VBI data
    in MPEG streams produced by tuner cards with
    VBI capture capability and an MPEG-2 encoder SoC.

    IVTV or V4L2 driver will transport the coded data into a
    MPEG-PS private stream ("IVTV") that can be captured
    from the card alongside the video/audio.

    The data could include :
    EIA-608, Teletext, WSS (PAL widescreen signaling),
    or VPS (PAL VCR signaling).

    Signed-off-by : Marth64 <marth64@proxyid.net>

    • [DH] doc/APIchanges
    • [DH] libavcodec/codec_desc.c
    • [DH] libavcodec/codec_id.h
    • [DH] libavcodec/version.c