
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (83)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (5686)
-
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

-
I am trying to use the RTSPPlay, project of mooncatventures. But it shows me error like this
7 octobre 2013, par kamlesh shingarakhiyaI am trying to use the RTSPPlay, project of mooncatventures. But it shows me error like this.
Ld /Users/admin/Library/Developer/Xcode/DerivedData/Intercom-bpixnryueeelexfnzxtmgchcfgzq/Build/Products/Debug-iphonesimulator/Intercom.app/Intercom normal i386
cd /Volumes/IPHONE/Intercom
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/admin/Library/Developer/Xcode/DerivedData/Intercom-bpixnryueeelexfnzxtmgchcfgzq/Build/Products/Debug-iphonesimulator -F/Users/admin/Library/Developer/Xcode/DerivedData/Intercom-bpixnryueeelexfnzxtmgchcfgzq/Build/Products/Debug-iphonesimulator -F/Users/admin/Downloads/RTSPPlay-master -filelist /Users/admin/Library/Developer/Xcode/DerivedData/Intercom-bpixnryueeelexfnzxtmgchcfgzq/Build/Intermediates/Intercom.build/Debug-iphonesimulator/Intercom.build/Objects-normal/i386/Intercom.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -fobjc-link-runtime -mios-simulator-version-min=6.1 -framework FFmpegDecoder -framework FFPlayer -framework SDL -framework OpenGLES -framework MediaPlayer -framework CoreMedia -framework CoreVideo -framework MobileCoreServices -framework AVFoundation -framework CFNetwork -lbz2 -lxml2 -lz.1.1.3 -lz -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/admin/Library/Developer/Xcode/DerivedData/Intercom-bpixnryueeelexfnzxtmgchcfgzq/Build/Products/Debug-iphonesimulator/Intercom.app/Intercom
Undefined symbols for architecture i386:
"_SDL_AddTimer", referenced from:
_SDL_main in FFPlayer(main.o)
"_SDL_CloseAudio", referenced from:
_stream_component_close in FFPlayer(main.o)
"_SDL_CondSignal", referenced from:
_SDL_main in FFPlayer(main.o)
_stream_component_close in FFPlayer(main.o)
_packet_queue_abort in FFPlayer(main.o)
_packet_queue_put in FFPlayer(main.o)
"_SDL_CondWait", referenced from:
_video_thread in FFPlayer(main.o)
_subtitle_thread in FFPlayer(main.o)
_packet_queue_get in FFPlayer(main.o)
"_SDL_CreateCond", referenced from:
_SDL_main in FFPlayer(main.o)
_packet_queue_init in FFPlayer(main.o)
"_SDL_CreateMutex", referenced from:
_SDL_main in FFPlayer(main.o)
_packet_queue_init in FFPlayer(main.o)
"_SDL_CreateRGBSurface", referenced from:
_SDL_main in FFPlayer(main.o)
_video_open in FFPlayer(main.o)
"_SDL_CreateRenderer", referenced from:
_SDL_main in FFPlayer(main.o)
"_SDL_CreateThread", referenced from:
_SDL_main in FFPlayer(main.o)
_stream_component_open in FFPlayer(main.o)
"_SDL_CreateWindow", referenced from:
_SDL_main in FFPlayer(main.o)
"_SDL_Delay", referenced from:
_video_thread in FFPlayer(main.o)
_subtitle_thread in FFPlayer(main.o)
_decode_thread in FFPlayer(main.o)
"_SDL_DestroyCond", referenced from:
_do_exit in FFPlayer(main.o)
_stream_component_close in FFPlayer(main.o)
"_SDL_DestroyMutex", referenced from:
_do_exit in FFPlayer(main.o)
_stream_component_close in FFPlayer(main.o)
"_SDL_DestroyTexture", referenced from:
_video_display in FFPlayer(main.o)
"_SDL_EventState", referenced from:
_SDL_main in FFPlayer(main.o)
"_SDL_FillRect", referenced from:
_video_display in FFPlayer(main.o)
"_SDL_FreeSurface", referenced from:
_SDL_main in FFPlayer(main.o)
_do_exit in FFPlayer(main.o)
"_SDL_GL_SetAttribute", referenced from:
_SDL_main in FFPlayer(main.o)
"_SDL_Init", referenced from:
_SDL_main in FFPlayer(main.o)
"_SDL_LockSurface", referenced from:
_video_thread in FFPlayer(main.o)
"_SDL_MapRGB", referenced from:
_video_display in FFPlayer(main.o)
"_SDL_OpenAudio", referenced from:
_stream_component_open in FFPlayer(main.o)
"_SDL_PauseAudio", referenced from:
_stream_component_open in FFPlayer(main.o)
"_SDL_PixelFormatEnumToMasks", referenced from:
_SDL_main in FFPlayer(main.o)
_video_open in FFPlayer(main.o)
"_SDL_PollEvent", referenced from:
_SDL_main in FFPlayer(main.o)
"_SDL_PushEvent", referenced from:
_sdl_refresh_timer_cb in FFPlayer(main.o)
_video_thread in FFPlayer(main.o)
_decode_thread in FFPlayer(main.o)
"_SDL_RenderPresent", referenced from:
_video_display in FFPlayer(main.o)
"_SDL_SendQuit", referenced from:
-[SDLUIKitDelegate quitSdl] in SDL_uikitappdelegate.o
-[SDLUIKitDelegate applicationWillTerminate:] in SDL_uikitappdelegate.o
-[SDLUIKitDelegate applicationDidEnterBackground:] in SDL_uikitappdelegate.o
"_SDL_UnlockSurface", referenced from:
_video_thread in FFPlayer(main.o)
"_SDL_WaitEvent", referenced from:
_SDL_main in FFPlayer(main.o)
"_SDL_WaitThread", referenced from:
_do_exit in FFPlayer(main.o)
_stream_component_close in FFPlayer(main.o)
"_SDL_mutexP", referenced from:
_SDL_main in FFPlayer(main.o)
_stream_component_close in FFPlayer(main.o)
_video_thread in FFPlayer(main.o)
_subtitle_thread in FFPlayer(main.o)
_packet_queue_get in FFPlayer(main.o)
_packet_queue_abort in FFPlayer(main.o)
_packet_queue_flush in FFPlayer(main.o)
...
"_SDL_mutexV", referenced from:
_SDL_main in FFPlayer(main.o)
_stream_component_close in FFPlayer(main.o)
_video_thread in FFPlayer(main.o)
_subtitle_thread in FFPlayer(main.o)
_packet_queue_get in FFPlayer(main.o)
_packet_queue_abort in FFPlayer(main.o)
_packet_queue_flush in FFPlayer(main.o)
...
"_av_audio_convert", referenced from:
_sdl_audio_callback in FFPlayer(main.o)
"_av_audio_convert_alloc", referenced from:
_sdl_audio_callback in FFPlayer(main.o)
"_av_audio_convert_free", referenced from:
_stream_component_close in FFPlayer(main.o)
_sdl_audio_callback in FFPlayer(main.o)
"_av_bitstream_filter_next", referenced from:
_show_formats in cmdutils.o
"_av_close_input_file", referenced from:
_decode_thread in FFPlayer(main.o)
"_av_codec_next", referenced from:
_show_formats in cmdutils.o
"_av_dup_packet", referenced from:
_packet_queue_put in FFPlayer(main.o)
"_av_find_input_format", referenced from:
_opt_format in FFPlayer(main.o)
"_av_find_opt", referenced from:
_opt_default in cmdutils.o
"_av_find_stream_info", referenced from:
_decode_thread in FFPlayer(main.o)
"_av_free", referenced from:
_SDL_main in FFPlayer(main.o)
_free_subpicture in FFPlayer(main.o)
_video_thread in FFPlayer(main.o)
_packet_queue_get in FFPlayer(main.o)
"_av_free_packet", referenced from:
_sdl_audio_callback in FFPlayer(main.o)
_video_thread in FFPlayer(main.o)
_subtitle_thread in FFPlayer(main.o)
_packet_queue_flush in FFPlayer(main.o)
_decode_thread in FFPlayer(main.o)
"_av_freep", referenced from:
_free_subpicture in FFPlayer(main.o)
_packet_queue_flush in FFPlayer(main.o)
"_av_get_bits_per_sample_format", referenced from:
_sdl_audio_callback in FFPlayer(main.o)
"_av_get_int", referenced from:
_video_thread in FFPlayer(main.o)
"_av_get_string", referenced from:
_set_context_opts in cmdutils.o
"_av_gettime", referenced from:
_SDL_main in FFPlayer(main.o)
_get_master_clock in FFPlayer(main.o)
_video_display in FFPlayer(main.o)
_get_video_clock in FFPlayer(main.o)
_stream_component_open in FFPlayer(main.o)
_sdl_audio_callback in FFPlayer(main.o)
_stream_pause in FFPlayer(main.o)
...
"_av_iformat_next", referenced from:
_show_formats in cmdutils.o
"_av_init_packet", referenced from:
_SDL_main in FFPlayer(main.o)
_decode_thread in FFPlayer(main.o)
"_av_log", referenced from:
_decode_thread in FFPlayer(main.o)
"_av_malloc", referenced from:
_packet_queue_put in FFPlayer(main.o)
"_av_mallocz", referenced from:
_SDL_main in FFPlayer(main.o)
"_av_metadata_get", referenced from:
_decode_thread in FFPlayer(main.o)
"_av_oformat_next", referenced from:
_show_formats in cmdutils.o
"_av_open_input_file", referenced from:
_decode_thread in FFPlayer(main.o)
"_av_protocol_next", referenced from:
_show_formats in cmdutils.o
"_av_read_frame", referenced from:
_decode_thread in FFPlayer(main.o)
"_av_read_pause", referenced from:
_decode_thread in FFPlayer(main.o)
"_av_read_play", referenced from:
_decode_thread in FFPlayer(main.o)
"_av_realloc", referenced from:
_opt_default in cmdutils.o
"_av_register_all", referenced from:
_SDL_main in FFPlayer(main.o)
"_av_set_string3", referenced from:
_opt_default in cmdutils.o
_set_context_opts in cmdutils.o
"_av_strdup", referenced from:
_parse_options in cmdutils.o
"_av_strlcat", referenced from:
_show_help_options in cmdutils.o
"_av_strlcpy", referenced from:
_show_help_options in cmdutils.o
_SDL_main in FFPlayer(main.o)
"_avcodec_alloc_context2", referenced from:
_SDL_main in FFPlayer(main.o)
"_avcodec_alloc_frame", referenced from:
_video_thread in FFPlayer(main.o)
"_avcodec_close", referenced from:
_stream_component_close in FFPlayer(main.o)
"_avcodec_decode_audio3", referenced from:
_sdl_audio_callback in FFPlayer(main.o)
"_avcodec_decode_subtitle2", referenced from:
_subtitle_thread in FFPlayer(main.o)
"_avcodec_decode_video2", referenced from:
_video_thread in FFPlayer(main.o)
"_avcodec_find_decoder", referenced from:
_stream_component_open in FFPlayer(main.o)
"_avcodec_flush_buffers", referenced from:
_sdl_audio_callback in FFPlayer(main.o)
_video_thread in FFPlayer(main.o)
_subtitle_thread in FFPlayer(main.o)
"_avcodec_open", referenced from:
_stream_component_open in FFPlayer(main.o)
"_avcodec_register_all", referenced from:
_SDL_main in FFPlayer(main.o)
"_avcodec_thread_init", referenced from:
_stream_component_open in FFPlayer(main.o)
"_avcodec_version", referenced from:
_print_all_lib_versions in cmdutils.o
"_avdevice_register_all", referenced from:
_SDL_main in FFPlayer(main.o)
"_avdevice_version", referenced from:
_print_all_lib_versions in cmdutils.o
"_avfilter_version", referenced from:
_print_all_lib_versions in cmdutils.o
"_avformat_alloc_context", referenced from:
_SDL_main in FFPlayer(main.o)
"_avformat_seek_file", referenced from:
_decode_thread in FFPlayer(main.o)
"_avformat_version", referenced from:
_print_all_lib_versions in cmdutils.o
"_avpicture_alloc", referenced from:
_SDL_main in FFPlayer(main.o)
"_avutil_version", referenced from:
_print_all_lib_versions in cmdutils.o
"_dump_format", referenced from:
_decode_thread in FFPlayer(main.o)
"_parse_date", referenced from:
_parse_time_or_die in cmdutils.o
"_sws_getCachedContext", referenced from:
_video_thread in FFPlayer(main.o)
"_sws_getContext", referenced from:
_SDL_main in FFPlayer(main.o)
"_sws_scale", referenced from:
_video_thread in FFPlayer(main.o)
"_swscale_version", referenced from:
_print_all_lib_versions in cmdutils.o
"_url_feof", referenced from:
_decode_thread in FFPlayer(main.o)
"_url_ferror", referenced from:
_decode_thread in FFPlayer(main.o)
"_url_ftell", referenced from:
_SDL_main in FFPlayer(main.o)
"_url_set_interrupt_cb", referenced from:
_decode_thread in FFPlayer(main.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)Can someone plz help me, thanx guys. I have checked that SDL.Framework and I dont see any problem in it. Does I have to add some library in my project to run this project or in mac.
-
Revision 675ec943db : Fix including test file twice. The test file niklas_1280_720_30.yuv may be incl
19 décembre 2014, par Frank GalliganChanged Paths :
Modify /test/test-data.mk
Fix including test file twice.The test file niklas_1280_720_30.yuv may be included twice.
Change-Id : I44512073e9e430a8e10fbce5afd62041e0edea17