Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (92)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (5682)

  • Automatically inject 360° 3D metadata into a video with a Bash script

    27 octobre 2019, par Eduardo Perez

    So, I have a Cygwin script I made which concats several videos into a single video with different variations, and I want to inject stereoscopic 3D metadata into the videos through the script so I don’t have to inject each video separately using Google’s injector tool. The videos are all 360° videos with top/bottom 3D and standard stereo audio rather than spacial audio, and in an MP4 container. Is there any way that I can either inject the needed 3D metadata using FFmpeg so I can upload it to YouTube as a 360VR video, or use the source code of Google’s injector tool or some other tool in order to inject the metadata the same way that Google’s injector tool would so it’s supported as a 360° 3D video by YouTube ?

    Also, will the injector tool automatically move the MOV atom to the beginning of the file (if the injector tool is used) or will I still need to use -movflags +faststart in FFmpeg ? The videos are kind of big and apparently using FFmpeg to concat several video files together and copy the stream codecs with -movflags +faststart and then injecting the metadata using Google’s Spherical Media tool is three times longer than just using FFmpeg in the same way but without -movflags +faststart, so if there was a fast way to do this I’d greatly appreciate it.

  • How to append an image to a video using OpenCV or FFMPEG or Moviepy or other libraries ?

    19 juillet 2022, par Trần Tiến Văn

    Do you know a library in Python to add a frame image to an existing video ? The result video must have the same quality as the image.

    


    I tried to use OpenCV to add google image : https://www.google.com/search?q=google&sxsrf=ALiCzsZhrdoHnOTmg0We4dxtguCqzma5Jg:1657603343101&source=lnms&tbm=isch&sa=X&ved=2ahUKEwiTh8bTzfL4AhWhplYBHfXNAKwQ_AUoAXoECAIQAw&biw=1492&bih=739&dpr=1.25#imgrc=PRtenhDnrVrfOM

    


    But the quality decreases when the video elongates.

    


    Here is the final result video : https://drive.google.com/file/d/1ArDvoX-kN9H_oLbACk3kU1Cid93SMczC/view?usp=sharing

    


    Here is my code using OpenCV :

    


            image = cv2.imread(path_image)
        height, width, dimensions = image.shape
            
        video = cv2.VideoCapture(path_video)
        
        
        frames = []
        while(True):
            
            ret, frame = video.read()
            
            if ret == True: 
                frames.append(frame)
                # frame = frame.resize(frame, (width, height), fx=0, fy=0, interpolation = cv2.INTER_CUBIC)
                
                # Press S on keyboard 
                # to stop the process
                if cv2.waitKey(1) & 0xFF == ord('s'):
                    break
            # Break the loop
            else:
                break
            
        video2 = cv2.VideoWriter(path_video,cv2.VideoWriter_fourcc('M','J','P','G'), 30, (width, height))
        for frame in frames:
            video2.write(frame)
        video2.write(image)
        video2.release()  # releasing the video generated     
        print("Added {}".format(image_name))


    


    I hope to improve the quality of this video.

    


  • How to improve the animation quality with ffmpeg ?

    17 janvier 2017, par Loïc Poncin

    With ffmpeg I was able to get animation as an MP4 file and then I converted it into a GIF file.

    # Animation
    ani = animation.ArtistAnimation(fig, film, interval=100, blit=True, repeat_delay=100)
    ani.save('animation.mp4', writer="ffmpeg", fps=30)

    os.system("ffmpeg -i C:\my_path\\animation.mp4 C:\my_path\\animation.gif")

    My problem is that the quality is not really good.

    In my google drive (https://drive.google.com/open?id=0B7P95aWmH4DUbzJCaVZQM3Y0Y1U) you can find 3 files showing the animation : 1 PNG image (good quality), 1 MP4 file (normal quality), 1 GIF file (bad quality).

    How can I keep a good quality during the process ?