Recherche avancée

Médias (91)

Autres articles (67)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (8783)

  • Convert Cairo ImageSurface to PIL Image object

    31 octobre 2015, par Simon

    I’m trying to convert a Cairo ImageSurface to a PIL Image object so it can be passed to an ffmpeg pipe.

    What I have so far is :

    where svgstr holds the SVG data of the image as a string.

    img = cairo.ImageSurface(cairo.FORMAT_ARGB32, 386,1080)
    ctx = cairo.Context(img)

    #render the svg as a png
    handle= rsvg.Handle(None, svgstr)
    handle.render_cairo(ctx)

    imgPIL = Image.frombuffer("RGBA",( img.get_width(),img.get_height() ),img.get_data(),"raw","RGBA",0,1)

    img44 = imgPIL.convert("RGBA")
    img44.save(p.stdin,"PNG")

    If I save the image to file rather than passing it to the pipe, I get some version of grayscale. When passed to the pipe it gives "IOError : [Errno 32] Broken pipe"

    Ultimately I’m just trying to convert SVG data to some sort of object that I can pass to the ffmpeg pipe to concatenate images into a video without having to save the images to disk first.

  • ffprobe returning video stream data twice

    15 novembre 2015, par GeorgeKat

    I’m trying to return specific values from ffprobe :

    ffprobe -v error -select_streams V:0 -show_entries stream=index,width,height,sample_aspect_ratio,display_aspect_ratio:format=duration  -of default=noprint_wrappers=1:nokey=1 test.MTS

    The stream values in the output are repeated :

    0
    1920
    1080
    1:1
    16:9
    0
    1920
    1080
    1:1
    16:9
    116.640000

    The format value is not repeated.
    If I strip the printer values to see what’s going on :

    ffprobe -v error -select_streams V:0 -show_entries stream=index,width,height,sample_aspect_ratio,display_aspect_ratio:format=duration  test.MTS

    I see a section called [PROGRAM] with stream 0 repeated within it :

    [PROGRAM]
    [STREAM]
    index=0
    width=1920
    height=1080
    sample_aspect_ratio=1:1
    display_aspect_ratio=16:9
    [/STREAM]
    [/PROGRAM]
    [STREAM]
    index=0
    width=1920
    height=1080
    sample_aspect_ratio=1:1
    display_aspect_ratio=16:9
    [/STREAM]
    [FORMAT]
    duration=116.640000
    [/FORMAT]

    Can someone please help me to return only the video stream 0 values once ?

  • FFmpeg 16:9 Aspect ratio

    29 mai 2020, par Satish Kumar

    Find the Image attachedI have a video of resolution 1920 x 1080, but it is cropped with black in all sides. I found the crop values as 1440:720:240:208.

    



    But when i apply crop with (1440:720:240:208.), the output video loses some portion of videos along the four sides, which is actually present in original input video.

    



    I want to remove only the black border on all sides, but the output video should cover the 16:9 aspect ratio without losing the actual play area as in input (original) video

    



    pl let provide the ffmpeg syntax for the same.