Recherche avancée

Médias (91)

Autres articles (62)

  • 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

  • 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

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

  • FFmpeg - add an animated gif (cropped by mask) to the video

    11 mars 2021, par zeromodule

    I have 3 inputs :

    


      

    1. Video file : https://file.io/6jtUlnZ7TGmT
    2. 


    3. Animated GIF with transparent background https://i.imgur.com/Vo3KHZm.gif
    4. 


    5. Mask file (BW) the same resolution as the video https://i.imgur.com/YJXUUrZ.png
    6. 


    


    I want to put the image on the video, but throw out all GIF pixels that are transparent in the mask (replace them with transparent ones).

    


    Video
    
Mask
    
Image
    
Result

    


    My current command, without masking (it works fine) :

    


    ffmpeg -i input.mp4 -ignore_loop 0 -i animation.gif \
-filter_complex "[1]scale=700x700[scaled_gif];\
[0][scaled_gif]overlay=50:30:shortest=1" \
-codec:a copy output.mp4


    


    UPDATE #1

    


    I managed to get closer to my goal with this command :

    


    ffmpeg -y -i input.mp4 -loop 1 -i mask.png \ 
-filter_complex "[1:v]alphaextract[mask]; \
movie=animation.gif,scale=1920x1080[scaled_gif]; \
[scaled_gif][mask]alphamerge[masked]; \
[0:v][masked]overlay=0:0" \
-c:a copy output_masked.mp4


    


    but it has 2 problems :

    


      

    1. GIF loses it's transparency. Transparent pixels become white.
    2. 


    3. GIF plays only once (i.e. no loop)
    4. 


    


    Output : https://file.re/2021/03/11/outputmasked/

    


  • png : Set the color range as full range

    8 mai 2015, par wm4
    png : Set the color range as full range
    

    The format uses full range for the gray formats.

    CC : libav-stable@libav.org

    • [DBH] libavcodec/pngdec.c
  • UnsatisfiedLinkError for armeabi with Android Studio on Ubuntu but with Android Studio on Windows it works

    14 juillet 2015, par dddog

    I’m working at an Android app that uses ffmpeg-android-arm.jar who contains native libs for video/audio encoding.
    My native libs are included in the project by copying the ffmpeg-android-arm.jar in the app/libs folder. ffmpeg-android-arm.jar is just an archive having the following folder structure lib/armeabi/ and in the armeabi folder being all the native libs as .so files.

    Building the apk using Android Studio on Windows 8 works just fine, the statement bellow, being the first that wants to load a native library working well.

    //neon library optimized for opencv
    static {
       Log.d(TAG, "about to load library checkneon...");
       try {
           System.loadLibrary("checkneon");
       } catch (Exception e) {
           e.printStackTrace();
       } catch (Error error) {
           error.printStackTrace(System.out);
       }
       Log.d(TAG, "library checkneon loaded!");
    }

    Going on Android Studio running on Ubuntu 14.04.02, I’m unable to make my project run, as I keep receiving java.lang.UnsatisfiedLinkError. See the stack trace bellow :

    07-14 20:41:05.616  17018-17018/? D/dalvikvm﹕ Late-enabling CheckJNI
    07-14 20:41:05.786  17018-17018/org.myfrogvrvp8 D/RecordActivity﹕ about to load library checkneon...
    07-14 20:41:05.786  17018-17018/org.myfrogvrvp8 I/System.out﹕ java.lang.UnsatisfiedLinkError: Couldn't load checkneon from loader dalvik.system.PathClassLoader[dexPath=/data/app/org.myfrogvrvp8-2.apk,libraryPath=/data/app-lib/org.myfrogvrvp8-2]: findLibrary returned null
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at java.lang.Runtime.loadLibrary(Runtime.java:355)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at java.lang.System.loadLibrary(System.java:525)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at org.myfrogvrvp8.FFmpegRecorderActivity.<clinit>(FFmpegRecorderActivity.java:189)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at java.lang.Class.newInstanceImpl(Native Method)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at java.lang.Class.newInstance(Class.java:1130)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2210)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at android.app.ActivityThread.access$700(ActivityThread.java:159)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at android.os.Handler.dispatchMessage(Handler.java:99)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at android.os.Looper.loop(Looper.java:176)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at android.app.ActivityThread.main(ActivityThread.java:5419)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at java.lang.reflect.Method.invokeNative(Native Method)
    07-14 20:41:05.791  17018-17018/org.myfrogvrvp8 I/System.out﹕ at java.lang.reflect.Method.invoke(Method.java:525)
    07-14 20:41:05.796  17018-17018/org.myfrogvrvp8 I/System.out﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
    07-14 20:41:05.796  17018-17018/org.myfrogvrvp8 I/System.out﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
    07-14 20:41:05.796  17018-17018/org.myfrogvrvp8 I/System.out﹕ at dalvik.system.NativeStart.main(Native Method)
    </clinit>

    I’ve checked both apks, and they both have the native .so files included in the lib/armeabi folder.

    I’m quite puzzled...
    Any help much appreciated !