Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (44)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

Sur d’autres sites (9411)

  • avcodec/h264_loopfilter : Fix incorrect function parameter array size

    10 juillet 2022, par Andreas Rheinhardt
    avcodec/h264_loopfilter : Fix incorrect function parameter array size
    

    filter_mb_mbaff_edgev() and filter_mb_mbaff_edgecv()
    have a function parameter whose expected size depends upon
    another parameter : It is 2 * bsi + 1 (with bsi always being 1 or 2).
    This array is declared as const int16_t[7], yet some of the callers
    with bsi == 1 call it with only an const int16_t[4] available.
    This leads to -Wstringop-overread warnings from GCC 12.1.

    This commit fixes these by replacing [7] with [/* 2 * bsi + 1 */],
    so that the expected range and its dependence on bsi is immediately
    visible.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/h264_loopfilter.c
  • How to encode a HEVC video from YUV420 Mat data (from a hardware triggered camera) via FFmpeg in Python

    4 juillet 2023, par QuantumRiver

    I am having problems encoding a HEVC video from a series of YUV420 Mat data via FFmpeg.

    &#xA;

      &#xA;
    1. I am using python in Ubuntu-20.04 ;
    2. &#xA;

    3. I am retrieving frame data from a hardware triggered camera (BASLER), using pypylon ;
    4. &#xA;

    5. I want to write a video from that camera in HEVC codec, using my GPU-NVENC ;
    6. &#xA;

    7. I guess I have to use FFmpeg to achieve these ;
    8. &#xA;

    &#xA;

    What I have tried :

    &#xA;

      &#xA;
    1. I find that FFmpeg supports encoding from a camera, but it seems to only support webcams, not the camera I use (hardware triggered BASLER cameras with pypylon APIs) ;
    2. &#xA;

    3. I find that FFmpeg supports transfering a video from one codec to another, which is not my case ;
    4. &#xA;

    5. I find that FFmpeg supports encoding a video from a series of jpeg images. But in my case, it will be inefficient if I first save each frame into a picture and then encode them into a video ;
    6. &#xA;

    7. The frame data retrieved from camera can be converted to YUV420 (directly from pypylon), which is suitable for HEVC encoding ;
    8. &#xA;

    9. I learnt that the basic unit in FFmpeg to encode a video is AVFrame. I guess I have to first turn my YUV420 data into AVFrame, then encode AVFrames into HEVC ;
    10. &#xA;

    11. But I do not know how to achieve that in python.
    12. &#xA;

    &#xA;

    My simplified and expected codes :

    &#xA;

    camera = pylon.InstantCamera(tlf.CreateFirstDevice())&#xA;converter = pylon.ImageFormatConverter()&#xA;converter.OutputPixelFormat = pylon.PixelType_YUV420&#xA;video_handle = xxxxxx  # HEVC&#xA;while True:&#xA;    grabResult = camera.RetrieveResult(timeout, pylon.TimeoutHandling_ThrowException)&#xA;    image = converter.Convert(grabResult).GetArray()&#xA;    video_handle.write(frame)  # encode into a hevc video via ffmpeg in NVENC&#xA;

    &#xA;

  • FFMPEG : Reversing only a segment of a video file

    25 juillet 2019, par N. Johnson

    I am writing a script that takes a piece of video and then reverses the same piece of video and then concats the two together so the final video plays forwards and then loops backwards. I should note that eventually I want to be able to pull an unequal length for the reverse part.

    I can get the entire file to do this, but getting just a segment is not working as expected.

    See code below

    I’ve tried :

    %1 = timecode to seek to (the video file is only 20 seconds and never any longer)

    %2 = length of segment to pull out

    %3 = usually the same as %2 but may be different if we want to only reverse 2 seconds instead of the full 5 for example.

    ffmpeg -ss 00:00:%1 -an -i test.mp4 -t 00:00:%2 out.mp4
    :: the above works as expected

    :: this doesn't, no matter what I put into -ss. I've also tried moving -ss out front of the -i as suggested in the documentation? It gives me the right length of segment but never starts in the right place.

    ffmpeg  -an -i test.mp4 -ss 00:00:xx -t 00:00:%3 -vf reverse reversed2.mp4

    :the below works fine
    ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4

    When I run this with say %1 = 05 and %2 = 05, I get a segment from 5 seconds in that lasts 5 seconds. Then I get a seemingly random starting point and 5 seconds of reversed video. I’ve tried a number of inputs in "XX" from 10 (which I think is right) to 0 to 19 and all of them produce output. But it’s all wrong.