Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (32)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

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

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (6462)

  • Center crop image overlay using FFmpeg

    27 mai 2020, par HB.

    I currently have an image that is being overlayed on top of a video, as demonstrated in this image :

    



    original

    



    The blue square is representing the video and the purple lines are representing the image on top of the video.

    




    



    Currently, I have the following command :

    



    "-i", InputVideoPath, "-i", InputImagePath, "-filter_complex", "[0:v]scale=iw*sar:ih,setsar=1,pad='max(iw\\,2*trunc(ih*9/16/2))':'max(ih\\,2*trunc(ow*16/9/2))':(ow-iw)/2:(oh-ih)/2[v0];[1:v][v0]scale2ref[v1][v0];[v0][v1]overlay=x=(W-w)/2:y=(H-h)/2[v]", "-map", "[v]", "-map", "0:a", "-c:v", "libx264", "-preset", "ultrafast", "-r", "30", OutputPath


    



    This adds black padding to the sides of the video and outputs the following :

    



    Output

    



    But I would like the center crop the image that is being overlayed instead, giving me this output :

    



    DesiredResult

    



    I've seen answers that demonstrate how to crop an image or crop 2 videos, but I couldn't find a way to center crop an image that is being overlayed on top of a video.

    



    The video I'm testing with is 1920x1080 and the size of the image is not constant.

    



    Any help in achieving this will be appreciated.

    




    



    EDIT (This edit is to add more clarification).

    



    Please have a look at the image below :

    



    enter image description here

    



    The image above demonstrates :

    



      

    • Purple Lines : The entire screen of the device/player, this will be used as the input image. The user draws on the screen/player.
    • 


    • Blue : The input video, scaled to fill the screen
    • 


    • Green : The actual size of the input video
    • 


    



    With this example, the player/image is 1920x1080 and the actual video size is 640x640. So the video is scaled 440x440 to fill the player.

    




    



    I tried to use a simple overlay, with the hopes that it will crop the video/image and output a video with the image at the same position as what was displayed on the device, by doing the following :

    



    ffmpeg -i InputVideo -i InputImage -filter_complex "overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -c:v libx264 -preset ultrafast OutputPath


    



    But, the image is not at the same position as what it was on the device.

    



    I suspect that I will have to take into account the size difference between the scaling of the video to fit into the video player.

    



    I'm not sure how I can do this ?

    


  • Add an image at end of video using ffmpeg

    10 mai 2020, par binu j

    I need to add an image at the end of the video for 1 second.
There are 2 images image1 is for square type videos and image2 is for vertical (full screen videos).

    



    I'm using php on my server. i can create a separate videos each images and when i try to add it to the videos it fails. i tried many commands and everything failed.

    



    used this command to convert image to video

    



    exec('ffmpeg -loop 1 -i image1.png -c:v libx264 -t 5 -pix_fmt yuv420p -vf scale=320:240 out.mp4');


    



    even tried this solution FFMPEG add image at the end of a video for it does not create any output.

    



    anybody help me with this condition 
my ffmpeg version 3.4.6-0ubuntu0.18.04.1

    


  • ffmpeg show wrong with/height of video

    6 mai 2020, par boygiandi

    I have this video : https://media.gostream.co/uploads/gostream/9wkBeGM7lOfxT902V86hzI22Baj2/23-4-2020/videos/263a34c5a2fe61b33fe17e090893c04e-1587640618504_fs.mp4

    



    When I play it on Google Chrome, it's vertical video. But when I check with ffmpeg

    



    ffmpeg -i "https://media.gostream.co/uploads/gostream/9wkBeGM7lOfxT902V86hzI22Baj2/23-4-2020/videos/263a34c5a2fe61b33fe17e090893c04e-1587640618504_fs.mp4"


    



    It show video dimensions are 1080x1080

    



    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.35.101
  Duration: 00:00:39.51, start: 0.000000, bitrate: 1577 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x1080 [SAR 9:16 DAR 9:16], 1464 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
At least one output file must be specified


    



    And when I livestream this video to Facebook, it scaled vertical video into square form : https://imgur.com/a/A8dQ7j7

    



    How can I correct video size when livestream ?