
Recherche avancée
Autres articles (20)
-
Publier sur MédiaSpip
13 juin 2013Puis-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 -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (3840)
-
What the correct args for ffmpeg conversion
8 novembre 2013, par Andrew SimpsonI have a C# app. I am using ffmpge to convert jpgs to an OGG file. I use the process class to write to a stream buffer within my app using piping without having to write the ogg file to a disk. I then upload these bytes to my server where it is written to the hard drive.
On the server side I want to convert it to say an mp4 format. Again, I want to pipe it out to a stream buffer and allow my User to download the file.
This is my code :
Process _serverBuild = null ;
public byte[] EncodeAndUploadImages(string _args1)
{
byte[] _data = null;
try
{
_args1 = "ffmpeg.exe -i \"c:\\Cloud\\Zipped\\000EC902F17F\\f3e45e44-b61c-472b-8dc1-a8e9b9511497_00007.ogg\" avi -";
_serverBuild = new Process();
_serverBuild.StartInfo.WorkingDirectory = Environment.CurrentDirectory;
_serverBuild.StartInfo.Arguments = _args1;
_serverBuild.StartInfo.FileName = @"C:\inetpub\wwwroot\bin\ffmpeg.exe";
_serverBuild.StartInfo.UseShellExecute = false;
_serverBuild.StartInfo.RedirectStandardOutput = true;
_serverBuild.StartInfo.RedirectStandardError = true;
_serverBuild.StartInfo.RedirectStandardInput = true;
_serverBuild.StartInfo.CreateNoWindow = true;
_serverBuild.StartInfo.LoadUserProfile = false;
_serverBuild.ErrorDataReceived += _server_ErrorDataReceived;
_serverBuild.OutputDataReceived += _server_OutputDataReceived;
_serverBuild.Exited += new EventHandler(_server_Exited);
_serverBuild.EnableRaisingEvents = true;
_serverProcessHasFinished = false;
_serverBuild.Start();
mStandardOutput = _serverBuild.StandardOutput.BaseStream;
mStandardOutput.BeginRead(mReadBuffer, 0, mReadBuffer.Length, StandardOutputReadCallback, null);
_serverBuild.WaitForExit();
}
catch (Exception _ex)
{
}
finally
{
_serverBuild.ErrorDataReceived -= _server_ErrorDataReceived;
_serverBuild.OutputDataReceived -= _server_OutputDataReceived;
_serverBuild.Dispose();
}
return _data;
}
byte[] mReadBuffer = new byte[4096];
MemoryStream mStandardOutputMs = new MemoryStream();
Stream mStandardOutput;
private void StandardOutputReadCallback(IAsyncResult ar)
{
try
{
int numberOfBytesRead = mStandardOutput.EndRead(ar);
{
mStandardOutputMs.Write(mReadBuffer, 0, numberOfBytesRead);
mStandardOutput.BeginRead(mReadBuffer, 0, mReadBuffer.Length, StandardOutputReadCallback, null);
}
}
catch (Exception _ex)
{
}
}The error I get (when I test with a bat file and run within a DOS prompt) is :
Obviously my parameters are at fault. I want to keep it simple as I may want to use other formats apart from MP4.
Thanks
-
Can't preserve metadata in ffmpeg video conversion
30 avril 2017, par sakoviasI would like to preserve the creation time metadata when I convert videos using ffmpeg/avconv. Here is the file I’m trying to convert :
$ ffmpeg -i in.avi
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:00:59 with gcc 4.6.3
Input #0, avi, from 'in.avi':
Metadata:
creation_time : 2013-08-12 06:59:14
encoder : CanonMVI06
Duration: 00:00:12.26, start: 0.000000, bitrate: 14549 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc
Stream #0.1: Audio: pcm_u8, 11024 Hz, 1 channels, u8, 88 kb/sIn the first approach I run
$ ffmpeg -i in.avi -vcodec libx264 -acodec libmp3lame -r 30 -map_metadata 0 out.avi
and get an output file which doesn’t have the ’creation_date’ metadata that I’d like to keep :
$ ffmpeg -i out.avi
ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
built on Apr 2 2013 17:00:59 with gcc 4.6.3
[avi @ 0x83ba260] max_analyze_duration reached
Input #0, avi, from 'out.avi':
Metadata:
encoder : Lavf53.21.1
Duration: 00:00:12.38, start: 0.000000, bitrate: 704 kb/s
Stream #0.0: Video: h264 (Main), yuv420p, 640x480, 30 fps, 30 tbr, 30 tbn, 60 tbc
Stream #0.1: Audio: mp3, 11025 Hz, mono, s16, 200 kb/sI also tried another approach
$ ffmpeg -i in.avi -f ffmetadata metadata.txt
$ ffmpeg -i in.avi -f ffmetadata -i metadata.txt -vcodec libx264 -acodec libmp3lame -r 30 out.aviwith the same success even though metadata.txt has the right info :
;FFMETADATA1
creation_time=2013-08-12 06:59:14
encoder=CanonMVI06What am I doing wrong ?
-
Video conversion on different server than app server
13 mars 2016, par yakuzafuI’ve got my application running on server A.
When a user uploads a video via that application, the video should be transferred via FTP to another server B. I don’t know how to make something like this work :
- User uploads a video (like
.avi
,.webm
,.mkv
) - Application puts it on the FTP server
- FTP server converts that video to
.mp4
I’ve tried using FFmpeg on PHP, but it executes only on the server where the application is located, but I need it to run on the FTP server.
How can I make it work like that ?
- User uploads a video (like