
Recherche avancée
Autres articles (112)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (15305)
-
Windows 2003 using php popen "start /b" because of executing ffmpeg.exe
1er juillet 2013, par Oh Seung KwonI have some problem.
There is a php code that convert audio(wav) to mp3 file with using ffmpeg.exe.
Here is some code.
$cmd = "./inc/ffmpeg.exe -i ".$file_name." -acodec mp3 -y -ac 1 -ab 96k ".$mp3_file_name;
echo $cmd;
echo "Windows";
$handle = popen("start /B ".$cmd, "r");
while(!feof($handle)) {
$read = fread($handle, 2096);
echo $read;
}
pclose($handle);Problem is when I execute this code, ffmpeg.exe process isn't terminated. And not gonna die when I stop process with using Windows task manager.
Do you have a solution for this situation ?
-
Evolution #3834 (Nouveau) : Limiter les referers (au moins dans l’espace privé)
29 septembre 2016, par Fil _Lorsqu’on consulte des sites à partir des stats, ou lorsqu’on prépare un contenu, on n’a pas forcément envie que le site destinataire voie des urls monsite/ecrire/ ?…… dans ses logs.
Les navigateurs récents respectent une referrer-policy (https://www.w3.org/TR/referrer-policy/), et je propose qu’on envoie en standard
`Referrer-Policy : origin-when-cross-origin`
Ca envoie quand même par politesse le nom de notre site, mais pas l’url de la page privée.
Pour l’espace public la logique serait d’envoyer
`Referrer-Policy : no-referrer-when-downgrade`afin de limiter la fuite d’infos quand on passe de https à http.
Cette proposition est volontairement minimaliste, il s’agit d’éviter des fuites d’informations mais pas de masquer notre activité. Si on veut rendre ça plus drastique on pourrait passer par deux constantes _REFERRER_POLICY_PUBLIC et _REFERRER_POLICY_PRIVE.
Attention à l’orthographe c’est bien Referrer-Policy avec deux R, contrairement à l’entête Referer :)
cf. aussi https://core.spip.net/projects/spip/repository/revisions/23162
-
Is it possible to adjust position of gdigrab recording region during recording ?
30 novembre 2020, par adelimaI'm using ffmpeg for recording video from defined desktop region by starting ffmpeg.exe as process with arguments like so :


public static void StartRecording(Video v) {
 string outPath = Path.Combine(Application.StartupPath, "rec", $"{v.FileName}.mkv");
 v.FFMPEG = new Process {
 StartInfo = new ProcessStartInfo() {
 Arguments = $"-hide_banner -y -thread_queue_size 512 -f gdigrab -offset_x {v.Bounds.X} -offset_y {v.Bounds.Y} -video_size {v.Bounds.Width}x{v.Bounds.Height} -show_region 0 -i desktop -vf \"scale=trunc(iw/2)*2:trunc(ih/2)*2\" -c:v libx264 -preset ultrafast -crf 18 -pix_fmt yuv420p \"{outPath}\"",
 WindowStyle = ProcessWindowStyle.Hidden,
 CreateNoWindow = true,
 UseShellExecute = false,
 FileName = Path.Combine(Application.StartupPath, "bin", "ffmpeg.exe"),
 RedirectStandardOutput = true,
 RedirectStandardInput = true,
 RedirectStandardError = true,
 }
 };
 v.FFMPEG.Start();

 new Thread(() => {
 using(StreamReader sr = v.FFMPEG.StandardError) {
 while(!sr.EndOfStream) {
 Debug.WriteLine(sr.ReadLine());
 }
 }
 }).Start();
 }

 public static void StopRecording(Video v) {
 using(StreamWriter sw = v.FFMPEG.StandardInput) {
 sw.WriteLine("q\n");
 }
 v.FFMPEG.WaitForExit();
 v.FFMPEG.Dispose();
 }



Is it possible to make changes to the
-offset_x
and-offset_y
arguments during recording ? I'm drawing the recording region bounds with directx and want to add a titlebar to it which can be dragged to move the recording region, but I'm not sure how I would let ffmpeg know that I want these offsets changed or whether it's even possible.