Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (44)

  • 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

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (6070)

  • How I can use Runtime.getRuntime.exec with ffmpeg library in Android ?

    24 février 2015, par beni

    I’m trying to establish the correct rotation in my recorded video because in some devices the setOrientationHint method doesn’ work becuase in some video players may choose to ignore the compostion matrix in a video during playback, Android Documentation.

    So, I’ve decided to use the ffmpeg library. I’m develop a test for the app. In Ubuntu, I download this library and execute the configure and make to obtain the ffmpeg executable, I copy this executable to the DCIM folder in the sdcard, the same for a video what I’ve recorded for my camera recorder app. So, in the DCIM folder, I have the ffmpeg executable and a video.

    I created a test project and in the onCreate method, I’ve include :

    try {

    Process p= Runtime.getRuntime().exec("chmod 777 /mnt/sdcard/beni/ffmpeg");
    p.waitFor();

    p = Runtime.getRuntime().exec("/mnt/sdcard/beni/ffmpeg -i /mnt/sdcard/beni/f.mp4 -vf \"transpose=1\" -r 24 -sameq /mnt/sdcard/beni/f2.mp4");
    p.waitFor();

    BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));  
    String line = null;  
    while ((line = in.readLine()) != null) {  
       System.out.println(line);  
    }  




    } catch (IOException e) {
       e.printStackTrace();
    } catch (InterruptedException e) {
    e.printStackTrace();
    }

    but I have the following warning :

    09-13 13:14:03.547: W/System.err(7782): java.io.IOException: Error running exec(). Command: [/mnt/sdcard/beni/ffmpeg, -i, /mnt/sdcard/beni/f.mp4, -vf, "transpose=1", -r, 24, -sameq, /mnt/sdcard/beni/f2.mp4] Working Directory: null Environment: null
    09-13 13:14:03.547: W/System.err(7782):     at java.lang.ProcessManager.exec(ProcessManager.java:224)
    09-13 13:14:03.547: W/System.err(7782):     at java.lang.Runtime.exec(Runtime.java:189)
    09-13 13:14:03.547: W/System.err(7782):     at java.lang.Runtime.exec(Runtime.java:275)
    09-13 13:14:03.547: W/System.err(7782):     at java.lang.Runtime.exec(Runtime.java:210)
    09-13 13:14:03.547: W/System.err(7782):     at com.example.prueba.MainActivity.onCreate(MainActivity.java:22)
    09-13 13:14:03.547: W/System.err(7782):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    09-13 13:14:03.547: W/System.err(7782):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623)
    09-13 13:14:03.547: W/System.err(7782):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
    09-13 13:14:03.547: W/System.err(7782):     at android.app.ActivityThread.access$1500(ActivityThread.java:121)
    09-13 13:14:03.547: W/System.err(7782):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
    09-13 13:14:03.547: W/System.err(7782):     at android.os.Handler.dispatchMessage(Handler.java:99)
    09-13 13:14:03.547: W/System.err(7782):     at android.os.Looper.loop(Looper.java:138)
    09-13 13:14:03.547: W/System.err(7782):     at android.app.ActivityThread.main(ActivityThread.java:3701)
    09-13 13:14:03.547: W/System.err(7782):     at java.lang.reflect.Method.invokeNative(Native Method)
    09-13 13:14:03.547: W/System.err(7782):     at java.lang.reflect.Method.invoke(Method.java:507)
    09-13 13:14:03.547: W/System.err(7782):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
    09-13 13:14:03.547: W/System.err(7782):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
    09-13 13:14:03.547: W/System.err(7782):     at dalvik.system.NativeStart.main(Native Method)
    09-13 13:14:03.547: W/System.err(7782): Caused by: java.io.IOException: Permission denied
    09-13 13:14:03.547: W/System.err(7782):     at java.lang.ProcessManager.exec(Native Method)
    09-13 13:14:03.547: W/System.err(7782):     at java.lang.ProcessManager.exec(ProcessManager.java:222)
    09-13 13:14:03.547: W/System.err(7782):     ... 17 more

    Is this code right ? Or I’ve done something wrong.

  • Building FFmpeg for Android to use command line arguments

    28 juin 2013, par Zargoon

    I am trying to build the FFmpeg library to use in my android app with the NDK. The reason for this is because I am using the native video capture feature in android because I really don't want to write my own video recorder. However, the native video capture only allows for either high-quality encoding, or low quality encoding. I want something in between, and I believe that the solution is to use the FFmpeg library to re-encode the high quality video to be lighter.

    So far I have been able to build the FFmpeg library according to this guide : http://www.roman10.net/how-to-build-ffmpeg-for-android/ and which a few tweaks I have been able to get it to work.

    However, everything that I've found seems to be about writing your own encoder, which seems like overkill to me. All that I really want to do is send a string in command line format to the main() function of FFmpeg and re-encode my video. However, I can't seem to figure out how I build FFmpeg to give me access to the main method. I found this post : Compile ffmpeg.c and call its main() via JNI which links to a project doing what I want more of less, but for the life of me I cannot figure out what is going on. It also seems like he is compiling more than I want, and I would really like to keep my application as light weight as possible.

    Some additional direction would be extremely helpful. Thank you.

  • Encoder/Decoder PCM to AMR Android

    2 mars 2013, par Syred

    I've been looking for a while now for any java library that allows me to encode and decode a PCM-AMR audio stream that is sent through a TCP socket connection. Without having to use Android's JNI.

    Is there anything that can help me ?

    In the worst case scenario. How can I do it using any C++ library with JNI ? (any reference of how to use ffmpeg with JNI will be appreciated)

    Hope you can help me.