Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (72)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • 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

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

  • Mixing audio, given timestamps. How to do it efficiently ?

    2 août 2021, par Evil

    I have two stereo sounds, 1.wav and 2.wav, these sounds are less than 1 second long and list of timestamps (miliseconds from start of recording). Recording of pure video (recording.mp4) is several hours long and there are thousands (20 000 - 30 000) of timestamps per sounds.

    


    I want to convert list of timestamps and sounds into one recording, merging it with video. The part of merging audio with video is easy with ffmpeg, so this is not part of the question.

    


    The list of timestamps is tsv, for example :

    


    


    1201\t1.wav
    
1501\t2.wav
1603\t1.wav
    
and so on, up to 50 000

    


    


    I can convert it to anything, I am generating this file.

    


    I have seen mixing sound with padding and mixing audio to existing video, but I have to batch process a lots of samples, running sox that many times is not feasible. Mere onstructing input for ffmpeg or sox is a cumbersome task.

    


    I do not use any effects on sounds. There is no explicit support in sox to take one input and play it multiple times (echo / echos destroys the material). Also creating padding or delay takes a lot of time. FFMPEG also needs long query to make it happen.

    


    Since muxing two files is easy, I have tried to record two sounds separately, but still it takes a lot of time to process.

    


    Is there simpler / faster way ?

    


  • I am trying to merge audio in video using ffmpeg but it is crashing

    28 février 2023, par Sachin Saxena

    I am getting this crash message when i click on third button to merge audio with video , first i am selecting the path of video and audio then i am merging the audio with video

    


     private fun mergeAudioAndVideo(videoFile: String, audioFile: String, outputFile: File) {
        val command = arrayOf(
            "ffmpeg",
            "-i", videoFile,
            "-i", audioFile,
            "-c:v", "copy",
            "-c:a", "aac",
            "-strict", "experimental",
            "-map", "0:v:0",
            "-map", "1:a:0",
            "-shortest",outputFile.absolutePath

        )
        val process = Runtime.getRuntime().exec(command)
        process.waitFor()


    }


    


    The crash i am getting on LogCat is here

    


    E/AndroidRuntime: FATAL EXCEPTION: main&#xA;    Process: com.example.mergev, PID: 10113&#xA;    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException&#xA;        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:622)&#xA;        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)&#xA;     Caused by: java.lang.reflect.InvocationTargetException&#xA;        at java.lang.reflect.Method.invoke(Native Method)&#xA;        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)&#xA;        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)&#xA0;&#xA;     Caused by: java.io.IOException: Cannot run program "ffmpeg": error=2, No such file or directory&#xA;        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)&#xA;        at java.lang.Runtime.exec(Runtime.java:699)&#xA;        at java.lang.Runtime.exec(Runtime.java:564)&#xA;        at com.example.mergev.MainActivity.mergeAudioAndVideo(MainActivity.kt:65)&#xA;        at com.example.mergev.MainActivity.onCreate$lambda$2(MainActivity.kt:45)&#xA;        at com.example.mergev.MainActivity.$r8$lambda$9Q0VdcecuU1VoneEsUOL6ljoNPQ(Unknown Source:0)&#xA;        at com.example.mergev.MainActivity$$ExternalSyntheticLambda2.onClick(Unknown Source:2)&#xA;        at android.view.View.performClick(View.java:7570)&#xA;        at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1202)&#xA;        at android.view.View.performClickInternal(View.java:7525)&#xA;        at android.view.View.access$3900(View.java:836)&#xA;        at android.view.View$PerformClick.run(View.java:28680)&#xA;        at android.os.Handler.handleCallback(Handler.java:938)&#xA;        at android.os.Handler.dispatchMessage(Handler.java:99)&#xA;        at android.os.Looper.loop(Looper.java:263)&#xA;        at android.app.ActivityThread.main(ActivityThread.java:8296)&#xA;        at java.lang.reflect.Method.invoke(Native Method)&#xA0;&#xA;        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)&#xA0;&#xA;        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)&#xA0;&#xA;     Caused by: java.io.IOException: error=2, No such file or directory&#xA;        at java.lang.UNIXProcess.forkAndExec(Native Method)&#xA;        at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)&#xA;        at java.lang.ProcessImpl.start(ProcessImpl.java:141)&#xA;        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)&#xA;        at java.lang.Runtime.exec(Runtime.java:699)&#xA0;&#xA;        at java.lang.Runtime.exec(Runtime.java:564)&#xA0;&#xA;        at com.example.mergev.MainActivity.mergeAudioAndVideo(MainActivity.kt:65)&#xA0;&#xA;        at com.example.mergev.MainActivity.onCreate$lambda$2(MainActivity.kt:45)&#xA0;&#xA;        at com.example.mergev.MainActivity.$r8$lambda$9Q0VdcecuU1VoneEsUOL6ljoNPQ(Unknown Source:0)&#xA0;&#xA;        at com.example.mergev.MainActivity$$ExternalSyntheticLambda2.onClick(Unknown Source:2)&#xA0;&#xA;        at android.view.View.performClick(View.java:7570)&#xA0;&#xA;        at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1202)&#xA0;&#xA;        at android.view.View.performClickInternal(View.java:7525)&#xA0;&#xA;        at android.view.View.access$3900(View.java:836)&#xA0;&#xA;        at android.view.View$PerformClick.run(View.java:28680)&#xA0;&#xA;        at android.os.Handler.handleCallback(Handler.java:938)&#xA0;&#xA;        at android.os.Handler.dispatchMessage(Handler.java:99)&#xA0;&#xA;        at android.os.Looper.loop(Looper.java:263)&#xA0;&#xA;        at android.app.ActivityThread.main(ActivityThread.java:8296)&#xA0;&#xA;        at java.lang.reflect.Method.invoke(Native Method)&#xA0;&#xA;        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)&#xA0;&#xA;        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)&#xA0;&#xA;I/Process: Sending signal. PID: 10113 SIG: 9&#xA;</init>

    &#xA;

    I have a video and a audio and i want to merge the audio and video using ffmpeg

    &#xA;

    I am getting this crash message when i click on third button to merge audio with video , first i am selecting the path of video and audio then i am merging the audio with video

    &#xA;

  • Compiling FFMPEG on CentOS DigitalOcean

    29 juillet 2015, par coder_uk

    I set up a DigitalOcean instance running CentOS 6.5 and successfully followed the guide to compile FFMPEG (https://trac.ffmpeg.org/wiki/CompilationGuide/Centos). Hurrah !

    But of course I realised that by default, DigitalOcean creates a root user and so ffmpeg now lives in /root/bin/ffmpeg. Which isn’t ideal because when I want to exec the ffmpeg bin from nginx, I would have to run nginx as root for it to have permission.

    Questions ...

    1) Long-shot, but presumably if I change the owner of the ffmpeg binary to nginx, it still won’t work, because nginx won’t be able to access the /root folder it is in. Correct ?

    2) I could run nginx as root (’user root’). But this seems like a very bad idea. Correct ?

    3) Which leaves me with the option of creating a new user, and then compiling ffmpeg into its home folder. But : which user ? EC2 creates ’ec2-user’, so should I make my own equivalent for DO ? But then won’t I have to run nginx as that user, else I’ll run into the same problem ?

    Or should I compile ffmpeg into the ’nginx’ home folder, if indeed it has one ? Is that how it is supposed to be done ?

    Since compiling ffmpeg takes ages, I don’t want to keep doing it, and the static files all seem very out of date. Thanks