Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (57)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (10383)

  • Image edited and saved in C# can not be read by ffmpeg

    13 juillet 2017, par mmijic

    I have template image (template.jpg) on which I draw some text (13.07.2017.) and than I save it to another location (temp/intro.jpg).

    Than I want to convert that and some other images into video with ffmpeg.

    If I run command

    ffmpeg.exe -f concat -safe 0 -i input.txt -c:v libx264 -vf "fps=25,format=yuv420p" out.mp4

    Those images gets concentrated into one video file. Problem is that this image edited through C# is black in final video.

    If I for example open that C# created image in Adobe Fireworks and just save it (CTRL+S) without changing anything, and re run ffmpeg command everything is fine.

    This is code which I use to add text to template image

    //INTRO IMAGE CREATION
    Bitmap image = new Bitmap(1280, 720);
    image.SetResolution(image.HorizontalResolution, image.VerticalResolution);
    Graphics g = Graphics.FromImage(image);
    g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
    g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
    g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
    g.TextRenderingHint = TextRenderingHint.AntiAliasGridFit;
    StringFormat format = new StringFormat()
    {
       Alignment = StringAlignment.Near,
       LineAlignment = StringAlignment.Near
    };

    //template
    Bitmap back = new Bitmap(Application.StartupPath + @"\Templates\template.jpg");
    g.DrawImage(back, 0, 0, image.Width, image.Height);

    //date
    string Date = dateIntro.Value.ToString("dd.MM.yyyy.");
    var brush = new SolidBrush(Color.FromArgb(255, 206, 33, 39));
    Font font = new Font("Ubuntu", 97, FontStyle.Bold, GraphicsUnit.Pixel);
    float x = 617;
    float y = 530;

    g.DrawString(Date, font, brush, x, y, format);
    g.Flush();
    image.Save(Application.StartupPath + @"\temp\intro.jpg", ImageFormat.Jpeg);
    image.Dispose();

    Image created this way can be opened and viewed in any program except converted to video with ffmpeg.

    Is there anything I’m missing while adding text and saving image in C# ?

  • How to insert image (logo) at the right-top position inside video using PHP

    8 novembre 2014, par user3502020

    What I am trying to do is, placing a small static image on inside a video clip at server side, by making use of PHP.

    For example, in TV news, you might see the culprit’s photo at a corner when the anchor describes about a crime incident.

    I listen about ffmpeg function. can somebody tell me about this and how I can to use that and insert the image inside the video.

    Thanks very much to helpers :)

  • processing .raw file image with ffmpeg api or C code

    12 mars 2013, par Ahmed Kato

    I am trying to process a .raw image file captured using vrl2, it's a h264 encoded image with yuv422 color space from a Logitech c920 webcam, dcraw is not working for me however from my previous question this command is working fine with low performance (a 32kb jpg image however using opencv capture I get a 900kb image for the same 640x480 resolution) :

    ffmpeg -f rawvideo -s 640x480 -pix_fmt yuyv422 -i frame-1.raw
    frame-1.jpg

    I need a code written in C or the ffmpeg api/OpenCV etc .. to do the same as this command,I don't want to use QProcess in Qt(I am working on a server using Qt where I am trying to send the raw file from a Raspberry PI to the server and process it their), dcraw output is a corrupted image.