Recherche avancée

Médias (91)

Autres articles (41)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    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 (...)

Sur d’autres sites (7398)

  • FFMPEG filtergraph 'warning, too many B-frames in a row' [on hold]

    26 juin 2017, par Leif Andersen

    I am trying to append two videos together with FFmpeg’s filtergraph. One video is sized 1920x1080 at 30fps, and another 1280x720 at 25fps. Both use yuv420p, and have the same pixel densities. I am currently ignoring the audio tracks. The following is my filtergraph :

    [video2]fifo[video3];
    [video3]pad=width=1920:height=1080[video9];
    [video9]fps=fps=25[video11];
    [video11]setpts=expr=PTS-STARTPTS[video17];

    [video6]fifo[video7];
    [video7]pad=width=1920:height=1080[video13];
    [video13]fps=fps=25[video15];
    [video15]setpts=expr=PTS-STARTPTS[video19];

    [video17][video19]concat=v=1:a=0:n=2[video21];
    [video21]pad=width=1920:height=1080[video23];
    [video23]fps=fps=25[video25];
    [video25]format=pix_fmts=yuv420p[video27]

    The first chain tries to convert the first video into a common format, that starts at 0 for the concat filter. The second chain does the same as the first. Finally, the third chain concatenates them videos together, and sets some properties for the resulting playlist.

    Unfortunately, when I run this error, ffmpeg repeatedly outputs :

    [mpeg4 @ 0x7fc16a810600] warning, too many B-frames in a row

    When finished, I see the first video, padded to the correct resolution and frame rate, but instead of the second Video I see black. Additionally, the entire video is several days in length, starting with the first Video and ending in several days of just black.

    I cannot figure out why I am getting this error, as it seems like I am setting the videos to have identical properties. What am I missing ?

    Also, for what its worth, I am using FFmpeg’s C API rather than the command line tool. I am using libavformat/libavcodec/libavutil to do the encoding/decoding and libavfilter for the filtergraph.

  • Encoding of two full hd streams in Linux + GPU with Intel HD4000 / VA API / FFMPEG / OpenGL

    27 juin 2017, par qknight

    i want to encode/stream two full hd streams in realtime from my laptop to a remote location using linux/xorg on the host.

    VA API

    for this i’ve been playing with the VA API but the performance is pretty bad with 5.59 fps (see paste below).

    FFMPEG

    using ffmpeg with CPU encoding i get about 200 fps but then all cores of my Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz are busy and the fan turns on.

    future plans

    i want GPU support in encoding and later integrate this into a program which streams a virtual xorg ’screen’, see https://lastlog.de/wiki/index.php/Raspberry_PI_virtual_screen for more details on my plans.

    maybe h264 isn’t even what i want ? so if someone advices towards a different implementation, i’d welcome that.

    besides VA API there seems to be QuickSync but i didn’t experiment with that yet as it is not packaged on NixOS just yet.

    note : i need a library to have a smooth integration into the code.

    h264encode -w 1920 -h 1080 —profile MPSource frame is 1920x1080 and will code clip to 1920x1088 with crop
    

    INPUT:Try to encode H264...
    INPUT : Resolution : 1920x1080, 60 frames
    INPUT : FrameRate : 30
    INPUT : Bitrate : 14929920
    INPUT : Slieces : 1
    INPUT : IntraPeriod : 30
    INPUT : IDRPeriod : 60
    INPUT : IpPeriod : 1
    INPUT : Initial QP : 26
    INPUT : Min QP : 0
    INPUT : Source YUV : AUTO generated
    INPUT : Coded Clip : /tmp/test.264
    INPUT : Rec Clip : Not save reconstructed frame

    libva info : VA-API version 0.38.1
    libva info : va_getDriverName() returns 0
    libva info : Trying to open /run/opengl-driver/lib/dri/i965_drv_video.so
    libva info : Found init function __vaDriverInit_0_38
    libva info : va_openDriver() returns 0
    Use profile VAProfileH264Main
    Support rate control mode (0x12):CBR CQP
    RateControl mode : CQP
    Support VAConfigAttribEncPackedHeaders
    Support packed sequence headers
    Support packed picture headers
    Support packed slice headers
    Support packed misc headers
    Support 1 RefPicList0 and 1 RefPicList1
    Loading data into surface 15.....Complete surface loading
    \00000059(054456 bytes coded)

    PERFORMANCE : Frame Rate : 5.59 fps (60 frames, 10730 ms (178.83 ms per frame))
    PERFORMANCE : Compression ratio : 51:1
    PERFORMANCE : UploadPicture : 10467 ms (174.45, 97.55% percent)
    PERFORMANCE : vaBeginPicture : 0 ms (0.00, 0.00% percent)
    PERFORMANCE : vaRenderHeader : 1 ms (0.02, 0.01% percent)
    PERFORMANCE : vaEndPicture : 42 ms (0.70, 0.39% percent)
    PERFORMANCE : vaSyncSurface : 244 ms (4.07, 2.27% percent)
    PERFORMANCE : SavePicture : 7 ms (0.12, 0.07% percent)
    PERFORMANCE : Others : -31 ms (71582787.75, 40027653.91% percent)
    (Multithread enabled, the timing is only for reference)

    i’ve seen https://www.reddit.com/r/linux/comments/1qk1yu/is_there_currently_opensource_software_to_encode/ though but i’m not sure what do do with it.

  • How to apply multiple filters and inputs with ffmpeg

    24 juillet 2017, par Jason

    Not only do I have multiple filters, I have multiple inputs that I want to overlay. I usually have to them in 2-3 steps and wonder how to do it all in one command as it should be the most efficient way ?

    1 and 2 literally identical. For readability, I’ve cut out the actual filters which are very long and complicated.

    1. image slide in left onto video
    2. Take output of 1, image slide in right
    3. Take output 2, textbox image fade in
    4. Take output3, text fade in (finish)

      1)
      ffmpeg -i input.mp4 -loop 1 -i image.jpg -filter_complex \
           "[1]scale=640:-1[i0]; \
            [i0]drawbox=color=white:t=15[i1]; \
            [i1]format=,fade=[i2]; \
            [i2]rotate=[i3]; \
            [0][i3]overlay= \
      -c:v libx264 -vb 10M output1.mp4

      2)
      ffmpeg -i output1.mp4 -loop 1 -i image2.jpg -filter_complex \
           "[1]scale=[i0]; \
            [i0]drawbox=[i1]; \
            [i1]format=,fade=[i2]; \
            [i2]rotate=[i3]; \
            [0][i3]overlay=" \
      -c:v libx264 -vb 10M output2.mp4

      3)
      ffmpeg -i output2.mp4 -i image3.jpg -filter_complex \
           "[1]scale=1080:-1 [ovrl], \
            [ovrl]format=fade=[i]; \
            [0][i]overlay=" \
      -c:v libx264 -vb 10M output4.mp4


      4)
      ffmpeg -i output4.mp4 -filter_complex "drawtext=" -vb 10M finaloutput.mp4