Recherche avancée

Médias (91)

Autres articles (83)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang 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.

Sur d’autres sites (5518)

  • How to pipe output of ffmpeg to three different processes ?

    19 juillet 2012, par Richard Knop

    How can I pipe output of ffmpeg without saving it to a file to three different processes ?

    Let's say I have :

    ffmpeg -i input.mpg output.yuv

    I would like to change that in order to avoid saving YUV to physical disk. I would like to pipe it to three different shell commands.

    How to do it ?

  • Am I able to stream .mp4 file with the appropriate stream key ?

    8 octobre 2022, par akumakan

    Expected Results :
Right now, this is the code that I am trying to edit. What this does is that I input a name (example.mp4) and it take the contents from a notepad with my stream keys and streams the .mp4 file I input. I want it so that I have .mp4 files with the names as stream keys and the program streams it with the appropriate stream key in the notepad. Is that possible ?

    


    Initial code :

    


    import subprocess

print("Enter the name of the file you want to stream. Include the file extension.\nExample: lofi.mp4 or image.png or pogchamp.gif")
filename = input("\nFilename: ")
with open('stream_keys.txt','r')as keys:
    for key in keys:
        subprocess.Popen(f'ffmpeg -stream_loop -1 -re -i {filename} -stream_loop -1 -i music.mp3 -c:v libx264 -preset veryfast -b:v 3000k -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 -ar 44100 -f flv "rtmp://live.twitch.tv/app/{key}"', shell=True)


    


    What I tried :
Im not proficient with coding and i tried to change the filename into keys.mp4 thinking it will have my expected results.

    


    
print("Edit Names of .mp4 files with twitch stream keys")
open('stream_keys.txt','r')as keys:
    for key in keys:
        subprocess.Popen(f'ffmpeg -stream_loop -1 -re -i {key}.mp4 -stream_loop -1 -i music.mp3 -c:v libx264 -preset veryfast -b:v 3000k -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -g 50 -c:a aac -b:a 160k -ac 2 -ar 44100 -f flv "rtmp://live.twitch.tv/app/{key}"', shell=True)


    


    thank you

    


  • ffprobe | ShowFrames | Packet Size | Divide | Add

    8 mai 2015, par Ben

    I am running this statement in shell

    for file in /path/to/files/*.mp4; do ffprobe -show_frames $file | grep "pkt_size" > ${file}.txt

    done

    It would be great if I could get this information too ;

    1. When I grep pkt_size row with numbers then I want script to - divide
      every pkt_size number with 100,
    2. then add (sum) pkt_size row numbers every after 50 rows.