Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (31)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (4738)

  • 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.
  • Extracting sound from videos using subprocess and ffmpeg

    19 décembre 2019, par NoLand'sMan

    I am trying to extract a .wav file from a .mp4 file using the following code :

    import subprocess
    import ffmpeg

    command = "ffmpeg -i afoomtx.mp4 -ab 160k -ac 2 -ar 44100 -vn audio.wav"

    subprocess.call(command, shell=True)

    The only output I get is 127. What am I doing wrong ?