Recherche avancée

Médias (91)

Autres articles (63)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (13845)

  • Cannot play video in TextureView Android

    26 octobre 2014, par Billda

    I have a problem with playing video on some devices. I am using textureview with mediaplayer, every methods of SurfaceTextureView are called but when I just call mediaPlayer.start(), immediately the listener with completition of playing is called. In log is this error :

    E/MediaPlayer﹕ error (1, -2147483648)

    When I list log from all applications, I can see some errors and I dont know if it is somehow related http://pastebin.com/rRxxQgdJ

    This log is from CyanogenMod with Android 4.3.1 but on some other devices like Samsung Galaxy S3 mini this error is happening.

    On my Nexus 4 everything works fine. I’ve tried convert that video with mp4 codec for android H.264 and even with ffmpeg but the result is still the same. I am using TextureVideoView implementation from here :
    https://github.com/dmytrodanylyk/video-crop/blob/master/library/src/com/dd/crop/TextureVideoView.java

    Thanks for any advice

  • ffmpeg for Android build shows error

    2 avril 2015, par Jamal

    I would like to build ffmpeg for Android so I am following a steps from this tutorial http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/

    What I tried

    1. downloaded android-ndk-r10d-darwin-x86_64.bin for Mac 64 bit OS
    2. decompressed/extract the NDK archieve file
    3. downloaded ffmpeg 2.6.1
    4. decompressed/extract the `ffmpeg 2.6.1 file
    5. copied the ffmpeg 2.6.1 extracted folder and pasted into android-ndk-r10d/sources/ location
    6. Opened the ffmpeg-2.6.1/configure file and replaced this code

      SLIBNAME_WITH_MAJOR=’$(SLIBNAME).$(LIBMAJOR)’
      LIB_INSTALL_EXTRA_CMD=’$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"’
      SLIB_INSTALL_NAME=’$(SLIBNAME_WITH_VERSION)’
      SLIB_INSTALL_LINKS=’$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)’

    with

    SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
    LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
    SLIB_INSTALL_NAME='$(SLIBNAME_WITH_MAJOR)'
    SLIB_INSTALL_LINKS='$(SLIBNAME)'

    7.Created the build_android.shfile inside ffmpeg-2.6.1 folder so now it be like this ffmpeg-2.6.1/build_android.sh.
    instead of this NDK=$HOME/Desktop/adt/android-ndk-r9 line I set current NDK location
    8. executed this sudo chmod +x build_android.sh command

    1. while executing this command ./build_android.sh got below error

    Hubs-Mac-mini:ffmpeg-2.6.1 hubmaci7$ ./build_android.sh
    Configured with : —prefix=/Applications/Xcode.app/Contents/Developer/usr —with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
    Configured with : —prefix=/Applications/Xcode.app/Contents/Developer/usr —with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1
    /hubmaci7/Pictures/Hubino/Jamal/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc is unable to create an executable file.
    C compiler test failed.

    If you think configure made a mistake, make sure you are using the latest
    version from Git.  If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.log" produced by configure as this will help
    solve the problem.
    Makefile:2: config.mak: No such file or directory
    Makefile:59: /common.mak: No such file or directory
    Makefile:100: /libavutil/Makefile: No such file or directory
    Makefile:100: /library.mak: No such file or directory
    Makefile:102: /doc/Makefile: No such file or directory
    Makefile:185: /tests/Makefile: No such file or directory
    make: *** No rule to make target `/tests/Makefile'.  Stop.
    Makefile:2: config.mak: No such file or directory
    Makefile:59: /common.mak: No such file or directory
    Makefile:100: /libavutil/Makefile: No such file or directory
    Makefile:100: /library.mak: No such file or directory
    Makefile:102: /doc/Makefile: No such file or directory
    Makefile:185: /tests/Makefile: No such file or directory
    make: *** No rule to make target `/tests/Makefile'.  Stop.
    Makefile:2: config.mak: No such file or directory
    Makefile:59: /common.mak: No such file or directory
    Makefile:100: /libavutil/Makefile: No such file or directory
    Makefile:100: /library.mak: No such file or directory
    Makefile:102: /doc/Makefile: No such file or directory
    Makefile:185: /tests/Makefile: No such file or directory
    make: *** No rule to make target `/tests/Makefile'.  Stop.
    Hubs-Mac-mini:ffmpeg-2.6.1 hubmaci7$

    please provide a needed solution for me to solve this errors

  • How to decode h264 video encoded from yuv444p frames ?

    22 octobre 2015, par Bing Liu

    I had an h264 video stream encoded from yuv444p frames, it was played well using vlc or mpv player.

    But when I tried to decode it using libavcodec, it just looked like this.

    wrong result ;

    The source frame is an upsize down vlc-player logo.

    Here is the intialization of the decoder :

    AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_H264);
    AVCodecContext *codecCtx = avcodec_alloc_context3(codec);
    avcodec_open2(codecCtx, codec, NULL);

    The decoder worked well when decoding packets encoded from yuv420p.
    Did I miss anything when decoding those packets encoded from yuv444p frames ?

    Update:I converted the yuv444p output into BGRA with sws_scale(), then I make a transforment with the follow codes ;

    int offset_out = 0, offset_tmp = 0;
    uint32_t *tmp = (uint32_t *)malloc(width * height * 4);
    for (int i = 0; i < width * height; i++) {
       if ((i + width + 9) % (width + 9) > width) {
           out[offset_out++] = in[i];
       } else {
           tmp[offset_tmp++] = in[i];
       }
    }
    memcpy(out + offset_out, tmp, offset_tmp);
    free(tmp);

    Then the picture looked all right.

    There is a number 9 in i + width + 9. I guessed that cause I knew the width and height of the source picture. But what if the width or height was changed to some value else, 9 didn’t work.

    I want to know what’s wrong with the decoder.