
Recherche avancée
Autres articles (53)
-
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)
Sur d’autres sites (3342)
-
FFMPEG on Fedora but PHP Compilation confliction
11 octobre 2013, par UMII have running Xampp with PHP5.5 on Fedora from Apache Friend, with default settings what the installer package do on Linux.
When I install FFMPEG successfully and try to load from php.ini it always says :
*
11-Oct-2013 14:05:51 Europe/Berlin] PHP Warning: PHP Startup: ffmpeg: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0*
The only thing which is confusing me is that when I did phpize even that I already installed xampp server which means I have PHP running. FFMPEG phpize did not work and I had to install php-devel. Does that mean that FFMPEG is configured with PHP, other than the installed with XAMPP ? I am not sure what is happening. Whatever I do I always receive this error message in php_error_log file.
It is amazing :) that I just run below command to see what version of PHP is, I have and below are the results which are shocking one because I am in a feeling that I have PHP 5.5 installed and running from XAMMP.
[root@localhost ~]# php -v
PHP 5.2.6 (cli) (built: May 8 2008 08:53:44)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend TechnologiesHow can I get this covered that if I simple install XAMPP server on linux and want to install and configure FFMPEG along with ?
-
trying to figure out what's wrong in the code using ffmpeg.exe
5 octobre 2013, par timmackI'm trying to upload videos and convert it to flv format as well as capturing image as thumbnails.I'm using visual web developer 2008 express edition.I've done so many research online and found something using ffmpeg.exe so I've downloaded an ffmpeg.exe and has tried so many codes but unfortunately I'm still unable to make it work.I want to save the converted video file to a certain folder in my server as well as the captured image as for its thumbnails after uploading the video.I'm not sure if the ffmpeg.exe has the problem or my codes but I suspect it's in my codes.I need somebody to help me find out what's something missing on my codes to make it work. Here's my codes below for your reference. Thanks
protected void Button1_Click(object sender, EventArgs e)
{
//Convert the Video to flv format with FFMPEG
string ffmpegPath = Server.MapPath("~/ffmpeg/ffmpeg.exe");
string tempLocation = Server.MapPath("~/tempVideos/");
string mediaOutPath = Server.MapPath("~/Videos/");
string thumbOutPath = Server.MapPath("~/Thumbs/");
string currentFile = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName);
//Upload the video
string vidPath = "Videos/" + outputfile;
if (FileUpload1.PostedFile != null && FileUpload1.PostedFile.FileName != "")
{
try
{
// 10240 KB means 10MB, You can change the value based on your requirement
if (FileUpload1.PostedFile.ContentLength > 1024000000)
{
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "Alert", "alert('File is too big.')", true);
}
else
{
//then save it to the Folder
Convert(tempLocation + currentFile, mediaOutPath + currentFile, thumbOutPath + currentFile);
FileUpload1.PostedFile.SaveAs(tempLocation + currentFile);
}
}
catch (Exception ex)
{
Response.Write("Error: " + ex.Message);
}
}
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "Alert", "alert('Video file has been uploaded!')", true);
FlashVideo1.VideoURL = "tempVideos/" + currentFile;
}
protected void Convert(string fileIn, string fileOut, string thumbOut)
{
try
{
string mediaOutPath = Server.MapPath("~/Videos/");
string thumbOutPath = Server.MapPath("~/Thumbs/");
string inputfile = FileUpload1.PostedFile.FileName;
string infile = Path.GetFileNameWithoutExtension(inputfile);
fileIn = Path.GetFullPath( inputfile);
fileOut = mediaOutPath + inputfile;
thumbOut = inputfile;
string ffmpegPath = Server.MapPath("~/ffmpeg/ffmpeg.exe");
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = true;
proc.StartInfo.FileName = ffmpegPath;
//converting video to flv format
proc.StartInfo.Arguments = "-i " + fileIn + "-ar 22050 -ab 32 -f flv -s 320×240 -aspect 4:3 -y" + fileOut.Split('.')[0] + ".flv";
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.RedirectStandardError = true;
proc.StartInfo.RedirectStandardOutput = true;
proc.Start();
proc.WaitForExit();
//capturing thumbnail image of the video
proc.StartInfo.Arguments = "-i \"{0}\" -an -y -s 320x240 -ss {1} -vframes 1 -f image2 \"{2}\"" + fileIn + thumbOut.Split('.')[0] + ".jpg";
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.RedirectStandardError = true;
proc.StartInfo.RedirectStandardOutput = true;
proc.Start();
proc.WaitForExit();
proc.Close();
}
catch (Exception ex)
{
Response.Write("Error: " + ex.Message);
}
} -
Acess to path is denied in ffmpeg conversion
17 décembre 2013, par user1830062I have Windows 2008 R2 server, and am trying to convert my videos from any type to mp4 format. Everything is fine when running locally.
However, when I try to do the same on the live web server, I am able to upload the file, but then when I try to convert the file, it says the file access is denied.
Steps that I tried to sort but no clue pops the same server.
- changed the identity to network service /localhost
- gave full permission to the folder
- created virtual directory.
- impersonation is true.
I have done all these things, but no response. One thing which I found was for eg :
c:\inetpub\vhosts\mydomainname\httpdocs\myfolder_to save_uploaded_file
which is readonly by default, I couldn't change them to all permission. Please advice how to change them to read/write.
By the way, I am trying to save the converted file to
c:\inetpub\vhosts\mydomainname\httpdocs\test_folder