
Recherche avancée
Autres articles (45)
-
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 ;
Sur d’autres sites (7146)
-
Revision 30164 : Code mort bis
24 juillet 2009, par kent1@… — LogCode mort bis
-
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


-
doc/filters : apply various general fixes to vidstabdetect docs
25 avril 2013, par Stefano Sabatini