Recherche avancée

Médias (91)

Autres articles (73)

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

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (9872)

  • Creating image overlay on video like tiktok on a video in flutter [closed]

    12 octobre 2020, par Sarthak Singhal

    I am trying to create an app in flutter in which user can add image on a video like the given screenshot. The user should be able to move the image widget anywhere on the screen, resize it, and rotate it also. When this is done, the image should be merged on the video.

    


    For now I have used Stack and MatrixGestureDetector to let the user move the images on the screen.

    


    I want to know how to merge this image along with the exact scale, rotation and position as seen on the screen.

    


    Also if I am going in wrong direction then please guide me the right way to do image overlay on a video in flutter like that of tiktok or snapchat.

    


    As you can see, we can move image and draw text in canvas over a video. After doing all this, how to get exact positions about where to merge the images

    


  • How to use subtitles filter to a video VFR ( variable frame rate ) video ? [migrated]

    14 février 2019, par iaaflaafc

    I have created a VFR (variable frame rate) video from a list of images by using the following ffmpeg command.

    ffmpeg -f concat -i concat.txt -vsync vfr -pix_fmt yuv420p output.mp4

    where the concat.txt is a text file which contains the list of the image locations and durations in the below format.

    file image01.png
    duration 3
    file image02.png
    duration 5
    file image02.png

    I have a subtitle file (.srt file) that I would like to add to the generated video by using the subtitles filter.

    I tried to use the subtitles filter by running the following command

    ffmpeg -i output.mp4 -codec:a copy -vf subtitles=subtitles.srt -max_muxing_queue_size 4096 outputWithSubtitles.mp4

    I find that the resultant output file does not show any subtitles.

    I find that if instead of VFR video if constant frame rate video is generated, then this issue is not observed i.e., during the generation of the first video from images if -vsync vfr option is not used, then a constant frame rate video is generated and using subtitles filter works.

    Is there a way to use the subtitles filter on a VFR video ?

  • Convert RGB Video to Gray Scale video for file size reduction

    28 janvier 2020, par flamelite

    I am creating Color Video(RGB) using OpenCV in my application and generated video file needs to be uploaded to server. Color video file size is large enough to create bottleneck while uploading to server in the current bandwidth available. So, i tried to reduce the file size by converting it to grayscale video in the opencv.
    Please find below the OpenCV implementation of my current work :

    cap = cv2.VideoCapture(RGB_video_filepath)
       fps = cap.get(cv2.CAP_PROP_FPS)
       print("Input Video FPS: ".format(fps))
       outputfilepath = "gray_video_output.avi"

       mjpg_forcc = cv2.VideoWriter_fourcc('M', 'J', 'P', 'G')
       divx_forcc = cv2.VideoWriter_fourcc(*'DIVX')
       xvid_forcc = cv2.VideoWriter_fourcc(*'XVID')
       fmpp4_codec = cv2.VideoWriter_fourcc('F','M','P','4')
       mp4v_codec = cv2.VideoWriter_fourcc(*'MP4V')
       vid_writer = cv2.VideoWriter(outputfilepath, mjpg_codec, 2, (640, 480), 0)

       while cv2.waitKey(1) < 0:
           # get frame from the video
           hasFrame, frame = cap.read()


           # Stop the program if reached end of video
           if not hasFrame:
               print("Done processing !!!")
               print("Output file is stored as ", outputfilepath)
               break

           gray_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
           vid_writer.write(gray_frame)
           print("Frame shape: {} {}".format(frame_count, frame.shape))
           cv2.imshow("Camera frame", frame)
           cv2.waitKey(1)

       print("Total frames: {}".format(frame_count))
       vid_writer.release()
       cap.release()

    Using above workflow, i created the GRAY scale video, but i found that video file sizes are almost same (RGB video file size : 25 MB, Gray scale video size : 23 MB).

    After digging into OpenCV, i found that OpenCV copies the grayscale(single channel) frame 3 times and writes into video as 3 channel although OpenCV uses FFMPEG for video file writing on Linux based OS.

    I tried to convert the same RGB video file to Grayscale video file using FFMPEG as below :

    ffmpeg -i inputvideofile -vf hue=s=0 outputvideofile

    Here, i kept the Hue and saturation channel to be empty and surprisingly RGB video file(25 MB) gets converted to gray scale with file size reduced to 6 MB.

    **I am curious to know if we can achieve the video file size reduction by converting RGB to Gray scale using OpenCV on the fly ? **

    Any help/update is appreciated.
    Thanks !!