
Recherche avancée
Autres articles (91)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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 (21130)
-
src/flac/utils.c : Make sure get_console_width() returns value > 0.
8 juillet 2014, par Erik de Castro Loposrc/flac/utils.c : Make sure get_console_width() returns value > 0.
Previous version of get_console_width() may return 0 which will result in
a division by 0 in stats_print_name() :console_width = get_console_width() ;
len = strlen_console(name)+2 ;
console_chars_left = console_width - (len % console_width) ;Bug-report : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739613
Patch-from : lvqcl <lvqcl.mail@gmail.com> -
PHP ffmpeg exec returns null
19 mars 2012, par benedict_wI'm trying to run ffmpeg through a PHP exec call, I've been debugging for a while and looked at lot of responses on here, but still not found any answers...
My simplified call is :
$cmd = 'ffmpeg 2>&1';
exec(escapeshellcmd($cmd), $stdout, $stderr);
var_dump($stderr);
var_dump($stdout);
var_dump($cmd);
exit;My output is $stderr = int(1) and $stdout = array(0)
Also I tried
shell_exec($cmd)
which returnsNULL
.cmd.exe has permissions set for the IUSR account - e.g. I can run
$cmd = 'dir'
and see a directory listing output.PHP is not running in safe mode.
The ffmpeg.exe is in the same directory as my php file, but I have the same response giving an absolute path to the ffmpeg.exe file in
$cmd
.ffmpeg is executing fine from the command line.
I'm running Windows XP, IIS and PHP 5.3.
EDIT :
If I run 'ffmpeg -h' I get the help commands, which must indicated that ffmpeg is recognised
I've increased the PHP memory limit to 1024 - no luck.
-
Error launching ffmpeg in Windows service for screen recording using GDI capture and issue when screen is locked
21 mai 2023, par Артем АртемычI have a Go application that works as Windows service. It launches ffmpeg to record the screen using the Win32 GDI-based screen capture device. However, when the service runs under the SYSTEM account, ffmpeg fails to start, and I receive the following error :


[gdigrab @ 000001ff2a1ea200] Capturing whole desktop as 1024x768x32 at (0,0)
[gdigrab @ 000001ff2a1ea200] Failed to capture image (error 5)
[gdigrab @ 000001ff2a1ea200] Could not find codec parameters for stream 0 (Video: bmp, none, 125831 kb/s): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, gdigrab, from 'desktop':
 Duration: N/A, bitrate: 125831 kb/s
 Stream #0:0: Video: bmp, none, 125831 kb/s, 5 fps, 1000k tbr, 1000k tbn
Output #0, mpegts, to 'pipe:1':
Output file #0 does not contain any stream




However, if I run ffmpeg using the token of the current user, like this :


token, _ := wintoken.GetInteractiveToken(wintoken.TokenLinked) // using the "github.com/fourcorelabs/wintoken" library
a.cmd = exec.Command("ffmpeg", params...)
a.cmd.SysProcAttr = &syscall.SysProcAttr{
 Token: syscall.Token(token.Token()),
 CreationFlags: 0x08000000,
 HideWindow: true,
}



the screen recording works. But as soon as the UAC prompt appears or the screen is locked (win+L), the recording stops with the following error :


[gdigrab @ 00000258d9efa540] Failed to capture image (error 5)
Error demuxing input file 0: I/O error
desktop: I/O error



I have tried running ffmpeg with psexec :


timeout 10 /NOBREAK && psexec -i -h -d -s ffmpeg -f gdigrab -framerate 5 -i desktop -c:v libx264 -preset veryfast -bf 2 -g 150 out.mp4




If recording starts while the screen is locked, everything works fine, i.e. ffmpeg records the locked screen. However, I haven't been able to reproduce this behavior when launching from Go. Is it possible to achieve continuous screen recording without stopped when the UAC prompt appears or the screen is locked ?
Or maybe there are other approaches in which I can solve my problem