Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (32)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (5464)

  • Some modifications for ffmpeg scripts

    21 mars 2021, par FoxFr

    I wish to modify the following script to put some options, obviously if you can explain ... is better my learning

    


    ffmpeg \
-i /dev/video0 \
-r 1 -stream_loop -1 -f image2 -i "/home/pi/videopi/map/map.jpg" \
-stream_loop -1 -re -i "/home/pi/videopi/bed.mp3" \
-filter_complex "[0][1]overlay=enable='lt(mod(t,20),10)'[v];[v]drawtext=textfile=/home/pi/videopi/gps.txt:reload=1:x=30:y=350:fontfile=/usr/share/fonts/truetype/lato/Lato-Black.ttf:fontsize=30:fontcolor=white[v]" \
-map "[v]" \
-map 2:a \
-c:v libx264 -b:v 4000k -maxrate 4000k -bufsize 8000k -g 50 -c:a aac \
-s 640x480 \
-f flv rtmp://a.rtmp.youtube.com/live2/[google_key_stream]


    


    My desired customization :

    


      

    • Add an another webcam (-i /dev/video1) : 30" video0 -> 30" video1 -> 10" image2 -> 30" video0 ... (a loop)
    • 


    • Add a png overlay on the final comp
    • 


    • how add a transparent png behind the text
    • 


    • plug an audio input (by jack) to add over the bed.mp3
    • 


    • save the file in same time of live (-f flv live.mp4 ??)
    • 


    


    The part -filter_complex is the most difficult for me to understand

    


    Thanks you very much for you help, it's for finish my personal and important project

    


  • Stream microphone from client browser to remote server and pass audio in real time to ffmpeg to combine with a second video source

    4 mai 2021, par fakeguybrushthreepwood

    As a beginner at working with these kinds of real-time streaming services, I've spent hours trying to work out how this is possible, but can't seem to work out I'd precisely go about it.

    


    I'm prototyping a personal basic web app that does the following :

    


      

    1. In a web browser, the web application has a button that says 'Stream Microphone' - when pressed it streams the audio from the user's microphone (the user obviously has to consent to give permission to send their microphone audio) through to the server which I was presuming would be running node.js (no specific reason at this point, just thought this is how I'd go about doing it).

      


    2. 


    3. The server receives the audio close enough to real-time somehow (not sure how I'd do this).

      


    4. 


    5. I can then run ffmpeg on the command line and take the real-time audio coming in real-time and add it as the sound to a video file (let's just say I'm going to play testmovie.mp4) that I want to play.

      


    6. 


    


    I've looked at various solutions - such as maybe using WebRTC, RTP/RTSP, Piping audio into ffmpeg, Gstreamer, Kurento, Flashphoner and/or Wowza - but somehow they look overly complicated and usually seem to focus on video along with audio. I just need to work with audio.

    


  • Is every instance of subprocess.Popen() its own shell ?

    26 avril 2021, par saa-sof

    Background :
I'm trying to make an application that plays music via a GUI (Tkinter), Youtube_DL and FFmpeg. While the actual application is done it also requires FFmpeg to be an environment variable to work. Now, I'm trying to foolproof the creation of a "personal" FFmpeg environment variable in order to make the application portable (the last step is using pyinstaller to make a .exe file).

    


    Problem :
I'm trying to create the environment variable for FFmpeg by passing SET through subprocess.Popen :

    


    add_ffmpeg = subprocess.Popen(f"IF EXIST {path2set} SET PATH=%PATH%;{path2set}", shell=True)


    


    When I try to echo %PATH% (with Popen) the FFmpeg variable that should be present, is not. I just need to know whether or not I'm wasting my time with SET and should instead be using SETX or perhaps some other solution, I'm open to being told I did this all wrong.

    


    Relevant Code :

    


    # get any sub-directory with ffmpeg in it's name
ffmpeg = glob(f"./*ffmpeg*/")

# proceed if there is a directory
if len(ffmpeg) > 0:
    # double-check directory exists
    ffmpeg_exist = path.isdir(ffmpeg[0])

    if ffmpeg_exist:
        print("FFmpeg: Found -> Setting Up")
        
        # get the absolute path of the directories bin folder ".\ffmpeg-release-essentials.zip\bin"
        path2set = f"{path.abspath(ffmpeg[0])}\\bin\\"
        
        # add path of directory to environment variables
        add_ffmpeg = subprocess.Popen(f"IF EXIST {path2set} SET PATH=%PATH%;{path2set}", shell=True)
        add_ffmpeg.wait()
        
        # print all of the current environment variables
        list_vars = subprocess.Popen("echo %PATH%", shell=True)
        list_vars.wait()

else:
    print("FFmpeg: Missing -> Wait for Download...")
    
    # download the ffmpeg file via direct link
    wget.download("https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip")
    
    # unzip the file
    powershell = subprocess.Popen("powershell.exe Expand-Archive -Path './ffmpeg-release-essentials.zip' "
                                  "-DestinationPath './'")
    powershell.wait()

    # remove the file
    remove("./ffmpeg-release-essentials.zip")

    # get any sub-directory with ffmpeg in it's name
    ffmpeg = glob("./*ffmpeg*/")

    # double-check directory exists
    ffmpeg_exist = path.isdir(ffmpeg[0])
    
    # proceed with if it exists
    if ffmpeg_exist:
        print("FFmpeg: Found -> Setting Up")
        
        # get the absolute path of the directories bin folder ".\ffmpeg-release-essentials.zip\bin"
        path2set = f"{path.abspath(ffmpeg[0])}\\bin\\"
        
        # add path of directory to environment variables
        add_ffmpeg = subprocess.Popen(f"IF EXIST {path2set} SET PATH=%PATH%;{path2set}", shell=True)
        add_ffmpeg.wait()

        # print all of the current environment variables
        list_vars = subprocess.Popen("echo %PATH%", shell=True)
        list_vars.wait()
        
    else:
        print("Something unexplained has gone wrong.")
        exit(0)