Recherche avancée

Médias (91)

Autres articles (66)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (5421)

  • Installing full multimedia stack on server (ffmpeg,mp4box,sox,mplayer)

    29 avril 2015, par hdezela

    I’ve had a trusty text file with all(?) the steps I need to set up a full multimedia stack on a RHEL compatible server (CentOS, AWS Linux, etc.) for a few years now. However, sometimes some things are missing and I need to revise it. I know it is not complete so I’m asking for suggestions/modifications in order to get a good - and public - list of how to install all this stuff easily.

    Ideally, I want to be able to run through the file and end up with a system that’ll take any media file and be able to convert/encode/decode/whatever with it.

    This is what I have :

    yum install mesa-libGL-devel mesa-libGLU-devel libXi-devel libXmu-devel freeglut-devel freeglut ncurses-devel
    cd /usr/local/src
    mkdir /usr/local/src/tmp
    chmod 777 /usr/local/src/tmp
    export TMPDIR=/usr/local/src/tmp

    wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
    wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz
    wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz
    wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
    wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/last_stable_x264.tar.bz2
    wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz
    wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
    wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
    wget http://webm.googlecode.com/files/libvpx-v1.3.0.zip
    wget http://downloads.sourceforge.net/project/yamdi/yamdi/1.9/yamdi-1.9.tar.gz
    wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgz
    git clone https://github.com/FFmpeg/FFmpeg.git
    wget http://downloads.sourceforge.net/gpac/gpac-0.5.0.tar.gz
    wget http://downloads.sourceforge.net/gpac/gpac_extra_libs-0.5.0.tar.gz
    wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
    wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.xz
    wget https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-fpcalc-1.1-linux-x86_64.tar.gz
    wget http://sourceforge.net/projects/mad/files/madplay/0.15.2b/madplay-0.15.2b.tar.gz
    wget http://sourceforge.net/projects/mad/files/libmad/0.15.1b/libmad-0.15.1b.tar.gz
    wget http://sourceforge.net/projects/mad/files/libid3tag/0.15.1b/libid3tag-0.15.1b.tar.gz
    wget http://sourceforge.net/projects/sox/files/sox/14.4.1/sox-14.4.1.tar.gz
    wget http://downloads.xiph.org/releases/ao/libao-1.2.0.tar.gz
    wget http://downloads.sourceforge.net/twolame/twolame-0.3.13.tar.gz
    wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
    wget http://www.wavpack.com/wavpack-4.70.0.tar.bz2
    wget http://www.linuxfromscratch.org/patches/blfs/svn/libmad-0.15.1b-fixes-1.patch

    tar zxf yasm-1.3.0.tar.gz
    tar zxf libogg-1.3.2.tar.gz
    tar zxf libvorbis-1.3.4.tar.gz
    tar zxf libtheora-1.1.1.tar.gz
    tar jxf last_stable_x264.tar.bz2
    tar zxf opencore-amr-0.1.3.tar.gz
    tar zxf faac-1.28.tar.gz
    tar zxf lame-3.99.5.tar.gz
    unzip libvpx-v1.3.0.zip
    tar xzf yamdi-1.9.tar.gz
    tar xzf rtmpdump-2.3.tgz
    tar zxvf gpac-0.5.0.tar.gz
    tar zxvf gpac_extra_libs-0.5.0.tar.gz
    tar jxf all-20110131.tar.bz2
    tar jxf MPlayer-1.1.tar.xz
    tar xf chromaprint-fpcalc-1.1-linux-x86_64.tar.gz
    tar xf madplay-0.15.2b.tar.gz
    tar xf libmad-0.15.1b.tar.gz
    tar xf libid3tag-0.15.1b.tar.gz
    tar xf sox-14.4.1.tar.gz
    tar xf libao-1.2.0.tar.gz
    tar xf twolame-0.3.13.tar.gz
    tar xf libsndfile-1.0.25.tar.gz
    tar jxf wavpack-4.70.0.tar.bz2

    [YASM]
       cd /usr/local/src/yasm-1.3.0
       ./configure && make && make install
       yasm --version
       ldconfig
    [LIBOGG]
       cd /usr/local/src/libogg-1.3.2
       ./configure && make clean && make && make install
       ls /usr/local/lib/libogg*
       ldconfig
    [LIBVORBIS]
       cd /usr/local/src/libvorbis-1.3.4
       ./configure && make clean && make && make install
       ls /usr/local/lib/libvorbis*
       ldconfig
    [LIBTHEORA]
       cd /usr/local/src/libtheora-1.1.1
       ./configure && make clean && make && make install
       ls /usr/local/lib/libtheora*
       ldconfig
    [x264]
       cd /usr/local/src/x264-snapshot-[***]
       ./configure --enable-shared && make clean && make && make install
       ls /usr/local/lib/libx264*
       ldconfig
    [AMR]
       cd /usr/local/src/opencore-amr-0.1.3
       ./configure && make clean && make && make install
       ls /usr/local/lib/libopencore*
       ldconfig
    [FAAC]
       cd /usr/local/src/faac-1.28
       vi /usr/local/src/faac-1.28/common/mp4v2/mpeg4ip.h [ELIMINAR]:char *strcasestr(const char *haystack, const char *needle);
       ./configure && make && make install
       ls /usr/local/lib/libfaac*
       ldconfig
    [LAME]
       cd /usr/local/src/lame-3.99.5
       ./configure && make clean && make && make install
       ls /usr/local/lib/libmp3lame*
       ldconfig
    [GPAC+MP4BOX]
       cd  /sr/local/src/gpac
       cp -r ../gpac_extra_libs/* extra_lib/
       chmod +x configure
       ./configure
       make lib
       make apps
       make install-lib
       make install
       cp bin/gcc/libgpac.so /usr/lib
       ldconfig
    [LIBVPX]
       cd /usr/local/src/libvpx-v1.3.0
       ./configure --enable-vp8  --enable-pic --enable-shared && make && make install
       ls /usr/local/lib/libvpx*
       ldconfig
    [LIBRTMP]
       cd /usr/local/src/rtmpdump-2.3
       make SYS=posix
       make install
       ls /usr/local/lib/librtm*
       ldconfig
    [FFMPEG]
       cd /usr/local/src/FFmpeg
       export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig"
       ./configure  --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-libvpx --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencore-amrnb  --enable-libtheora --enable-librtmp
       make clean && make && make install
       make tools/qt-faststart
       cp tools/qt-faststart /usr/local/bin/
       ldconfig
       ffmpeg
       qt-faststart
    [MPLAYER]
       mv /usr/local/src/all-20110131 /usr/local/lib/codecs/
       chmod -R 755 /usr/local/lib/codecs/
       cd MPlayer-1-1
       make clean
       ./configure && make && make install
       ldconfig
    [YAMDI]
       cd /usr/local/src/yamdi-1.9
       gcc yamdi.c -o yamdi -O2 -Wall
       strip yamdi
       cp yamdi /usr/bin/yamdi
       yamdi -h
    [MEDIAINFO]
       rpm -ivh http://downloads.sourceforge.net/zenlib/libzen0-0.4.31-1.x86_64.CentOS_6.rpm
       rpm -ivh http://sourceforge.net/projects/mediainfo/files/binary/libmediainfo0/0.7.73/libmediainfo0-0.7.73-1.x86_64.CentOS_6.rpm
       rpm -ivh http://sourceforge.net/projects/mediainfo/files/binary/mediainfo/0.7.73/mediainfo-0.7.73-1.x86_64.CentOS_6.rpm
    [CHROMAPRINT]
       cp /usr/local/src/chromaprint-fpcalc-1.1-linux-x86_64/fpcalc /usr/local/bin/fpcalc
    [LIBAO]
       cd /usr/local/src/libao-1.2.0
       ./configure
       make
       make install
       ldconfig
    [LIBSND]
       cd /usr/local/src/libsndfile-1.0.25
       ./configure
       make
       make install
       ldconfig
    [TWOLAME]
       cd /usr/local/src/twolame-0.3.13
       ./configure
       make
       make install
       ldconfig
    [WAVPACK]
       cd /usr/local/src/wavpack-4.70.0
       ./configure
       make
       make install
       ldconfig
    [LIBMAD]
       cd /usr/local/src/libmad-0.15.1b
       patch -Np1 -i ../libmad-0.15.1b-fixes-1.patch
       sed "s@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g" -i configure.ac
       touch NEWS AUTHORS ChangeLog
       autoreconf -fi
       ./configure --enable-shared
       make
       make install
       ldconfig
    [ID3]
       cd /usr/local/src/libid3tag-0.15.1b
       ./configure --enable-shared
       make
       make install
       ldconfig
    [MADPLAY]
       cd /usr/local/src/madplay-0.15.2b
       ./configure --enable-shared
       make
       make install
       ldconfig
    [SOX]
       cd /usr/local/src/sox-14.4.1
       ./configure
       make -s
       make install
       ldconfig
  • Revision 37455 : Une meilleure vérification... On ne disposait pas encore de l’id_orig ici

    20 avril 2010, par kent1@… — Log

    Une meilleure vérification... On ne disposait pas encore de l’id_orig ici

  • How to play avi files on browser

    31 janvier 2017, par mvalencaa

    My team needs to develop a system that plays avi files on the web. These files are recorded by a hardware whose firmware we don’t have access to. We are trying to negotiate it with the manufacturer to change the file format to mp4, but until now we have nothing.

    Because of this, we are trying another manners to make it work. Our first attempt was to use FFMPEG to convert the files to mp4 (or webm or ogg), but this process takes too long because we have to do it everyday with a really huge amount of videos.

    We also tried to use FFMPEG’s copy command (which is much faster), but the video always crashes at some point (mainly when we need to navigate in its timeline) and we don’t know why.

    So now we are thinking to customize videojs flash player to reproduce the AVI files, but because we don’t have too much experience with video programming and flash, we don’t know if this is possible. Is it possible to write a decoder in action script to read avi files ?

    I saw that Youtube and Facebook can play AVI files... How do they do this ? I have already looked a lot about it, but had no success.

    EDIT 1

    avi video file before copy command :

    $ ffmpeg -i video.avi
    ffmpeg version N-82324-g872b358 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dx                                                                                                                                                                                               va2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-lib                                                                                                                                                                                               ebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --ena                                                                                                                                                                                               ble-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfree                                                                                                                                                                                               type --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enab                                                                                                                                                                                               le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib                                                                                                                                                                                               openh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschr                                                                                                                                                                                               oedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheor                                                                                                                                                                                               a --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvo                                                                                                                                                                                               rbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --ena                                                                                                                                                                                               ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --e                                                                                                                                                                                               nable-decklink --enable-zlib
     libavutil      55. 36.100 / 55. 36.100
     libavcodec     57. 66.101 / 57. 66.101
     libavformat    57. 57.100 / 57. 57.100
     libavdevice    57.  2.100 / 57.  2.100
     libavfilter     6. 66.100 /  6. 66.100
     libswscale      4.  3.100 /  4.  3.100
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    Input #0, avi, from 'video.avi':
     Metadata:
       encoder         :
     Duration: 00:50:07.67, start: 0.000000, bitrate: 6 kb/s
       Stream #0:0: Video: h264 (Constrained Baseline) (H264 / 0x34363248), yuv420p                                                                                                                                                                                               (progressive), 352x240, 3 fps, 3 tbr, 3 tbn, 6 tbc
    At least one output file must be specified

    copy command (with no audio stream because the videos don’t have it) :

    $ ffmpeg -i video.avi -vcodec copy video.mp4
    ffmpeg version N-82324-g872b358 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
     libavutil      55. 36.100 / 55. 36.100
     libavcodec     57. 66.101 / 57. 66.101
     libavformat    57. 57.100 / 57. 57.100
     libavdevice    57.  2.100 / 57.  2.100
     libavfilter     6. 66.100 /  6. 66.100
     libswscale      4.  3.100 /  4.  3.100
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    Input #0, avi, from 'video.avi':
     Metadata:
    encoder         :
     Duration: 00:50:07.67, start: 0.000000, bitrate: 6 kb/s
    Stream #0:0: Video: h264 (Constrained Baseline) (H264 / 0x34363248), yuv420p(progressive), 352x240, 3 fps, 3 tbr, 3 tbn, 6 tbc
    Output #0, mp4, to 'video.mp4':
     Metadata:
    encoder         : Lavf57.57.100
    Stream #0:0: Video: h264 (Constrained Baseline) ([33][0][0][0] / 0x0021), yuv420p(progressive), 352x240, q=2-31, 3 fps, 3 tbr, 12288 tbn, 3 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [mp4 @ 0000000002513fc0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
    [NULL @ 0000000002524020] missing picture in access unit with size 16
    Last message repeated 300 times
    frame= 9324 fps=0.0 q=-1.0 Lsize=    1388kB time=01:38:27.66 bitrate=   1.9kbits/s speed=3.32e+004x
    video:1354kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.493988%

    mp4 video file after copy command :

    $ ffmpeg -i video.mp4
    ffmpeg version N-82324-g872b358 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dx                                                                                                                                                                                               va2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-lib                                                                                                                                                                                               ebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --ena                                                                                                                                                                                               ble-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfree                                                                                                                                                                                               type --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enab                                                                                                                                                                                               le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib                                                                                                                                                                                               openh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschr                                                                                                                                                                                               oedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheor                                                                                                                                                                                               a --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvo                                                                                                                                                                                               rbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --ena                                                                                                                                                                                               ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --e                                                                                                                                                                                               nable-decklink --enable-zlib
     libavutil      55. 36.100 / 55. 36.100
     libavcodec     57. 66.101 / 57. 66.101
     libavformat    57. 57.100 / 57. 57.100
     libavdevice    57.  2.100 / 57.  2.100
     libavfilter     6. 66.100 /  6. 66.100
     libswscale      4.  3.100 /  4.  3.100
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
     Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.57.100
     Duration: 01:38:28.00, start: 0.000000, bitrate: 1 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yu                                                                                                                                                                                               v420p, 352x240, 1 kb/s, 1.58 fps, 3 tbr, 12288 tbn, 24576 tbc (default)
    Metadata:
     handler_name    : VideoHandler
    At least one output file must be specified

    EDIT 2

    I uploaded two little samples if somebody wants to test :