Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (67)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (15321)

  • skvideo failed to read 3gp format

    7 décembre 2022, par Zhu
    Traceback (most recent call last):&#xA;  File "D:\Anaconda\lib\site-packages\skvideo\io\ffmpeg.py", line 271, in _read_frame_data&#xA;    assert len(arr) == framesize&#xA;AssertionError&#xA;&#xA;During handling of the above exception, another exception occurred:&#xA;&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\20493\Desktop\vread\test1.py", line 11, in <module>&#xA;    video = skvideo.io.vread(dir)&#xA;  File "D:\Anaconda\lib\site-packages\skvideo\io\io.py", line 148, in vread&#xA;    for idx, frame in enumerate(reader.nextFrame()):&#xA;  File "D:\Anaconda\lib\site-packages\skvideo\io\ffmpeg.py", line 297, in nextFrame&#xA;    yield self._readFrame()&#xA;  File "D:\Anaconda\lib\site-packages\skvideo\io\ffmpeg.py", line 281, in _readFrame&#xA;    s = self._read_frame_data()&#xA;  File "D:\Anaconda\lib\site-packages\skvideo\io\ffmpeg.py", line 275, in _read_frame_data&#xA;    raise RuntimeError("%s" % (err1,))&#xA;RuntimeError&#xA;&#xA;</module>

    &#xA;

    Above is the program error,i have no idea to handle the error,hope to get your answer,thanks.

    &#xA;

    Converting 3gp format to mp4 format can be successfully read, but want to read 3gp directly.

    &#xA;

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

  • Piwik now integrated within CloudFlare

    8 novembre 2017, par Piwik Core Team — Development

    Would you like to know some quick fix in order to make your website load faster ? Would you like your users to have a better experience on your website ? One answer to that is what we call a CDN. Content Delivery Network (CDN) is a system of distributed servers that deliver content to a user based on various criterias such as geolocation.

    And the good news for you is that Piwik got recently integrated to a popular CDN : CloudFlare.

    What is CloudFlare ?

    As previously said, CloudFlare is a content delivery network (CDN).

    The three major advantages of using CloudFlare as a CDN are :

    • it is making your website load faster by providing a nearby location to your files to users
    • it also help detecting potential attacks like DDoS and takes away these risks for you
    • it runs one of the largest, fastest, and most reliable managed DNS service in the world

    Automatically add Piwik tracking code to your website

    With the integration of Piwik to CloudFlare, you can now deploy the Piwik tracking code directly through your CloudFlare account instead of tweaking the source code of your website.

    In order to do that, all you need is to log in to your CloudFlare account and click on “Apps”. Then look for Piwik within the search bar :

    Once done, click on “Preview” on your site to enter your credentials (Piwik URL and website ID) :

    Click “install” to finish the setup. The Piwik tracking code is now installed on each page of your website.

    If you have previously added the tracking code manually to your website and now use the Piwik app, don’t forget to remove the tracking code from your website. Otherwise you end up tracking every user twice.

    Important note : the Piwik CloudFlare integration only concerns the Piwik tracking code integration. For the Piwik app on Cloudflare to work you will need to have a running Piwik installed on your server, or you can start a free trial on the Piwik Analytics Cloud.

    To learn more about what Piwik integration to CloudFlare can do for you.