Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (112)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

Sur d’autres sites (6243)

  • In Android run asyn task inside Worker class of WorkManager

    29 mars 2019, par Usman Rana

    I’ve a Worker in which i first want to apply FFMPEG command before uploading it to server. As Worker is already running in background so to keep the result on hold until file uploads I’ve used RxJava .blockingGet() method. But I’m unable to understand that how to execute FFmpeg command synchronously by anyway i.e. RxJava etc. One tip that I found is to use ListenableWorker but it’s documentation says that it stops working after 10 minutes. So, i don’t want to go with that solution. Following is the method of FFmpeg just like any other async method. How can i make it synchronous or integrate it with RxJava ? Any ideas would be appreciable.

    ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
                       @Override
                       public void onFailure(String s) {
                       }

                       @Override
                       public void onSuccess(String s) {
                          uploadMediaItem(mediaUpload);
                       }

                       @Override
                       public void onProgress(String s) {
                       }

                       @Override
                       public void onStart() {
                       }

                       @Override
                       public void onFinish() {

                           // countDownLatch.countDown();

                       }
                   });

    This is the flow of my Worker :

    1. check pending post count in DB.
    2. Pick first post and check if it has pending media list to upload.
    3. Pick media recursively and check if editing is required on it or not.
    4. Apply FFmpeg editing and upload and delete from DB.
    5. Repeat the cycle until last entry in the DB.

    Thanks

  • 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();
           }
  • 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. :)