Recherche avancée

Médias (91)

Autres articles (53)

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

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (9457)

  • 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

    


  • Revision b45438181c : Rewrite filter_selectively_horiz for parallel loopfiltering Added loop filter m

    9 novembre 2013, par Yunqing Wang

    Changed Paths :
     Modify /vp9/common/vp9_loopfilter.c



    Rewrite filter_selectively_horiz for parallel loopfiltering

    Added loop filter mask checking, and made the caller function
    ready for implementation of parallel loopfiltering in horizontal
    direction.

    Next, we need to go through the loopfilter functions (both c and
    optimized versions), and provide 16-byte wide loopfiltering for
    each filter type.

    Change-Id : Ifef47e7ef9086ebc2fd6ca7ede8f27c9bbf79e66

  • Server-side generated video with custom texture - Where to start ?

    12 février 2014, par opznhaarlems

    I am working on a project in which a user can upload an image and then after uploading the image, a video is generated and then displayed, containing the image which was uploaded as some sort of texture/mask. (Like they do in Elf Yourself).

    The original video should contain some sort of placeholder for the image to allow it to move around and be transformed on a matrix.

    I'm not really sure where to start off or how I should even call such a merging/blending process in the first place.

    A few requirements I've came up with so far :
    - The server runs PHP
    - I am able to use GD, Imagick and FFMPEG

    Regards