
Recherche avancée
Autres articles (27)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (4964)
-
Is there any license to pay to the companies owning the rights/patent of the source/target containers/codecs for audio/video ?
4 octobre 2016, par Metin SezerWe are using ffmpeg to convert video files from these type of containers .avi, .mp4, .mov, .mkv and these codecs MPEG-4 Part 2, H.264/MPEG-4 AVC, H.262/MPEG-2 Part 2, VP8, VC-1, VP9.
The target format is : container : 3gp ; videocodec : H.264/MPEG-4 AVC ; audiocodec : AMR-NB
Our customer will allow his customers to upload personal videos in a format and get the video files on the target format.
My question is : Is there any license to pay to the companies owning the rights/patent of the source/target containers/codecs for audio/video ?
Thanks for your support
-
Padding thumbnail with color
I know, it’s been a while since I last blogged. This is because a lot of things are happening in my personal life. I recently relocated to London from Finland and started a new job. Things are quite busy but I will try to post an example now and then. In the meanwhile I would like to hear about sites using Imagick, so if your project is not super secret please post an url and maybe a small explanation what you’re doing with Imagick on the site. This is purely for my personal interest.
Anyway, to the point. Today’s example originates from a question asked by a user. How do I thumbnail the image inside given dimensions proportionally and fill the “blank” areas with a color ? Well, the answer is here
The code is for Imagick 2.1.0 but adapting to older versions should not be hard.
-
< ?php
-
/* Define width and height of the thumbnail */
-
$width = 100 ;
-
$height = 100 ;
-
-
/* Instanciate and read the image in */
-
$im = new Imagick( "test.png" ) ;
-
-
/* Fit the image into $width x $height box
-
The third parameter fits the image into a "bounding box" */
-
$im->thumbnailImage( $width, $height, true ) ;
-
-
/* Create a canvas with the desired color */
-
$canvas = new Imagick() ;
-
$canvas->newImage( $width, $height, ’pink’, ’png’ ) ;
-
-
/* Get the image geometry */
-
$geometry = $im->getImageGeometry() ;
-
-
/* The overlay x and y coordinates */
-
$x = ( $width - $geometry[’width’] ) / 2 ;
-
$y = ( $height - $geometry[’height’] ) / 2 ;
-
-
/* Composite on the canvas */
-
$canvas->compositeImage( $im, imagick: :COMPOSITE_OVER, $x, $y ) ;
-
-
/* Output the image*/
-
header( "Content-Type : image/png" ) ;
-
echo $canvas ;
-
-
?>
-
-
ffmpeg and Visual Studio 2012 stepwise
1er juin 2013, par Hitesh RohillaI am new to Visual Studio and using C# on visual studio 2012 for my codes. I have google everywhere to get answer for "How to install and use ffmpeg with visual studio ?" but nobody is giving correct answer... even on stackoverflow, code project and many personal blogs i just found discussion about some codes and dll... even before asking this question i found someone on stackoverflow has asked question "how to install ffmpeg on visual studio 2012" but unfortunately he/she assigned [duplicate] on his/her question... people say use this ; use that but nobody is telling after downloading ffmpeg what should i do...
i want to know how and where to put or import ffmpeg functionality in visual studio and then only i can code ffmpeg in visual studio.
even i found step-wise of same for php but its not helpful for me as i want to use visual studio c#
just want step-wise guide starting from download to writing code and in between... specially those [in between]...