Recherche avancée

Médias (91)

Autres articles (46)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

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

Sur d’autres sites (9596)

  • FFMPEG encoding is rotating portrait images uploaded from the iPhone

    27 juillet 2017, par Kevin J

    I’m trying to figure out why FFMPEG is rotating my thumbnail image when a portrait video is uploaded from an iphone.

    Here is my command line test :

    ffmpeg -i video/test.mp4 -c:v libx264 -profile:v high -level 5 -crf 18 -preset medium -maxrate 10M -bufsize 16M -pix_fmt yuv420p -vf "scale=iw*sar:ih, scale=\'if(gt(iw,ih),min(1920,iw),-1)\':\'if(gt(iw,ih),-1,min(1080,ih))\'" -x264opts bframes=3:cabac=1 -movflags faststart -b:a 320k -y video/test.mp4 -vcodec mjpeg -vframes 1 -an -f rawvideo -s 410x231 video/testthumb.jpg 2>&1

    Then the portrait image is rotated 90 degrees to be made a landscape image, but the video stays portrait. How can I keep the orientation the same ?

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