Recherche avancée

Médias (91)

Autres articles (100)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8976)

  • Building ffmpeg for Android on Windows through MinGW

    23 mai 2012, par Harish

    I'm trying to build ffmpeg for Android on Windows through MiNGW but facing the below problem :

    AR libavcodec/libavcodec.a  
    LD ffmpeg_g.exe  
    LD ffplay_g.exe  
    LD ffprobe_g.exe  
    INSTALL libavcodec/libavcodec.a  
    CP ffmpeg.exe  
    STRIP ffmpeg.exe  
    CP ffprobe.exe  
    STRIP ffprobe.exe  
    CP ffplay.exe  
    STRIP ffplay.exe  
    INSTALL install-progs-yes  
    INSTALL ffmpeg.exe  
    INSTALL ffplay.exe  
    INSTALL ffprobe.exe  
    d:\android-ndk-r8\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\bin\arm-linux-androideabi-ld.exe: cannot open output file ./android/armv7-a/libffmpeg.so: No such file or directory

    libavcodec/tscc.c: In function 'decode_frame':  
    libavcodec/tscc.c:97:24: warning: assignment discards qualifiers from pointer target type  
    ./libavcodec/avcodec.h:40:0: fatal error: when writing output to : Invalid argument  
    compilation terminated.  
    libavcodec/vc1dsp.c: In function 'ff_vc1dsp_init':  

    This is my build script :

    NDK=/d/android-ndk-r8  
    PLATFORM=$NDK/platforms/android-9/arch-arm/  
    PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows  
    function build_one_r6  
    {  
    ./configure \  
    --disable-shared \  
    --enable-static \  
    --enable-gpl \  
    --enable-version3 \  
    --enable-nonfree \  
    --disable-doc \  
    --disable-ffmpeg \  
    --disable-ffplay \  
    --disable-ffprobe \  
    --disable-ffserver \  
    --disable-avdevice \  
    --disable-avfilter \  
    --disable-postproc \  
    --enable-small \  
    --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \  
    --enable-cross-compile \  
    --target-os=linux \  
    --extra-cflags="-I$PLATFORM/usr/include" \  
    --extra-ldflags="-L$PLATFORM/usr/lib -nostdlib" \  
    --arch=arm \  
    --disable-symver \  
    --disable-debug \  
    --disable-stripping \  
    $ADDITIONAL_CONFIGURE_FLAG  
    sed -i 's/HAVE_LRINT 0/HAVE_LRINT 1/g' config.h  
    sed -i 's/HAVE_LRINTF 0/HAVE_LRINTF 1/g' config.h  
    sed -i 's/HAVE_ROUND 0/HAVE_ROUND 1/g' config.h  
    sed -i 's/HAVE_ROUNDF 0/HAVE_ROUNDF 1/g' config.h  
    sed -i 's/HAVE_TRUNC 0/HAVE_TRUNC 1/g' config.h  
    sed -i 's/HAVE_TRUNCF 0/HAVE_TRUNCF 1/g' config.h  
    make clean  
    make -j4 install  
    $PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a inverse.o  
    $PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -  soname libffmpeg.so -shared -nostdlib -z,noexecstack -Bsymbolic --whole-archive --no-  undefined -o $PREFIX/libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a   libavutil/libavutil.a libswscale/libswscale.a -lc -lm -lz -ldl -llog --warn-once --dynamic-  linker=/system/bin/linker $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a  
    }  
    CPU=armv7-a  
    OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "  
    PREFIX=./android/$CPU  
    ADDITIONAL_CONFIGURE_FLAG=  

    Any idea what I'm missing here ? Please note that I was able to build ffmpeg for Windows desktop successfully so I assume the setup is correct.

  • FFMPEG av_interleaved_write_frame() : Operation not permitted

    20 octobre 2014, par camslaz

    Ok I receiving a ’av_interleaved_write_frame() : Operation not permitted’ error while trying to encode an MOV file. Firstly I need to outline the conditions behind it.

    I am encoding 12 different files of different resolution sizes and format types via a PHP script that runs on cron. Basically it grabs a 250mb HD MOV file and encodes it in 4 different frame sizes as MOV, MP4 and WMV file types.

    Now the script takes over 10mins to run and encode each of the files for the 250mb input file. I am outputting the processing times and as soon as the time on the script hits 10mins FFMPEG crashes and returns "av_interleaved_write_frame() : Operation not permitted" for the current file being encoded and all other remaining files yet to be encoded.

    If the input videos is 150MB the total time the script runs for is under 10mins so it encodes all of the videos fine. Additionally if I run the FFMPEG command on the individual file that it fails on for the 250mb file it encodes the file with no issues.

    From doing to research on the error "av_interleaved_write_frame()" it seems it is related to timestamps of what I understand to be of the input file. But in saying that it doesn’t seem to be the case in my instance because I can encode the file with no problem if I do it individually.

    example ffmpeg command

    ffmpeg -i GVowbt3vsrXL.mov -s 1920x1080 -sameq -vf "unsharp" -y GVowbt3vsrXL_4.wmv

    Error output on the failed file at 10mins. Remember there is no issue with the command if I run it by itself it is only when the script hits 10mins.

    'output' =>
        array (
          0 => 'FFmpeg version SVN-r24545, Copyright (c) 2000-2010 the FFmpeg developers',
          1 => '  built on Aug 20 2010 23:32:02 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)',
          2 => '  configuration: --enable-shared --enable-gpl --enable-pthreads --enable-nonfree --cpu=opteron --extra-cflags=\'-O3 -march=opteron -mtune=opteron\' --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-avfilter --enable-filter=movie --enable-avfilter-lavf --enable-swscale',
          3 => '  libavutil     50.23. 0 / 50.23. 0',
          4 => '  libavcore      0. 1. 0 /  0. 1. 0',
          5 => '  libavcodec    52.84. 1 / 52.84. 1',
          6 => '  libavformat   52.77. 0 / 52.77. 0',
          7 => '  libavdevice   52. 2. 0 / 52. 2. 0',
          8 => '  libavfilter    1.26. 1 /  1.26. 1',
          9 => '  libswscale     0.11. 0 /  0.11. 0',
          10 => 'Input #0, mov,mp4,m4a,3gp,3g2,mj2, from \'/home/hdfootage/public_html/process/VideoEncode/_tmpfiles/GVowbt3vsrXL/GVowbt3vsrXL.mov\':',
          11 => '  Metadata:',
          12 => '    major_brand     : qt',
          13 => '    minor_version   : 537199360',
          14 => '    compatible_brands: qt',
          15 => '  Duration: 00:00:20.00, start: 0.000000, bitrate: 110802 kb/s',
          16 => '    Stream #0.0(eng): Video: mjpeg, yuvj422p, 1920x1080 [PAR 72:72 DAR 16:9], 109386 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc',
          17 => '    Stream #0.1(eng): Audio: pcm_s16be, 44100 Hz, 2 channels, s16, 1411 kb/s',
          18 => '[buffer @ 0xdcd0e0] w:1920 h:1080 pixfmt:yuvj422p',
          19 => '[unsharp @ 0xe00280] auto-inserting filter \'auto-inserted scaler 0\' between the filter \'src\' and the filter \'Filter 0 unsharp\'',
          20 => '[scale @ 0xe005b0] w:1920 h:1080 fmt:yuvj422p -> w:1920 h:1080 fmt:yuv420p flags:0xa0000004',
          21 => '[unsharp @ 0xe00280] effect:sharpen type:luma msize_x:5 msize_y:5 amount:1.00',
          22 => '[unsharp @ 0xe00280] effect:none type:chroma msize_x:0 msize_y:0 amount:0.00',
          23 => 'Output #0, asf, to \'/home/hdfootage/public_html/process/VideoEncode/_tmpfiles/GVowbt3vsrXL/GVowbt3vsrXL_4.wmv\':',
          24 => '  Metadata:',
          25 => '    WM/EncodingSettings: Lavf52.77.0',
          26 => '    Stream #0.0(eng): Video: msmpeg4, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 1k tbn, 25 tbc',
          27 => '    Stream #0.1(eng): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 64 kb/s',
          28 => 'Stream mapping:',
          29 => '  Stream #0.0 -> #0.0',
          30 => '  Stream #0.1 -> #0.1',
          31 => 'Press [q] to stop encoding',
          32 => '[msmpeg4 @ 0xdccb50] warning, clipping 1 dct coefficients to -127..127',

    Then it errors

    frame=   75 fps=  5 q=1.0 size=   12704kB time=2.90 bitrate=3588 6.0kbits av_interleaved_write_frame(): Operation not permitted',
        )

    Has any anybody encountered this sort of problem before ? It seems to be something to do with the timestamps but only because the script is running for a period longer then 10mins. It maybe related to PHP/Apache config but I don’t know if it is FFMPEG or if it is server config I need to be looking at.

  • Chiptune Database and API

    14 septembre 2012, par Multimedia Mike — General

    So I set out to create a website that allows people to easily listen to video game music directly through their web browser. I succeeded in that goal. However, I must admit that the project has limited appeal since the web player is delivered via Chrome’s Native Client technology, somewhat limiting its audience. I’m not certain if anyone really expects NaCl to take off in any serious way, but I still have a few other projects in mind.

    I recently realized that, as a side effect of this project, I accidentally created something of significant value to fans of old video games and associated music– a searchable database of chiptune music and metadata. To my knowledge, no one else has endeavored to create such a thing. I figured that I might as well make the database easily accessible with an API and see where it leads.

    To that end, I created 2 API entry points. First, there is the search API located at http://gamemusic.multimedia.cx/api/search/. This can be exercised by ending the URL with a URL-encoded search string, e.g. : http://gamemusic.multimedia.cx/api/search/super+mario. This returns JSON data containing an array of results in decreasing order of relevance. Each result has a game title, database ID, media URL, system type, and an SHA-1 hash. This is the same API that the site’s own search page uses.

    The database ID can be plugged into http://gamemusic.multimedia.cx/api/metadata/ to retrieve the song’s metadata in JSON format. E.g., the ID for Super Mario Bros. 3 on the NES is 161 : http://gamemusic.multimedia.cx/api/metadata/161.

    I recently read an article about sins against true RESTful API principles which led me to believe I’m almost certainly doing this web API stuff wrong. I don’t think it’s a huge deal, though, since I don’t think anyone actually listens to chiptunes any more. But if there are offline chiptune music players that are still in service and actively maintained, perhaps the authors would like to implement this API. It would require some type of HTTP networking library, a JSON parser, the embedded XZ decoder, and some new code to parse through my .gamemusic and .psfarchive formats.

    This database could be a significant value-add to chiptune playback software, and could help people experience classic game music much more easily.