
Recherche avancée
Autres articles (100)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (9656)
-
Revision 16202 : Un trim en plus sur le nom des champs car certains outils pour SQLite ...
18 septembre 2010, par marcimat@… — LogUn trim en plus sur le nom des champs car certains outils pour SQLite utilisent des guillemets doubles lorsqu’ils modifient la structure des tables... (sqlite manager, par exemple).
-
Php to play mp4 as ts file [on hold]
6 août 2019, par AhaDeas,
I need to ask if i can play mp4 video as a segment ( ts files) with 3 quilty 360p 480p and 720p
For exmaple if i uploaded mp4 file to my server and when any client play this video play as a segments like ts file and when use download manager he is cant download the orginal mp4 just 1 segments of .ts file can you please inform me the vest solution to get this done
-
How do I automate running a batch command with 3 arguments in C# (MVC 3) ?
13 janvier 2014, par kheyaI have this command in process.bat file
This file takes 3 arguments - %1 = input file path %2=output path %3=output file nameThis is how I call it in command prompt :
C:apps\xyz\>process.bat "c:\files\uploads" "c:\files\output" "123"
This creates 2 files : c :\files\output\abc.mp4 and c :\files\output\123.jpg using FFMPEG
Things work fine if I run in command prompt.@echo off
set w=480
set h=320
for "%%a" in ("%1\*.avi")
do (ffmpeg -i "%%a" -c:v libx264 -movflags +faststart -preset slow -crf 22 -b:v 500k -vf "scale=480:trunc(ow/a/2)*2" -threads 0 -c:a libfdk_aac -b:a 128k "%2/%%~na.mp4" -vf select="not(mod(n\\,10))" -r 1 -t 1 -ss 3 -s sqcif "%2\%3.jpg")But I need to automate this process. So I want a scheduled job or some other process that will process file periodically or when there are files to process.
I was thinking to create a C# Console app that will run every x minutes.
Console app will pass the 3 parameter to the bat file and run it.
But I am having nightmare with the console app. It just doesn't work.
I never see the files generated nor any error given.What will be the best practice to implement this automation in windows os (C#, MVC 3) ?
Here is what I tried that never worked :
public static string RunBatchFile(string fullPathToBatch, string args) {
using (var proc = new Process {
StartInfo =
{
FileName = fullPathToBatch,
Arguments = args,
UseShellExecute = false,
CreateNoWindow = true,
RedirectStandardOutput = false,
RedirectStandardError = false
}
})
{
try {
proc.Start();
proc.WaitForExit();
} catch (Win32Exception e) {
if (e.NativeErrorCode == 2)
return "File not found exception";
else if (e.NativeErrorCode == 5)
return "Access Denied Exception";
}
}
return "OK";
}