Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (53)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (5022)

  • Transcodeit Add metadata to audio files

    22 avril 2016, par Gismmo

    I have found how to encode audio tracks to multiple formats, I am just struggling to try and find a way to attach specific metadata to the tracks when they are encoded. I would like to add, album artwork, artists name, track name, and genre etc.

    I can see in the audio encoding parameters there are additional FFmpeg parameters you can set, however i am unsure what to use in order to set the metadata ?

    {
     "steps": {
     "imported": {
     "robot": "/s3/import",
     "result": true,
     "key": "AWS_KEY",
     "secret": "AWS_SECRET",
     "bucket": "BUCKET",
     "path": "CUSTOM-PATH"
    },
    "mp3": {
     "use": "imported",
     "robot": "/audio/encode",
     "result": true,
     "preset": "mp3",
     "ffmpeg": [],
     "ffmpeg_stack": "v2.2.3"
    },
    "wav": {
     "use": "imported",
     "robot": "/audio/encode",
     "result": true,
     "preset": "wav",
     "ffmpeg_stack": "v2.2.3"
    },
    "export": {
     "robot": "/s3/store",
     "use": [
       "mp3",
       "wav"
     ],
     "key": "AWS_KEY",
     "secret": "AWS_SECRET",
     "bucket": "BUCKET"
    }
  • org.bytedeco.javacv.CanvasFrame showImage is hanging

    24 août 2018, par user3911119

    An IOS device is uploading h264 files (3 sec videos) to a server. Each file is successfully readable by VLC.

    Using FFMpegFrameGrabber, I grab each frame and try to display them using CanvasFrame.showImage as below. However, the method call hangs.

    CanvasFrame canvas = new CanvasFrame("ios");
    canvas.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    canvas.setAlwaysOnTop(true);
    canvas.setResizable(true);
    try(FileInputStream fis = new FileInputStream(file))
    {
       try(FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(fis))
       {
           grabber.setFormat("h264");
           grabber.start();
           while(true)
           {
               Frame frame = grabber.grabImage();
               if(frame != null)
               {
                   canvas.showImage(frame);
               }
           }
       }
    }

    Am I doing anything wrong in the above code ?

    EDIT#1 : When I try to save the buffered image for the frame, a valid image is saved.

    BufferedImage image = converter.getBufferedImage(frame);
    File outputfile = new File("png_file");
    ImageIO.write(image, "png", outputfile);
  • Backgroundworker quits itself and calls Runworkercompleted function

    5 mai 2017, par yjs990427

    I am using youtube-dl in a cmd process running in a backgroundworker process in wpf application to update its status to a text box asynchronously. There are times in my application that ffmpeg has to work in through the process. However, at the time that ffmpeg process is called (right after youtube-dl’s work is finished) and starts running, backgroundworker calls Runworkercompleted method and kills itself. ffmpeg is called from youtube-dl.

    Is there any fix that make the backgroundworker still work until the ffmpeg’s work is done ? Thanks.

    My DoWork method :

    private void downloadWorker_DoWork(object sender, DoWorkEventArgs e)
           {
               BackgroundWorker worker = sender as BackgroundWorker;
               Process process = new Process();
               string[] scripts = (string[])e.Argument;

               string dir = scripts[0];
               string scriptText = scripts[1];

               process.StartInfo.FileName = "cmd.exe";
               process.StartInfo.WorkingDirectory = dir;
               process.StartInfo.Arguments = "/C set path=%path%;" + System.AppDomain.CurrentDomain.BaseDirectory + "&" + scriptText;
               process.StartInfo.CreateNoWindow = true;
               process.StartInfo.UseShellExecute = false;
               process.StartInfo.RedirectStandardOutput = true;
               process.StartInfo.RedirectStandardInput = true;
               process.StartInfo.RedirectStandardError = true;

               process.Start();

               while (!process.StandardOutput.EndOfStream)
               {
                   if (downloadWorker.CancellationPending)   // if and only if user calls Abort
                   // would this if statement be the problem?
                   {
                       foreach (var youtube in Process.GetProcessesByName("youtube-dl"))
                       {
                           youtube.Kill();
                       }
                       process.Kill();
                       e.Cancel = true;
                       return;
                   }
                   else
                   {
                       string line = process.StandardOutput.ReadLine();
                       worker.ReportProgress(1, line);                  // reports its status to UI
                   }
               }
           }

    My RunWorkerCompleted method :

    private void downloadWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
           {
               if (e.Error != null)
               {
                   MessageBox.Show(e.Error.Message);
               }
               else if (e.Cancelled == true)
               {
                   MessageBox.Show("Download Aborted!\r\nYou will need to delete the .part file in the download folder.", "Abort");
               }
               else if (musicCheckBox.IsChecked == true)
               {
                   MessageBox.Show("Music Download finished.", "Successful");
               }
               else if (videoCheckBox.IsChecked == true)
               {
                   MessageBox.Show("Video Download finished.", "Successful");
               }
               // CMDoutputTextBox.Text = "";
               downloadBtn.Content = "Download!";
               downloadBtn.IsEnabled = true;
           }

    edit : The backgroundworker produces this output and calls RunWorkerFinished method. ffmpeg does nothing after the output.

    [ffmpeg] Converting video from mp4 to mkv, Destination: TAEYEON 태연_Why_Music Video-WkdtmT8A2iY.mkv