Recherche avancée

Médias (91)

Autres articles (22)

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (3788)

  • avcodec/lagarith : Sanity check scale

    28 janvier 2020, par Michael Niedermayer
    avcodec/lagarith : Sanity check scale
    

    A value of 24 and above can collaps the range to 0 which would not work.

    Fixes : Timeout (75sec -> 21sec)
    Fixes : 18707/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LAGARITH_fuzzer-5708950892969984

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/lagarith.c
  • 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) &lt; 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 !!

  • avfilter/scale : separate exprs parse and eval

    31 décembre 2019, par Gyan Doshi
    avfilter/scale : separate exprs parse and eval
    

    Retains parsed expressions which allows for better
    error-checking and adding animation support.

    • [DH] libavfilter/scale_eval.c
    • [DH] libavfilter/vf_scale.c