Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (74)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Participer à sa traduction

    10 avril 2011

    Vous 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 (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (12998)

  • PyInstaller —noconsole still shows the console after running the app

    23 septembre 2020, par Kiren78

    I'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

    


  • Enter individual folder(s) and execute PowerShell command

    5 octobre 2020, par WorldTeacher

    I have many folders with even more subfolders, and as posted in my first question

    


    


    How to create a powershell script / or windows .bat file for ffmpeg

    


    


    I want to encode all video files in the folders.
The Script I got from mklement0 works fine but lazy as I am, I was wondering if there was a way to tell the PowerShell to enter folder 1, go to subfolder_1, and execute the ps1 script (would be perfect if it executed in a new powershell instance), wait a certain time and go into subfolder_2

    


    Repeat until no more subfolders available.

    


    Is this possible ?

    


    Edit :
The Script I got :

    


    Get-ChildItem *.mkv | where BaseName -notlike '*`[encoded]' | foreach {
ffmpeg -i $_ -c:v libx265 -c:a copy -x265-params crf=25 "$($_.BaseName)[encoded].mkv"
pause
}


    


    


    What is the reason for the desire to process each subfolder in a separate instance of powershell.exe ? by Mathias R. Jessen

    


    


    Because I want to encode multiple folders at once to save some time.
If there is a way to execute the script in the same PowerShell (as far as my understanding goes, I can only encode one folder at one time if I use the same PowerShell instance)

    


  • Add support for building fuzzer tools for an individual demuxer

    10 octobre 2020, par Michael Niedermayer
    Add support for building fuzzer tools for an individual demuxer
    

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] Makefile
    • [DH] tools/Makefile
    • [DH] tools/target_dem_fuzzer.c