
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (43)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (6356)
-
ffmpeg record audio from Xvfb on Centos
25 mai 2017, par boygiandiI’m trying to record audio from Xvfb. And I have some problems :
- What’s the different between alsa and pulse. I get confuse
- Server Centos have no soud card :
arecord -l
arecord : device_list:268 : no soundcards found...
- I may have many Xvfb process, how to record video and audio from specific Xvfb process. I checked this https://trac.ffmpeg.org/wiki/Capture/ALSA#Recordaudiofromanapplication but still don’t understand how it works.
ffmpeg -f alsa -ac 2 -i hw:0,0 -acodec pcm_s16le output.wav
I seen many command like this, but I don’t know how to get hw:0,0 ( id of sound card ? )
Please help. Thanks
-
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 (...)
-
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