Recherche avancée

Médias (91)

Autres articles (94)

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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (12548)

  • Merge commit ’906ffed9b1b8b06979eb656989aecacb1ae75a3a’

    14 juillet 2016, par Clément Bœsch
    Merge commit ’906ffed9b1b8b06979eb656989aecacb1ae75a3a’
    

    * commit ’906ffed9b1b8b06979eb656989aecacb1ae75a3a’ :
    fate : Move Duck Truemotion 1 and 2 tests to vpx.mak

    Merged-by : Clément Bœsch <u@pkh.me>

    • [DH] tests/fate/video.mak
    • [DH] tests/fate/vpx.mak
  • 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# ?

  • Is there a way to get CRF before encode ?

    25 août 2016, par Aleko Gharibashvili

    i’m going to encode and output different files with different qualities from uploaded file( like Youtube does ). I use CRF property to reduce frames quality and file size. but at first i should know current crf of uploaded file to generate lover qualities.

    How should i get/calculate that info ?