Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (36)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

Sur d’autres sites (5891)

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

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

    


      

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


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


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


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


    


    What I have tried :

    


      

    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. 


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


    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. 


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


    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. 


    11. But I do not know how to achieve that in python.
    12. 


    


    My simplified and expected codes :

    


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


    


  • 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