Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (14)

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

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

Sur d’autres sites (5427)

  • aarch64 : vp9itxfm : Skip empty slices in the first pass of idct_idct 16x16 and 32x32

    9 janvier 2017, par Martin Storsjö
    aarch64 : vp9itxfm : Skip empty slices in the first pass of idct_idct 16x16 and 32x32
    

    This work is sponsored by, and copyright, Google.

    Previously all subpartitions except the eob=1 (DC) case ran with
    the same runtime :

    vp9_inv_dct_dct_16x16_sub16_add_neon : 1373.2
    vp9_inv_dct_dct_32x32_sub32_add_neon : 8089.0

    By skipping individual 8x16 or 8x32 pixel slices in the first pass,
    we reduce the runtime of these functions like this :

    vp9_inv_dct_dct_16x16_sub1_add_neon : 235.3
    vp9_inv_dct_dct_16x16_sub2_add_neon : 1036.7
    vp9_inv_dct_dct_16x16_sub4_add_neon : 1036.7
    vp9_inv_dct_dct_16x16_sub8_add_neon : 1036.7
    vp9_inv_dct_dct_16x16_sub12_add_neon : 1372.1
    vp9_inv_dct_dct_16x16_sub16_add_neon : 1372.1
    vp9_inv_dct_dct_32x32_sub1_add_neon : 555.1
    vp9_inv_dct_dct_32x32_sub2_add_neon : 5190.2
    vp9_inv_dct_dct_32x32_sub4_add_neon : 5180.0
    vp9_inv_dct_dct_32x32_sub8_add_neon : 5183.1
    vp9_inv_dct_dct_32x32_sub12_add_neon : 6161.5
    vp9_inv_dct_dct_32x32_sub16_add_neon : 6155.5
    vp9_inv_dct_dct_32x32_sub20_add_neon : 7136.3
    vp9_inv_dct_dct_32x32_sub24_add_neon : 7128.4
    vp9_inv_dct_dct_32x32_sub28_add_neon : 8098.9
    vp9_inv_dct_dct_32x32_sub32_add_neon : 8098.8

    I.e. in general a very minor overhead for the full subpartition case due
    to the additional cmps, but a significant speedup for the cases when we
    only need to process a small part of the actual input data.

    This is cherrypicked from libav commits
    cad42fadcd2c2ae1b3676bb398844a1f521a2d7b and
    a0c443a3980dc22eb02b067ac4cb9ffa2f9b04d2.

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/aarch64/vp9itxfm_neon.S
  • FFmpeg create video from images, insert images as frame from timestamp ?

    29 août 2018, par Hunter_AP

    So I’m trying to extract every frame of a video, then use ffprobe to see when each frame is played within a video, then be able to stitch that video back together using those extracted images and ffprobe output.

    Right now, I have this batch file :

    for %%a in (*.mp4) do (
       mkdir "%%~na_images" > NUL
       ffmpeg.exe -hide_banner -i "%%a"  -t 100 "%%~na_images\image-%%d.png"
       ffprobe.exe "%%a" -hide_banner -show_entries frame=coded_picture_number,best_effort_timestamp_time -of csv > "%%~na_frames.txt"
    )

    First, a directory is made for the images.
    Then ffmpeg extracts all the frames of the video to individual PNG files, which are numbered appropriately.
    Lastly, ffprobe sees when each frame is first shown within that video (IE : frame 1 is shown at 0 seconds, but at say 60fps then frame 2 is played at 0.016667 seconds in the video). The output looks like this :

    frame,0.000000,0
    frame,0.000000
    frame,0.017000,1
    frame,0.023220

    Where the first number (IE 0.17000 is the time the second frame appears) and the 2nd number is the frame number.
    Now my problem is using ffmpeg to take each frame and place it in the proper time within the video. I can do this using another language (probably Python), but my best guess is to make a loop to iterate through the ffprobe output file, get the frame time and image number, place that frame at the points that it appears, then move on to the next frame and time placement. Looking at the frame data I used as an example above, it ’d be something like this :

    for line in lines:
       mySplit = line.split(',')
       # Get image number 0 and insert at time 0.000000

    This is the part that I’m not sure how to do in a coding sense. I can read in and parse the lines of the ffprobe output text file, but I have no idea how to insert the frames at certain points in a video using ffmpeg or similar solutions.

  • Insert still frames into H.264 video stream

    7 juillet 2021, par Bassinator

    I'm building an application that receives video packets which are encoded as H.264 from Microsoft Teams - I get one packet for each frame of video. Specifications of the packet contents are given here. For every packet I receive, I write the byte contents of the data[] buffer to a file. This resulting file is a playable H.264 encoded video.

    &#xA;

    I'm trying to handle the scenario of syncing the audio and video streams from a Teams meeting, and inserting a still frame PNG as a "filler" when nobody has their camera on.

    &#xA;

    I used the following FFMPEG command to generate n number of seconds of H.264 video from the filler frame :

    &#xA;

    ffmpeg -loop 1 -i video_filler_frame.png -framerate 30 -c:v libx264 -t 2 -vf scale=1920:1080 C:\Code\temp\out.mp4&#xA;

    &#xA;

    This generates an MP4 file (H.264 encoded) - as a test in my code, I tried to read the contents of that generated file as a byte array and append them to the video file.

    &#xA;

    However, this doesn't appear to work. I'm guessing this is because there is some kind of header or other metadata that prevents us from doing the simple solution of just appending the bytes of the next frame.

    &#xA;

    My question is, how can I achieve what I am trying to do ? I'd like to splice in n number of frames as I am writing the individual packet contents to the file. In other words, for example, consider the following sequence :

    &#xA;

      &#xA;
    • Write packets of video to the file
    • &#xA;

    • My code determines that filler frames are needed at some point in this process&#xA;
        &#xA;
      • Insert needed number of filler frames to the file
      • &#xA;

      &#xA;

    • &#xA;

    • Continue writing packets of video as they come in
    • &#xA;

    &#xA;