Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (74)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • 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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (8548)

  • ANSI Code Coverage Followup

    9 mars 2012, par Multimedia Mike — Programming

    The people behind sixteencolors.net noticed my code coverage project concerning the ANSI video decoder and asked what they could do to help. I had already downloaded 350 / 4000 of their artpacks but didn’t want to download the remainder if I could avoid it. They offered to run my tool against their local collection of files.

    Aside : They have all of the artpacks archived at Github.

    The full corpus of nearly 4000 artpacks contains over 146,000 files. Versus my sampling of 350 artpacks and 13,000 files that covered all but 45 lines of the ansi.c source file, the full corpus has files to exercise… 6 more of those lines. Whee. This means that there are files which exercise the reverse and concealed attributes, all 3 “erase in line” modes, and one more error path (which probably wasn’t a valid file anyway).

    Missing features mostly cluster around different video modes, including : 320×200 (25 rows), 640×200 (25 rows), 640×350 (43 rows), and 640×480 (60 rows) ; on the plus side, nothing tripped the “unsupported screen mode” case. There are no files that switch modes during playback.

    I guess statistical sampling theory holds out here– a small set of randomly chosen files would do a fine job covering code. But this experiment is about finding the statistical outliers.

  • avio : add detail to avio_printf() size warning

    24 décembre 2015, par Reynaldo H. Verdejo Pinochet
    avio : add detail to avio_printf() size warning
    

    Previous "currently size is limited" didn’t give away
    much in terms of useful info.

    Signed-off-by : Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>

    • [DH] libavformat/avio.h
    • [DH] libavformat/aviobuf.c
  • MoviePy and FFMPEG "No attribute" errors

    22 mars 2023, par CypherTretii

    I am trying to create a python script that will produce the type of cartoon TikToks with the satisfying video on the bottom part. I am still getting a bunch of errors like "ffmpeg has no attribute "metadata", or some other atribute that is missing"

    &#xA;

    import os&#xA;import random&#xA;import hashlib&#xA;from moviepy.editor import *&#xA;&#xA;# Function to get MD5 hash of a file&#xA;def get_md5_hash(file_path):&#xA;    with open(file_path, "rb") as f:&#xA;        bytes = f.read()&#xA;        hash = hashlib.md5(bytes)&#xA;        return hash.hexdigest()&#xA;&#xA;# Input video file path&#xA;input_file_path = "C:/Users/Kris/output_movies/Bojack.Horseman.S01E01.720p.WEBRip.x264-W4F_1.mp4"&#xA;&#xA;# Re-render the video&#xA;video = VideoFileClip(input_file_path)&#xA;video.write_videofile("re_rendered_video.mp4", codec=&#x27;libx264&#x27;)&#xA;&#xA;# Change MD5 hash&#xA;new_md5_hash = get_md5_hash("re_rendered_video.mp4")&#xA;os.rename("re_rendered_video.mp4", f"{new_md5_hash}.mp4")&#xA;&#xA;# Clear ID3 tag metadata&#xA;video = VideoFileClip(f"{new_md5_hash}.mp4")&#xA;video.reader.metadata.clear()&#xA;video.reader.close()&#xA;&#xA;# Choose random video from folder and combine with input video&#xA;random_video_path = random.choice(os.listdir("C:/Users/Kris/satisfying_vids"))&#xA;random_video = VideoFileClip(f"C:/Users/Kris/satisfying_vids/{random_video_path}")&#xA;&#xA;# Ensure the bottom video is at least as long as the input video&#xA;while random_video.duration &lt; video.duration:&#xA;    if random_video.duration * 2 &lt;= video.duration:&#xA;        random_video = concatenate_videoclips([random_video, random_video])&#xA;    else:&#xA;        duration_diff = video.duration - random_video.duration&#xA;        looped_video = random_video.subclip(0, duration_diff)&#xA;        random_video = concatenate_videoclips([random_video, looped_video])&#xA;&#xA;# If the concatenated video exceeds the length of the input video, trim it&#xA;if random_video.duration > video.duration:&#xA;    random_video = random_video.subclip(0, video.duration)&#xA;&#xA;# Resize the bottom video to match the input video resolution&#xA;random_video_resized = random_video.resize((960, 540))&#xA;&#xA;# Combine the videos in 1:1 aspect ratio with the bottom video at the bottom of the screen&#xA;final_video = clips_array([[video], [random_video_resized]])&#xA;&#xA;# Save the final video with .mp4 format&#xA;final_video.write_videofile(f"{new_md5_hash}_combined.mp4", codec=&#x27;libx264&#x27;)&#xA;&#xA;&#xA;# Increase brightness and contrast&#xA;final_video = VideoFileClip(f"{new_md5_hash}_combined.mp4")&#xA;final_video = final_video.fx(vfx.colorx, 0, [random.uniform(-0.2, 0.2), random.uniform(-1, 1)])&#xA;final_video.write_videofile(f"{new_md5_hash}_processed.mp4", codec=&#x27;libx264&#x27;)&#xA;&#xA;# Color one pixel black and crop one pixel from bottom right corner&#xA;final_video = VideoFileClip(f"{new_md5_hash}_processed.mp4")&#xA;final_video = final_video.fx(vfx.painting, paint_color=[0,0,0], width=1, height=1, x=0, y=0)&#xA;final_video = final_video.crop(x1=0, y1=0, x2=final_video.w-1, y2=final_video.h-1)&#xA;final_video.write_videofile(f"{new_md5_hash}_final.mp4", codec=&#x27;libx264&#x27;)&#xA;&#xA;

    &#xA;

    the goal for the code is :

    &#xA;

    Takes an .mp4 file as input (the file is 1920 x 1080 in terms of resolution)

    &#xA;

    Re-renders the video

    &#xA;

    Changes the MD5 Hash

    &#xA;

    Clears ID3 Tag Metadata

    &#xA;

    Choses another random video from a folder, that is 1920 x 1080 pixels in terms of resolution - combine the chosen video with the input video in 1:1 aspect ratio. Put the video that is randomly chosen from the folder on bottom side of the screen.

    &#xA;

    Increase the video’s brightness by random number ranging from -0.2 to 0.2

    &#xA;

    Increase contrast by random number ranging from -1 to 1

    &#xA;

    Color one pixel black

    &#xA;

    Crop 1 pixel from the down right angle

    &#xA;

    Save the final video with .mp4 format

    &#xA;

    This is the error I am getting when running my code :&#xA;AttributeError : 'FFMPEG_VideoReader' object has no attribute 'metadata'

    &#xA;

    Along with various missing attributes.

    &#xA;