Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (104)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (17230)

  • Pipe a HTTP response

    30 juillet 2014, par viperfx

    How do I pipe an HTTP response like in NodeJS. Here is the snippet I am using in NodeJS :

    request({
     url: audio_file_url,
    }).pipe(ffmpeg_process.stdin);

    How can I achieve the same result in Go ?

    I am trying to pipe a audio stream from HTTP into an FFmpeg process so that it converts it on the fly and returns the converted file back to the client.

    Just so its clear to everyone here is my source code so far :

    func encodeAudio(w http.ResponseWriter, req *http.Request) {
       path, err := exec.LookPath("youtube-dl")
       if err != nil {
           log.Fatal("LookPath: ", err)
       }
       path_ff, err_ff := exec.LookPath("ffmpeg")
       if err != nil {
           log.Fatal("LookPath: ", err_ff)
       }

       streamLink := exec.Command(path,"-f", "140", "-g", "https://www.youtube.com/watch?v=VIDEOID")

       var out bytes.Buffer
       streamLink.Stdout = &out
       cmdFF := exec.Command(path_ff, "-i", "pipe:0", "-acodec", "libmp3lame", "-f", "mp3", "-")
       resp, err := http.Get(out.String())
       if err != nil {
           log.Fatal(err)
       }
       // pr, pw := io.Pipe()
       defer resp.Body.Close()
       cmdFF.Stdin = resp.Body
       cmdFF.Stdout = w
       streamLink.Run()
       //get ffmpeg running in another goroutine to receive data
       errCh := make(chan error, 1)
       go func() {
           errCh <- cmdFF.Run()
       }()

       // close the pipeline to signal the end of the stream
       // pw.Close()
       // pr.Close()

       // check for an error from ffmpeg
       if err := <-errCh; err != nil {
           // ff error
       }
    }

    Error : 2014/07/29 23:04:02 Get : unsupported protocol scheme ""

  • Automated Video creation for Graphic Data using Java or Python [on hold]

    20 mars 2016, par Amit

    enter image description here

    Chart Shows what I am trying to achieve. bottom line is that I want to create a video from a dataset which provides me enough data points to plot bar/pie graphs. I also want to add a audio to it for which text is created programatically. I need help for -

    • I have tried using jfreeChart. But when create an image from it, the quality of it is not good enough to create video from that image. Is there any other better options to plot nice graphs and create images from it ? Idea is to save these charts/images on disk, mix audio using ffmpeg utility to finally create a video.

    I would prefer something using Java / Python since I already know it.

  • How can I start ffmpeg while playing a full screen game ?

    11 janvier 2021, par Muhamed Shair benshair

    This is a class of the ffmpeg :

    


    using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Text;  
using System.Threading.Tasks;  
using System.IO;  
using System.Diagnostics;  
  
namespace Ffmpeg_App  
{  
    class Ffmpeg  
    {  
        Process process;  
  
        public void Start(string FileName, int Framerate)  
        {  
            process = new System.Diagnostics.Process();  
            process.StartInfo.FileName = @"D:\ffmpegx86\ffmpeg.exe"; // Change the directory where ffmpeg.exe is.  
            process.EnableRaisingEvents = false;  
            process.StartInfo.WorkingDirectory = @"D:\ffmpegx86"; // The output directory  
            process.StartInfo.Arguments = @"-f gdigrab -framerate " + Framerate + " -i desktop -preset ultrafast -                                                                     pix_fmt yuv420p " + FileName;  
            process.Start();  
            process.StartInfo.UseShellExecute = false;  
            process.StartInfo.CreateNoWindow = false;  
            Close();  
        }  
  
        public void Close()  
        {  
            process.Close();  
        }  
    }  
}  


    


    And in form1 :

    


    At the top :

    


    Ffmpeg fmpeg = new Ffmpeg();


    


    In a button click event :
To start :

    


    private void Start_Click(object sender, EventArgs e)  
        {  
            fmpeg.Start("test.mp4", 24);  
        }


    


    and to stop :

    


    private void Stop_Click(object sender, EventArgs e)  
        {  
            fmpeg.Close();  
        }


    


    The problem is when I'm in full screen game I don't have access to the form and the buttons they are hidden in the background.

    


    I need to make some global keys hook maybe ?