Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (59)

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

  • 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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (8002)

  • avcodec/cbs_av1 : add an option to select an operating point

    15 novembre 2020, par James Almer
    avcodec/cbs_av1 : add an option to select an operating point
    

    This implements the function drop_obu() as defined in Setion 6.2.1 from the
    spec.
    In a reading only scenario, units that belong to an operating point the
    caller doesn't want should not be parsed.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/cbs_av1.c
    • [DH] libavcodec/cbs_av1.h
  • mp4 video written with ffmpeg has different first frame based on total number of frames

    25 janvier 2023, par Nitzan Weissman

    I have a code that writes and reads videos in Python, I'm doing the writing using ffmpeg. I noticed a weird phenomenon, where the first frame changes based on the total number of frames in the video. I find it weird because the first frame is a key frame (I checked it using ffprobe)

    &#xA;

    The code I'm using :

    &#xA;

    The writing function

    &#xA;

    import shutil&#xA;import subprocess&#xA;def write_h264_video(video_path: str, images: np.ndarray, fps: float):&#xA;    image_name_template = &#x27;00%04d.png&#x27;&#xA;    tmp_image_dir = (Path(video_path).parent / &#x27;tmp_imgs&#x27;)&#xA;    tmp_image_dir.mkdir()&#xA;&#xA;    for ii, image in enumerate(images):&#xA;        cv2.imwrite(f&#x27;{str(tmp_image_dir / str(ii).zfill(6))}.png&#x27;, image[..., ::-1])    &#xA;    command = f&#x27;ffmpeg -hide_banner -loglevel error -framerate {fps} -y -i {tmp_image_dir}/{image_name_template} &#x27; \&#xA;            f&#x27; -c:v libx264 -pix_fmt yuv420p {video_path} -y&#x27;&#xA;    subprocess.call(command, shell=True)&#xA;    shutil.rmtree(tmp_image_dir)&#xA;

    &#xA;

    The main code

    &#xA;

    import numpy as np&#xA;from pathlib import Path&#xA;import decord&#xA;decord.bridge.set_bridge(&#x27;torch&#x27;)&#xA;&#xA;input_video_path = Path(&#x27;&#x27;)&#xA;tmp_path = Path(&#x27;&#x27;)&#xA;input_video = decord.VideoReader(str(input_video_path))&#xA;&#xA;frames = np.zeros((20, 512, 512, 3), dtype = np.uint8)&#xA;for i in range(20):&#xA;    frames[i] = input_video[i].detach().cpu().numpy()&#xA;    &#xA;long_video_path = tmp_path / &#x27;long_video.mp4&#x27;&#xA;short_video_path = tmp_path / &#x27;short_video.mp4&#x27;&#xA;&#xA;fps = 30&#xA;write_h264_video(str(long_video_path), frames, fps=fps)&#xA;write_h264_video(str(short_video_path), frames[:10], fps=fps)&#xA;&#xA;&#xA;long_video = decord.VideoReader(str(long_video_path))&#xA;short_video = decord.VideoReader(str(short_video_path))&#xA;&#xA;long_frame_0 = long_video[0]&#xA;short_frame_0 = short_video[0]&#xA;(long_frame_0 == short_frame_0).all()&#xA;

    &#xA;

    I am supposed to get True, but I'm getting False.&#xA;I tried reading using other methods, using opencv for example, and the issue persists.&#xA;There are other ways to write videos of course, but I'm interested in ffmpeg-based ways.

    &#xA;

    Thanks !

    &#xA;

  • Revision d1cff2deb1 : Code cleanup in bitstream code. Lower case variable names, less code. Change-I

    9 avril 2013, par Dmitry Kovalev

    Changed Paths : Modify /vp9/encoder/vp9_bitstream.c Code cleanup in bitstream code. Lower case variable names, less code. Change-Id : I1abc8f592ad2343ab5c76fe2d16262741a4a894a