Recherche avancée

Médias (91)

Autres articles (49)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • 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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7521)

  • Anomalie #3611 : Impossible de rajouter un lien de traduction

    9 décembre 2015, par realet RealET

    r22639 et r22640 résolvent les bugs.
    On a même la possibilité de changer la langue d’un article si sa langue n’est pas celle de son secteur ! Bravo !

    Au passage, pour la création d’un nouvel article :

    • si [x] Articles : activer le menu de langue > un nouvel article est créé dans la langue du rédacteur (et non en héritant de la langue du secteur)
    • si [ ] Articles : activer le menu de langue > un nouvel article est bien créé dans la langue du secteur

    Il me semble qu’il faudrait toujours créer dans la langue du secteur.

    Et éventuellement pouvoir dire qu’un secteur n’a pas de langue du tout pour pouvoir mettre dedans des articles de différentes langues (un cas un peu hybride, mais permis par la configuration de SPIP.
    Actuellement, on ne peut en effet pas une fois qu’on a mis une langue à une rubrique la passer à aucune langue (sauf à bidouiller la base MySQL).

  • W/System.err : java.lang.Exception : FFmpeg not loaded

    1er juillet 2021, par numa

    I ran an android machine learning code that uses AndroidAudioConverter from https://github.com/adrielcafe/AndroidAudioConverter, but I got the different errors as following.

    


    When I ran it with AVD emulator, it said (the error is in red font) :

    


    E/FFmpeg: issue in coping binary from assets to data. 
java.io.FileNotFoundException: x86/ffmpeg
    at android.content.res.AssetManager.nativeOpenAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:744)
    at android.content.res.AssetManager.open(AssetManager.java:721)
    at com.github.hiteshsondhi88.libffmpeg.FileUtils.copyBinaryFromAssetsToData(FileUtils.java:29)
    at com.github.hiteshsondhi88.libffmpeg.FFmpegLoadLibraryAsyncTask.doInBackground(FFmpegLoadLibraryAsyncTask.java:27)
    at com.github.hiteshsondhi88.libffmpeg.FFmpegLoadLibraryAsyncTask.doInBackground(FFmpegLoadLibraryAsyncTask.java:8)
    at android.os.AsyncTask$2.call(AsyncTask.java:333)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:764)


    


    But if I ran it on my android smartphone, I am getting the following error :

    


     W/System.err: java.lang.Exception: FFmpeg not loaded&#xA;    W/System.err:     at cafe.adriel.androidaudioconverter.AndroidAudioConverter.convert(AndroidAudioConverter.java:85)&#xA;    W/System.err:     at com.example.coughc19.DetectCoughActivity.convertToWAV(DetectCoughActivity.kt:144)&#xA;        at com.example.coughc19.DetectCoughActivity$onClick$timer$1.onFinish(DetectCoughActivity.kt:103)&#xA;        at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:127)&#xA;        at android.os.Handler.dispatchMessage(Handler.java:107)&#xA;    W/System.err:     at android.os.Looper.loop(Looper.java:230)&#xA;        at android.app.ActivityThread.main(ActivityThread.java:7815)&#xA;        at java.lang.reflect.Method.invoke(Native Method)&#xA;    W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)&#xA;        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)&#xA;    D/FFmpeg: Build.CPU_ABI : arm64-v8a&#xA;    I/FFmpeg: Loading FFmpeg for armv7 CPU&#xA;    D/Surface: Surface::connect(this=0x7476ddc000,api=2)&#xA;    D/FFmpeg: FFmpeg is not executable, trying to make it executable ...&#xA;    D/Surface: Surface::disconnect(this=0x7476ddc000,api=2)&#xA;    W/System.err: java.io.FileNotFoundException: /storage/emulated/0/myrec.wav: open failed: ENOENT (No such file or directory)&#xA;    W/System.err:     at libcore.io.IoBridge.open(IoBridge.java:496)&#xA;        at java.io.FileInputStream.<init>(FileInputStream.java:159)&#xA;        at com.example.coughc19.audioHelper.WavFile.openWavFile(WavFile.java:87)&#xA;        at com.example.coughc19.DetectCoughActivity.classifyNoise(DetectCoughActivity.kt:169)&#xA;        at com.example.coughc19.DetectCoughActivity$onClick$timer$1$onFinish$timer2$1.onFinish(DetectCoughActivity.kt:110)&#xA;        at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:127)&#xA;        at android.os.Handler.dispatchMessage(Handler.java:107)&#xA;    W/System.err:     at android.os.Looper.loop(Looper.java:230)&#xA;        at android.app.ActivityThread.main(ActivityThread.java:7815)&#xA;        at java.lang.reflect.Method.invoke(Native Method)&#xA;        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)&#xA;        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)&#xA;    W/System.err: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)&#xA;        at libcore.io.Linux.open(Native Method)&#xA;        at libcore.io.ForwardingOs.open(ForwardingOs.java:167)&#xA;        at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)&#xA;    W/System.err:     at libcore.io.ForwardingOs.open(ForwardingOs.java:167)&#xA;        at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7714)&#xA;        at libcore.io.IoBridge.open(IoBridge.java:482)&#xA;        ... 11 more&#xA;</init>

    &#xA;

    Also, when ran on an android smartphone and emulator simultaneously, I got the following error :

    &#xA;

    E/AndroidRuntime: FATAL EXCEPTION: main&#xA;Process: com.example.coughc19, PID: 9041&#xA;java.lang.IllegalArgumentException: The size of the array to be loaded does not match the specified shape.&#xA;    at org.tensorflow.lite.support.common.SupportPreconditions.checkArgument(SupportPreconditions.java:104)&#xA;    at org.tensorflow.lite.support.tensorbuffer.TensorBufferFloat.loadArray(TensorBufferFloat.java:87)&#xA;    at com.example.coughc19.DetectCoughActivity.loadModelAndMakePredictions(DetectCoughActivity.kt:258)&#xA;    at com.example.coughc19.DetectCoughActivity.classifyNoise(DetectCoughActivity.kt:230)&#xA;    at com.example.coughc19.DetectCoughActivity$onClick$timer$1$onFinish$timer2$1.onFinish(DetectCoughActivity.kt:110)&#xA;    at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:127)&#xA;    at android.os.Handler.dispatchMessage(Handler.java:106)&#xA;    at android.os.Looper.loop(Looper.java:193)&#xA;    at android.app.ActivityThread.main(ActivityThread.java:6669)&#xA;    at java.lang.reflect.Method.invoke(Native Method)&#xA;    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)&#xA;    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)&#xA;

    &#xA;

    I used the Android 10 smartphone and Android 9 for AVD. This is a team project, which my friend build. It can run on his smartphone (Android 9). I need to connect the program to the cloud storage but I don't know why it ain't running on my device or emulator.
    &#xA;If anyone knows how to resolve this issue please help.
    &#xA;Thanks.

    &#xA;

  • Carrierwave video not being processsed before uploading to S3

    12 décembre 2013, par Cramps

    I'm using Carrierwave, Carrierwave-video and Carrierwave-video-thumbnailer to process videos and make a thumbnail when they're uploaded. This was all working nicely while I was saving the files on my file system. However, now that I've added uploading to Amazon S3 using the carrierwave-aws gem, the videos are being uploaded to S3 without being processed first. It's as if the process encode_video and version :thumb are being skipped by the uploader.

    Here's what was working for me at first (before adding S3) :

    class VideoUploader &lt; CarrierWave::Uploader::Base

    include CarrierWave::Video
    include CarrierWave::Video::Thumbnailer

    storage :file

    def store_dir
       "upload/path/"
    end

    process encode_video: [{ bunch of video options}]

    version :thumb do
       process thumbnail: [{ bunch of thumbnailer options }]
       def full_filename for_file
           png_name for_file, version_name
       end  
    end

    def png_name for_file, version_name
       %Q{#{version_name}_#{for_file.chomp(File.extname(for_file))}.png}
    end

    Now it's really just the same, except it's using storage :aws instead.