
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
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 ;
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (10048)
-
PyInstaller —noconsole still shows the console after running the app
23 septembre 2020, par Kiren78I've built an app to download and play sound everytime someone inserts or removes USB drive from PC.

Code :

from playsound import playsound
from win10toast import ToastNotifier
from time import sleep
from typing import Callable
import threading
import os
import youtube_dl
import win32file


def play_audio():
 try:
 path = os.getcwd() + "\\audio.mp3"
 ydl_opts = {
 'format': 'bestaudio/best',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3',
 'preferredquality': '192',
 }],
 'outtmpl': path
 }

 with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download(['https://www.youtube.com/watch?v=_0HTwQjMr9k'])

 playsound(path)
 except Exception as e:
 toast = ToastNotifier()
 toast.show_toast("RIP prank failed byq", "no ogolnie prank failed rip co jest?", duration=20)


def get_drives():
 drive_list = []
 drivebits = win32file.GetLogicalDrives()
 for d in range(1, 26):
 mask = 1 << d
 if drivebits & mask:
 drname = '%c:\\' % chr(ord('A') + d)
 t = win32file.GetDriveType(drname)
 if t == win32file.DRIVE_REMOVABLE:
 drive_list.append(drname)
 return drive_list


def watch_drives(on_change: Callable[[dict], None] = print, poll_interval: int = 1):
 def _watcher():
 global prev
 while True:
 drives = get_drives()
 if prev != drives:
 on_change(drives)
 play_audio()
 prev = drives
 sleep(poll_interval)

 t = threading.Thread(target=_watcher)
 t.start()
 t.join()


if __name__ == '__main__':
 prev = get_drives()
 watch_drives(on_change=print)



I don't understand it but everytime the download starts and FFmpeg starts debugging everything (using youtube-dl) a couple of console windows appear for a fraction of a second and they immediately disappear. How can I TOTALLY disable the console so that even FFmpeg can't open it ?


EDIT : Yes, I've already tried using
--windowed
and-w
parameters in PyInstaller

-
Revision bd9cd9a185 : fix superframe index marker masks The superframe index marker byte carries data
13 mars 2013, par John KoleszarChanged Paths : Modify /test/superframe_test.cc Modify /vp9/vp9_dx_iface.c fix superframe index marker masks The superframe index marker byte carries data in the lower 5 bits. Only the upper 3 should be used as part of the mask to detect it. By masking with 0xf0, the previous code was incorrect (...)
-
lavc/mediacodecdec_common : enable refcounting of buffers unconditionally
18 septembre 2022, par sfan5lavc/mediacodecdec_common : enable refcounting of buffers unconditionally
This allows av_mediacodec_release_buffer to be called safely after
the decoder is closed, this was already the case with delay_flush=1.
Note that this causes holding onto frames to keep the decoding context
alive which is generally considered to be the intended behavior.Signed-off-by : sfan5 <sfan5@live.de>
Signed-off-by : Anton Khirnov <anton@khirnov.net>