Recherche avancée

Médias (91)

Autres articles (69)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (11958)

  • FFMPEG for Android - missing alsa format

    24 août 2012, par user1545779

    @rowntreerob has an android-ffmpeg implementation that build successfully using the default file settings.

    When you remove disble-avdevice and disbale-devices from the configure_ffmpeg script, ndk-build fails. The following is the error message :

    CP ffmpeg
    STRIP ffmpeg
     /android-ffmpeg/Project/jni
     /android-ffmpeg/Project/jni
     /android-ffmpeg/Project/jni
    jasongipsyblues@android-master : /android-ffmpeg/Project/jni$ ndk-build
    Compile thumb : ffmpeg <= ffmpeg.c
    Compile thumb : ffmpeg <= cmdutils.c
    Executable : ffmpeg
    /home/jasongipsyblues/android-ffmpeg/Project/obj/local/armeabi- >v7a/objs/ffmpeg/ffmpeg/ffmpeg.o : In function `main' :

    /home/jasongipsyblues/android-ffmpeg/Project/jni/ffmpeg/ffmpeg.c:6130 : undefined >reference to `avdevice_register_all'

    /home/jasongipsyblues/android-ffmpeg/Project/obj/local/armeabi- >v7a/objs/ffmpeg/ffmpeg/cmdutils.o : In function `print_all_libs_info' :

    /home/jasongipsyblues/android-ffmpeg/Project/jni/ffmpeg/cmdutils.c:639 : undefined >reference to `avdevice_configuration'

    /home/jasongipsyblues/android-ffmpeg/Project/jni/ffmpeg/cmdutils.c:639 : undefined >reference to `avdevice_version'

    collect2 : ld returned 1 exit status

    make : ** [/home/jasongipsyblues/android-ffmpeg/Project/obj/local/armeabi-v7a/ffmpeg] >Error 1

    Please pardon my poor formating skills, I still dont get the formating thing. It appears the deletion of the references is to avdevices is definitely affecting the use of ndk-build.

    All the alsa source files exist in the ffmpeg code. How does one build ffmpeg in such a way that alsa is included in the formats ?

  • Grayscale streaming from raw video using FFMPEG

    21 janvier 2015, par user1657208

    I have a raw video file (testvideo_1000f.raw) that I am trying to stream in gray scale using ffmpeg and output the grayscale video to output.swf. The command I am using to do this is :

    ffmpeg/ffmpeg -qmin 2 -qmax 31 -s 320x240 -f rawvideo -flags gray -pix_fmt:output gray -an -i testvideo_1000f.raw output.swf

    However, the result from this command is a video stream that is in gray scale but still contains some of the chrominance data. The output from this command is pasted below :

       3 [volta]/home/student/elliott> ffmpeg/ffmpeg -qmin 2 -qmax 31 -s 320x240 -f rawvideo -flags gray -pix_fmt:output gray -an -i testvideo_1000f.raw output.swf
    ffmpeg version N-41632-g2b1fc56 Copyright (c) 2000-2012 the FFmpeg developers
     built on Jul 29 2012 10:27:26 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
     configuration:
     libavutil      51. 58.100 / 51. 58.100
     libavcodec     54. 25.100 / 54. 25.100
     libavformat    54.  6.101 / 54.  6.101
     libavdevice    54.  0.100 / 54.  0.100
     libavfilter     2. 80.100 /  2. 80.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0. 15.100 /  0. 15.100
    *** CHOOSING 8
    [rawvideo @ 0xdda9660] Estimating duration from bitrate, this may be inaccurate
    Input #0, rawvideo, from 'testvideo_1000f.raw':
     Duration: N/A, start: 0.000000, bitrate: N/A
      Stream #0:0: Video: rawvideo (Y800 / 0x30303859), gray, 320x240, 25 tbr, 25 tbn, 25 tbc
    File 'output.swf' already exists. Overwrite ? [y/N] y
    w:320 h:240 pixfmt:gray tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
    [ffmpeg_buffersink @ 0xddb7b40] No opaque field provided
    [format @ 0xddb7d40] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
    [auto-inserted scaler 0 @ 0xddb7920] w:320 h:240 fmt:gray sar:0/1 -> w:320 h:240 fmt:yuv420p sar:0/1 flags:0x4
    *** CHOOSING 8
    Output #0, swf, to 'output.swf':
     Metadata:
       encoder         : Lavf54.6.101
      Stream #0:0: Video: flv1, yuv420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo -> flv)
    Press [q] to stop, [?] for help
    Truncating packet of size 76800 to 1 2875kB time=00:00:40.84 bitrate= 576.7kbits/s    
    frame= 1500 fps=1035 q=24.8 Lsize=    4194kB time=00:01:00.00 bitrate= 572.6kbits/s    
    video:4166kB audio:0kB global headers:0kB muxing overhead 0.669245%

    I am fairly new to FFMPEG and I am afraid I am using either the wrong syntax or the wrong parameters in my command line. For some reason, the format of the output is yuv420p. I have tried searching for this answer all over but have had no luck. Could anyone please help me and tell me why the output is being formatted in yuv420p when I am giving the command for it to be in 8bit grayscale ? Any help would be greatly appreciated. Thank you.

    Marc Elliott

  • stagefright for ffmpeg : undefined symbol '_ZTIN7android11MediaSourceE'

    14 juillet 2014, par user3051473

    all... I want to try ffmpeg hw accelerate with libstagefright_h264 for android device.
    Seems that the source code has a little bit old with ffmpeg 2.2.1 and android 4.2.2.
    So I try to update the source code but when I only write just a little code like following :

    struct FFSource : public MediaSource {                                                                                  
       virtual status_t start(MetaData *params) { return -1; }                      
       virtual status_t stop() { return -1; }                                        
       virtual sp<metadata> getFormat() { return sp<metadata>(); }                  
       virtual status_t read(                                                                                              
               MediaBuffer **buffer, const ReadOptions *options) { return -1; }    
    };

    static av_cold int Stagefright_init(AVCodecContext *avctx)                                                            
    {                                                                                                                        
       av_log(avctx, AV_LOG_ERROR, "In function: %s\n", __FUNCTION__);                                                      
       FFSource *decoder;                                                                                                  
       sp<mediasource> mediaSource;

       decoder = new FFSource();                                                        
       return -1;
    }
    </mediasource></metadata></metadata>

    it tells me like following when I run the code :
    cannot locate symbol "_ZTIN7android11MediaSourceE" referenced by "libavcodec-55.so"...

    And the result show the nm command for libavcodec-55.so :

    [cxm@ubuntu ffmpeg-2.2.1.lsc]$nm ./libavcodec/libavcodec.so  | grep Source

    003a31a8 t _ZN7android11MediaSource10setBuffersERKNS_6VectorIPNS_11MediaBufferEEE
    003a319c t _ZN7android11MediaSource5pauseEv
            U _ZN7android11MediaSourceC2Ev
            U _ZN7android11MediaSourceD0Ev
            U _ZN7android11MediaSourceD1Ev
            U _ZN7android11MediaSourceD2Ev
    003a31d0 t _ZN8FFSource4readEPPN7android11MediaBufferEPKNS0_11MediaSource11ReadOptionsE
    003a31bc t _ZN8FFSource4stopEv
    003a31b4 t _ZN8FFSource5startEPN7android8MetaDataE
    003a31c4 t _ZN8FFSource9getFormatEv
    003a3340 t _ZN8FFSourceD0Ev
    003a32e0 t _ZN8FFSourceD1Ev
    007b29f0 d _ZTC8FFSource0_N7android11MediaSourceE
    007b29e0 d _ZTI8FFSource
            U _ZTIN7android11MediaSourceE
    006ac028 r _ZTS8FFSource
    007b2970 d _ZTT8FFSource
            U _ZTv0_n12_N7android11MediaSourceD0Ev
            U _ZTv0_n12_N7android11MediaSourceD1Ev
    003a3330 t _ZTv0_n12_N8FFSourceD0Ev
    003a32d0 t _ZTv0_n12_N8FFSourceD1Ev
    007b2980 d _ZTV8FFSource

    Also I cannot find _ZTIN7android11MediaSourceE in libstagefright.so. I think there’s any mistake I have in writing the source code instead of mis-link the stagefright library.
    I use android standalone toolchain to compile ffmpeg source. Like following configuration :

       function config_lsf                                                                                                                                                                            
       {
           # build flags                                                                                                                                                                              
           PREFIX=/home/cxm/work/Android/proj/dy-proj-careye/dy-proj-careye/jni/src/lib/android/            FLAGS="--prefix=$PREFIX"                                                                                                                                                                    
           FLAGS="$FLAGS --disable-static"                                                                                                                                                            
           FLAGS="$FLAGS --disable-doc"                                                                                                                                                                
           FLAGS="$FLAGS --disable-programs"                                                                                                                                                          
           FLAGS="$FLAGS --disable-avdevice"                                                                                                                                                          
           FLAGS="$FLAGS --disable-symver"                                                                                                                                                            
           FLAGS="$FLAGS --enable-shared"                                                                                                                                                              
           FLAGS="$FLAGS --cross-prefix=arm-linux-androideabi-"                                                                                                                                        
           FLAGS="$FLAGS --target-os=linux"                                                                                                                                                            
           FLAGS="$FLAGS --arch=arm"                                                                                                                                                                  
           FLAGS="$FLAGS --enable-cross-compile"                                                                                                                                                      

           FLAGS="$FLAGS --disable-decoder=h264"                                                                                                                                                      
           FLAGS="$FLAGS --disable-decoder=h264_vdpau"                                                                                                                                                
           FLAGS="$FLAGS --enable-libstagefright-h264"                                                                                                                                                

           # cflags                                                                                                                                                                                    
           CFLAGS="-Os -fpic -marm"                                                                                                
           ANDROID_SOURCE=../mokesoures/                                                                                                                                                              
           ANDROID_LIBS=../android-libs                                                                                                                                                                
           CFLAGS="$CFLAGS -I$ANDROID_SOURCE/frameworks/av/include"                                                                                                                                    
           CFLAGS="$CFLAGS -I$ANDROID_SOURCE/frameworks/native/include/"                                                                                                                              
           CFLAGS="$CFLAGS -I$ANDROID_SOURCE/system/core/include"                                                                                                                                      
           CFLAGS="$CFLAGS -I$ANDROID_SOURCE/hardware/libhardware/include"                                                                                                                            
           CFLAGS="$CFLAGS -I$ANDROID_SOURCE/frameworks/native/include/media/openmax/"                                                                                                                

           # ld flags                                                                                                                                                                                  
           LDFLAGS="-Wl,--fix-cortex-a8"                                                                                                                                                              
           LDFLAGS="$LDFLAGS -lstdc++ -lgnustl_shared -lstagefright -lutils -lbinder"                                                                                                                  
           LDFLAGS="$LDFLAGS -L$ANDROID_LIBS"                                                                                                                                                          
           LDFLAGS="$LDFLAGS -Wl,-rpath-link,$ANDROID_LIBS"                                                                                                                  

           ./configure.android $FLAGS --extra-cflags="$CFLAGS" \                                                                                                                                      
               --extra-ldflags="$LDFLAGS" \                                                                                                                                                            

           sed -i 's/#define\ HAVE_POSIX_MEMALIGN\ 1/#define\ HAVE_POSIX_MEMALIGN\ 0/' ./config.h                                                                                                      
           make -j4 V=1 2>&amp;1 | tee log                                                                                                                                                                
           make install                                                                                                                                                                                
       }                                                                                                                                                                                              

    Please help about this topic. Thanks very much.