Recherche avancée

Médias (91)

Autres articles (51)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (3961)

  • Anomalie #2009 (Nouveau) : sqlite message utilisateur

    21 mars 2011, par Ben .

    Soit un site en sqlite. passons la base en lecture seule (444) . Lorsque l’on poste un commentaire sur le site public, cela ne fonctionne pas(c’est normal). Dans la log, on voit bien : "2 : attempt to write a readonly database -" par contre coté utilisateur/public : RIEN, pas de message. (...)

  • Displaying progress while working on FFMpegConverter ?

    1er novembre 2017, par GreenRoof

    During a part of my project, I should download video data and audio data of a youtube link and merge them using NReco.VideoConverter. So this here is my code :

    public class Download {
       public NReco.VideoConverter.FFMpegConverter ffMpeg;
       public BackgroundWorker bgWorker;

       public Download (BackgroundWorker bgWorker) {
           this.BgWorker = BgWorker;
           var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
           ffMpeg.ConvertProgress += (s, e) => ReportProgress(Convert.ToInt64(e.Processed.TotalSeconds), Convert.ToInt64(e.TotalDuration.TotalSeconds));
       }

       public MergeData() {
           // Video data and Audio data are downloaded to tempVidPath and tempAudPath.
           ffMpeg.Invoke(String.Format("-i \"{0}\" -i \"{1}\" -y -c copy \"{2}\"", tempVidPath, tempAudPath, targetPath));
       }

       public ReportProgress(long part, long total) {
           bgWorker.ReportProgress(0, new string[] {part.ToString(), total.ToString()});
       }
    }

    public partial class App : Form {
       //**omit
       public void Execution() {
           bgWorker = new BackgroundWorker(); // bgWorker is already defined in Designer class.
           bgWorker.WorkerReportsProgress = true;

           Download Dnld = new Download(bgWorker);

           bgWorker.ProgressChanged += (s, e) => {
               string[] arr = ((System.Collections.IEnumerable)e.UserState).Cast().Select(x => x.ToString()).ToArray();
               progBar.Maximum = Int64.Parse(arr[1]);
               progBar.Value = Int64.Parse(arr[0]);
           };

           bgWorker.DoWork += (s, e) => {
               Dnld.MergeData()
           }

       }
    }

    Here, I have no idea how to keep progBar to track the merging process while two files are being merged. Is there any method like WebClinet.DownloadFileAsync so I can get progress data from the thread ?

    ** I didn’t write unnecessary codes so codes may complicated and inefficient. But there are much more codes so please understand that problems. :)

  • I want to convert my 3gp audio file to .wav formate

    11 mars 2020, par gowthami

    I want to convert my 3gp audio to .wav format. I used ffmpeg to convert that one. In that it is showing success not getting any error. But i am unable to get the final output file. Please help me to solve this issue.

    Here is my code.

    sampleDir = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), "/OfficeRecordings/");
       if (!sampleDir.exists()) {
           sampleDir.mkdirs();
       }

       outputFile =  sampleDir+"/"+"sample_record.3gp";

       finalFile =  sampleDir+"/"+"final_record.wav";

       final String[] cmd = new String[]{"-y", "-i", outputFile, finalFile};


       execFFmpegBinary(cmd);


    private void execFFmpegBinary(final String[] command) {

           FFmpeg ffmpeg = FFmpeg.getInstance(this);
           try {
               FFmpeg.getInstance(MainActivity.this).loadBinary(new FFmpegLoadBinaryResponseHandler() {
                   @Override
                   public void onStart() {
                       Log.e("start",".......");

                   }

                   @Override
                   public void onSuccess() {

                       Log.e("success",".......");
                   }

                   @Override
                   public void onFailure() {
                       Log.e("fail",".......");

                   }

                   @Override
                   public void onFinish() {
                       Log.e("finish",".......");

                   }
               });
           } catch (FFmpegNotSupportedException e) {
               e.printStackTrace();
           }