Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (94)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (9038)

  • mjpegb : Detect changing number of planes in interlaced video

    10 mars 2012, par Michael Niedermayer
    mjpegb : Detect changing number of planes in interlaced video
    

    Reported-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC : libav-stable@libav.org
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavcodec/mjpegdec.c
  • How to accurately detect the start of the main beat and soundtracks in diverse audio tracks ?

    18 juin 2024, par SnoofFloof

    I'm working on a project where I need to edit soundtracks. The challenge is to detect when the main beat and melody of any given soundtrack is properly developed. I am certain there is better terminology to describe what I am aiming for, but ideally, I want to skip the "build-up" and immediately have the song starting at the "main part". This needs to work for various songs across different genres, which often have different structures and onset patterns, making it difficult to streamline the process.

    &#xA;

    For example :

    &#xA;

    https://www.youtube.com/watch?v=P77CNtHrnmI -> I would want to my code to identify the onset at 0:24

    &#xA;

    https://www.youtube.com/watch?v=OOsPCR8SyRo -> Onset detection at 0:12

    &#xA;

    https://www.youtube.com/watch?v=XKiZBlelIzc -> Onset detection at 0:19

    &#xA;

    I've tried using librosa to analyze the onset strength and detect beats, but the current implementation either detects the very beginning of the song or fails to consistently identify when the beat is fully developed.

    &#xA;

    This was my approach ;

    &#xA;

    def analyze_and_edit_audio(input_file, output_file):&#xA;    y, sr = librosa.load(input_file)&#xA;    tempo, beat_frames = librosa.beat.beat_track(y=y, sr=sr)&#xA;    beat_times = librosa.frames_to_time(beat_frames, sr=sr)&#xA;    main_beat_start = beat_times[0]&#xA;

    &#xA;

    I have very little experience with librosa/audio editing, so I would appreciate any suggestions you might have !

    &#xA;

  • Automatically detect box/coordinates of burned-in subtitles in a video source

    8 mars 2021, par AndroidX

    In reality I'd like to detect the coordinates of the "biggest" (both in height and width) burned-in subtitle of a given video source. But in order to do this I first need to detect the box coordinates of every distinct subtitle in the sample video, and compare them to find the biggest one. I didn't know where to start about this, so the closest thing I found (sort of) was ffmpeg's bbox video filter which according to the documentation computes "the bounding box for the non-black pixels in the input frame luminance plane", based on a given luminance value :

    &#xA;

    ffmpeg -i input.mkv -vf bbox=min_val=130 -f null -&#xA;

    &#xA;

    This gives me a line with coordinates for each input frame in the video, ex. :

    &#xA;

    [Parsed_bbox_0 @ 0ab734c0] n:123 pts:62976 pts_time:4.1 x1:173 x2:1106 y1:74 y2:694 w:934 h:621 crop=934:621:173:74 drawbox=173:74:934:621&#xA;

    &#xA;

    The idea was to make a script and loop through the filter's output, detect the "biggest" box by comparing them all, and output its coordinates and frame number as representative of the longest subtitle.

    &#xA;

    The bbox filter though can't properly detect the subtitle box even in a relatively dark video with white hardsubs. By trial and error and only for a particular video sample which I used to run my tests, the "best" result for detecting the box of any subtitle was to use a min_val of 130 (supposedly the meaningful values of min_val are in the range of 0-255, although the docs don't say anything). Using the drawbox filter with ffplay to test the coordinates reported for a particular frame, I can see that it correctly detects only the bottom/left/right boundary of the subtitle, presumably because the outline of the globe in the image below is equally bright :

    &#xA;

    enter image description here

    &#xA;

    Raising min_val to 230 slightly breaks the previously correct boundaries at the bottom/left/right side :

    &#xA;

    enter image description here

    &#xA;

    And raising it to 240 gives me a weird result :

    &#xA;

    enter image description here

    &#xA;

    However even if I was able to achieve a perfect outcome with the bbox filter, this technique wouldn't be bulletproof for obvious reasons (the min_val should be arbitrarily chosen, the burned-in subtitles can be of different color, the image behind the subtitles can be equally or even more bright depending the video source, etc.).

    &#xA;

    So if possible I would like to know :

    &#xA;

      &#xA;
    1. Is there a filter or another technique I can use with ffmpeg to do what I want
    2. &#xA;

    3. Is there perhaps another CLI tool or programming library to achieve this
    4. &#xA;

    5. Any hint that could help (perhaps I'm looking at the problem the wrong way)
    6. &#xA;

    &#xA;