Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

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

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (7844)

  • How to set up FFmpeg thumbnail generator [on hold]

    26 octobre 2013, par Juddy Swaft

    i need set up FFmpeg thumbnail generator that automatically thumbnails apear on videos i have installed on my server FFmpeg service so i need php help.
    p.s im using php.melody cms

  • Google cloud speech to text not giving output for OGG & MP3 files

    27 avril 2021, par Vedant Jumle

    I am trying to perform speech to text on a bunch of audio files which are over 10 mins long. I don't want to waste storage on the cloud bucket by straight-up uploading wav files on it. So I am using ffmpeg to convert the files either to ogg or mp3 like :
ffmpeg -y -i audio.wav -ar 12000 -r 16000 audio.mp3

    


    ffmpeg -y -i audio.wav -ar 12000 -r 16000 audio.ogg

    


    For testing purpose I ran the speech to text service on a dummy wav file and it seemed to work, I got the text as expected. But for some reason it isn't detecting any speech when I use the ogg or mp3 file. I could not give amr files to work either.

    


    My code :

    


    def transcribe_gcs(gcs_uri):
    client = speech.SpeechClient()

    audio = speech.RecognitionAudio(uri=gcs_uri)
    config = speech.RecognitionConfig(
        encoding="OGG_OPUS", #replace with "LINEAR16" for wav, "OGG_OPUS" for ogg, "AMR" for amr
        sample_rate_hertz=16000,
        language_code="en-US",
    )
    print("starting operation")
    operation = client.long_running_recognize(config=config, audio=audio)
    response = operation.result()
    print(response)


    


    I have set up the authentication properly, so that is not a problem.

    


    When I run the speech to text service on the same audio but in ogg or mp3(I just comment out the encoding setting from the config for mp3) format, it gives no response, just prints out a line break and done.

    


    What can I do to fix this ?

    


  • Android UnsatisfiedLinkError using ffmpeg library

    5 avril 2012, par Bombastic

    I'm trying to use FFMPEG library in my Android application like this example here : AFPlayer . I have a builded and running version of this application and everything works fine, but when I tried to implement the same logic in my application it crashes everytime I start my media player. So the thing that I did was to copy and paste all files from afplayer's folders to my app (not sure if I have to do something else or if it's the right way,but it's my first touch with Android NDK and I'm not really sure how to do the things). Here is how I'm trying to start my DRadioMediaPlayer :

        player = new DRadioMediaPlayer();
       //player.setOnPreparedListener(this);
       //player.setOnCompletionListener(this);
       //player.setOnErrorListener(this);
       //player.setOnBufferingUpdateListener(this);

       //player.setAudioStreamType(AudioManager.STREAM_MUSIC);
       try
       {
           Uri source = Uri.parse(playlist.getCurrentSource().toString());
           player.setDataSource(source);
           //player.setDataSource(playlist.getCurrentSource().toString());
           player.prepare();

           playbackState = DRadioPlayerService.PLAYBACK_STATE_BUFFERING;
       }

    This is how I load the library :

    static {
     System.loadLibrary("player");

    }

    and here is the exception which I'm getting :

       04-05 17:04:37.478: W/dalvikvm(686): No implementation found for native Lcom/nimasystems/android/radio2/DRadioMediaPlayer;.n_createEngine ()V
    04-05 17:04:37.478: D/AndroidRuntime(686): Shutting down VM
    04-05 17:04:37.478: W/dalvikvm(686): threadid=1: thread exiting with uncaught exception (group=0x400259f8)
    04-05 17:04:37.478: E/AndroidRuntime(686): FATAL EXCEPTION: main
    04-05 17:04:37.478: E/AndroidRuntime(686): java.lang.UnsatisfiedLinkError: n_createEngine
    04-05 17:04:37.478: E/AndroidRuntime(686):  at com.nimasystems.android.radio2.DRadioMediaPlayer.n_createEngine(Native Method)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at com.nimasystems.android.radio2.DRadioMediaPlayer.<init>(DRadioMediaPlayer.java:68)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at com.nimasystems.android.player.service.DRadioPlayerService.initPlayer(DRadioPlayerService.java:577)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at com.nimasystems.android.player.service.DRadioPlayerService.onStart(DRadioPlayerService.java:568)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at android.app.Service.onStartCommand(Service.java:420)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3267)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at android.app.ActivityThread.access$3600(ActivityThread.java:135)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2211)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at android.os.Handler.dispatchMessage(Handler.java:99)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at android.os.Looper.loop(Looper.java:144)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at android.app.ActivityThread.main(ActivityThread.java:4937)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at java.lang.reflect.Method.invokeNative(Native Method)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at java.lang.reflect.Method.invoke(Method.java:521)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    04-05 17:04:37.478: E/AndroidRuntime(686):  at dalvik.system.NativeStart.main(Native Method)
    </init>

    and here is the line where actually the exception it thrown :

    public DRadioMediaPlayer() {
     Log.d(TAG, "Create new MediaPlayer");

         n_createEngine(); // here

      }

    public native void n_createEngine();

    Any suggestions what actually can I do to fix this problem ? I've read all questions with similar issue here,but none of them worked for me.

    Thanks in advance !