Recherche avancée

Médias (91)

Autres articles (37)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accé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 (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (4563)

  • How can I use a python script to bypass google recaptcha ?

    5 janvier 2018, par demoskp90

    I am trying to create a bot that performs some actions on a website and I tried using rebreak captcha to achieve this but I am not sure how to do this.

    I am getting the following error message when running the python script :

    RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg,
    but may not work

    warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg,
    but may not work", RuntimeWarning)

    Does anyone know how to fix this ? The repository for this script is on GitHub on this link :

    https://github.com/eastee/rebreakcaptcha

  • Python, how use threading to run multiple FFmpeg processes in same time [duplicate]

    3 septembre 2022, par Marcin Kamienski

    I'm new to threading, I'm building icecast2 radio station which will restream existing stations in lower quality

    


    import ffmpeg, csv
from threading import Thread

def run(name, mount, source):
    icecast = "icecast://"+ICECAST2_USER+":"+ICECAST2_PASS+"@localhost:"+ICECAST2_PORT+"/"+mount
    stream = (
            ffmpeg
            .input(source)
            .output(
                icecast,
                audio_bitrate=BITRATE, sample_rate=SAMPLE_RATE, format=FORMAT, acodec=CODEC,
                reconnect="1", reconnect_streamed="1", reconnect_at_eof="1", reconnect_delay_max="120",
                ice_name=name, ice_genre=source,
                loglevel="verbose"
                )
            )
    return stream

with open('stations.csv', mode='r') as data:
    for station in csv.DictReader(data):
        stream = run(station['name'], station['mount'], station['url'])
        thread = Thread(target=stream.run())
        thread.start()


    


      

    1. In stations.csv are 2 stations, this code start only first station from the list, probably waiting for proccess to finish before it will start 2nd. When I change the way FFmpeg is running stream.run_async() then both stations are playing, but I'm losing control over them and stopping python didn't stop FFmpeg processes.
    2. 


    3. How can I redirect output of each thread separately in a way that gives me live view on what's going on right now ?
    4. 


    


    Edit
python threading blocks
answer question 1 but i'm still looking for solution on question 2

    


  • Extract the middle frame of a video in Python using ffmpeg ?

    10 juin 2014, par ensnare

    I have a collection of video files for which I’d like to generate thumbnails. How can I extract the middle frame of the video in Python ?

    If I execute :

    ffmpeg -i /tmp/0.mts

    I get a line returned to the shell that says :

    Duration: 00:00:04.49, start: 1.016689, bitrate: 25234 kb/s

    Maybe I could extract the timestamp after the duration and somehow divide that by 2 to get the middle frame timestamp, and extract that ?

    If I’m recursing through a large collection of videos, is there a way to keep ffmpeg "open" without the overhead of opening/closing it to identify each file ?