
Recherche avancée
Autres articles (45)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (7561)
-
The Fastest Way To Learn Assembly Language
4 septembre 2011, par Multimedia Mike — ProgrammingI saw an old StackOverflow thread linked from Hacker News asking how to whether it’s worthwhile to learn assembly language and how to go about doing so. I’d like to take a stab at the last question.
The fastest way to learn an assembly language is to reverse engineer something. Seriously, start with something that you know (like a C program that you wrote yourself) and take it apart. The good news is that assembly language is very simple and you will get a lot of practice in a short amount of time with RE.
So here’s how you do it :
- Take a simple program in C and build it with your tool chain, whether GNU gcc on Linux, Xcode on Mac, or MSVC on Windows. Also, make sure to turn on debugging symbols during compilation (this will help annotate the disassembly).
- On Linux, use objdump :
objdump -d program_binary
- On Mac, use otool :
otool -tV program_binary
- On Windows : I admit, I’m a bit fuzzy on this one– I’m quite certain there’s a standard MSVC tool that prints the assembly listing.
Anyway, look at the disassembled code and find the main() function. Work from there. Whatever the first instruction is, look it up on Google. You’ll likely find various CPU manuals that will explain the simple operation of the instruction. Look up the next unfamiliar instruction, then the next. Trust me, you’ll become an ASM expert in no time.
Good luck !
-
Interact with ffmpeg from a .NET program ?
18 septembre 2011, par ShimmyI'm trying to create a .NET wrapper for media-file conversion using ffmepg, here is what I've tried :
static void Main(string[] args)
{
if (File.Exists("sample.mp3")) File.Delete("sample.mp3");
string result;
using (Process p = new Process())
{
p.StartInfo.FileName = "ffmpeg";
p.StartInfo.Arguments = "-i sample.wma sample.mp3";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
//result is assigned with an empty string!
result = p.StandardOutput.ReadToEnd();
p.WaitForExit();
}
}What actually happens is the content of the ffmpeg program is printed out to the Console app, but the
result
variable is an empty string. I want to control the conversion progress interactively, so the user doesn't even have to know I'm using ffmpeg, but he still knows the conversion progress' details and what percentage etc. the app is up to.Basically I would also be happy with a .NET wrapper for a P/Invoke to conversion function ONLY (I am not interested in a whole external library, unless I can extract the PI function from it).
Anyone with experience in ffmpeg & .NET ?
Update
Please view my further question, how to write input to a running ffmpeg process. -
Which value exactly tells the video stream bit rate in ffmpeg output ?
8 septembre 2011, par userffmpegI have a basic doubt. In the following ffmpeg output, which of the bit rate values (in bold) tells us the video bit rate ?
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MVI_0135.MOV' :
Metadata :
major_brand : qt
minor_version : 537331968
compatible_brands : qt CAEP
creation_time : 2011-04-25 14:59:29
Duration : 00:00:33.03, start : 0.000000, bitrate : 20588 kb/s
Stream #0.0(eng) : Video : h264 (Constrained Baseline), yuvj420p, 1280x720, 19028 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc
Metadata :
creation_time : 2011-04-25 14:59:29
Stream #0.1(eng) : Audio : pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Metadata :
creation_time : 2011-04-25 14:59:29Its a very basic question, but I would appreciate if anyone could tell me...