Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (61)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • 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

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

Sur d’autres sites (12047)

  • Merge remote-tracking branch ’cehoyos/master’

    25 juillet 2013, par Michael Niedermayer
    Merge remote-tracking branch ’cehoyos/master’
    

    * cehoyos/master :
    Show max bitrate for mpeg2 video streams in avcodec_string().
    Allow native compilation on the iPhone.

    Merged-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] configure
    • [DH] libavcodec/utils.c
  • ffmpeg-Error "Buffer queue overflow, dropping." when merging two videos with delay

    20 septembre 2016, par Stefan Urbansky

    I want to merge two videos (as example the iphone video from https://peach.blender.org/trailer-page/). The videos are placed on an background image with the overlay filter and the second video starts 3 seconds later.

    And I need that the audio is mixed.

    Here is my code :

    ffmpeg \
       -loop 1 -i background.png  \
       -itsoffset 0  -i trailer_iphone.m4v \
       -itsoffset 3  -i trailer_iphone.m4v \
       \
       -y \
       -t 36 \
       -filter_complex "
           [2:a] adelay=3000 [2delayed];
           [1:a][2delayed] amerge=inputs=2 [audio];
           [0][1:v] overlay=10:10:enable='between(t,0,33)' [lv1];
           [lv1][2:v] overlay=10:300:enable='between(t,0,36)' [video]
       " \
       \
       -threads 0 \
       -map "[video]" -map "[audio]" \
       -vcodec libx264 -acodec aac \
       merged-video.mp4

    I get the error message :

    [Parsed_overlay_3 @ 0x7fe892502ac0] [framesync @ 0x7fe892502b88] Buffer queue overflow, dropping.

    And the merged video has many dropped frames.

    I know that are some other posting with this error message. But the suggested solutions doesn’t work for me.

    How can I fix the problem ?

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