Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (41)

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

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (11251)

  • Need help to compile FFmpeg with MSVC tools

    30 janvier 2018, par Antwane

    I need to compile FFmpeg on Windows 10 using MSVC 2017 compiler. I followed some guides from :

    I installed current stable version of MSYS, fixed link.exe and use of PATH environment, installed make diffutils gcc pkg-config and downloaded c99-to-c89, nasm, and inttypes.h

    I think my environment is now correctly set up, I ran MSYS shell from MSVC Command prompt and have everything reachable.

    $ which cl
    /c/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.12.25827/bin/HostX64/x64/cl

    $ which link
    /c/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.12.25827/bin/HostX64/x64/link

    $ which yasm
    /home/Antoine/bin/yasm

    $ which c99conv
    /home/Antoine/bin/c99conv

    $ which c99wrap
    /home/Antoine/bin/c99wrap

    Now I configure the build

    $ ./configure --toolchain=msvc
    install prefix            /usr/local
    source path               .
    C compiler                cl
    C library                 msvcrt
    ARCH                      x86 (generic)
    big-endian                no
    runtime cpu detection     yes
    standalone assembly       yes
    x86 assembler             nasm
    MMX enabled               yes
    MMXEXT enabled            yes
    3DNow! enabled            yes
    3DNow! extended enabled   yes
    SSE enabled               yes
    SSSE3 enabled             yes
    AESNI enabled             yes
    AVX enabled               yes
    AVX2 enabled              yes
    XOP enabled               yes
    FMA3 enabled              yes
    FMA4 enabled              yes
    i686 features enabled     yes
    CMOV is fast              yes
    EBX available             no
    EBP available             no
    debug symbols             yes
    strip symbols             no
    optimize for size         no
    optimizations             yes
    static                    yes
    shared                    no
    postprocessing support    no
    network support           yes
    threading support         w32threads
    safe bitstream reader     yes
    texi2html enabled         no
    perl enabled              no
    pod2man enabled           no
    makeinfo enabled          no
    makeinfo supports HTML    no

    External libraries:
    schannel                 xlib

    External libraries providing hardware acceleration:
    cuda                     cuvid                    d3d11va                  dxva2                    nvenc

    Libraries:
    avcodec                  avdevice                 avfilter                 avformat                 avutil                   swresample               swscale

    Programs:
    ffmpeg                   ffprobe

    [...]
    Hundreds of modules, library, etc.
    [...]

    License: LGPL version 2.1 or later
    Creating configuration files ...
    config.h is unchanged
    config.asm is unchanged
    libavutil/avconfig.h is unchanged
    libavcodec/bsf_list.c is unchanged
    libavformat/protocol_list.c is unchanged

    But when I run make it stops very quickly

    $ make
    Makefile:47: la cible « qt-faststart » ne correspond pas au motif de cible
    Makefile:47: la cible « trasher » ne correspond pas au motif de cible
    Makefile:47: la cible « uncoded_frame » ne correspond pas au motif de cible
    Makefile:91: ffbuild/library.mak: No such file or directory
    make: *** Aucune règle pour fabriquer la cible « ffbuild/library.mak ». Arrêt.

    Sorry for the french wording, I don’t know how to tell MSVC print its output in english. Basically, the error means :

    Makefile:47: target « qt-faststart » doesn't match the target pattern
    make: *** No rule to make target « ffbuild/library.mak ». Stopped.

    Side notes :

    $ tree ffbuild
    ffbuild
    ├── config.fate
    ├── config.log
    ├── config.mak
    └── config.sh

    That’s right, library.mak were not generated into ffbuild, but I don’t know why, and configure script didn’t output any error message...

    Does anybody can help me to find out what am I doing wrong ?

    Edit :

    make distclean doesn’t help

    $ make distclean
    Makefile:47: la cible « qt-faststart » ne correspond pas au motif de cible
    Makefile:47: la cible « trasher » ne correspond pas au motif de cible
    Makefile:47: la cible « uncoded_frame » ne correspond pas au motif de cible
    Makefile:91: ffbuild/library.mak: No such file or directory
    make: *** Aucune règle pour fabriquer la cible « ffbuild/library.mak ». Arrêt.
  • Set input frame rate in pygame.Camera

    14 mai 2018, par Thomas Hubregtsen

    I am trying to get an input stream from a webcam on OS X

    self.capture = pygame.camera('/dev/video{}'.format(camera),
                                    (640, 480), 'RGB')

    I get an error (see below), but there are 2 pieces of information that I can not really stitch together. On first sight, it looks like I do not have the correct camera (not video4linux). However, when running

    ffmpeg -f avfoundation -list_devices true -i ""

    I get it listed

    [AVFoundation input device @ 0x7fbb45700340] [1] FULL HD 1080P Webcam

    The next part of the error talks about frame rate. It appears that the frame-rate is slightly off, and that I just next to select a different frame rate. Would this be possible with pygcam ? Would this solve my problem ?

    Error :

    Traceback (most recent call last):
     File "webcam2.py", line 129, in <module>
       VideoStreaming("52.191.118.156", 5558, 1)()
     File "webcam2.py", line 22, in __call__
       with self.get_camera_context(self.camera_id) as frames:
     File "webcam2.py", line 89, in __enter__
    size=(640, 480))
     File "/Users/q433100/temp/brew-master/lib/python3.6/site-packages/imageio/core/functions.py", line 129, in get_reader
    return format.get_reader(request)
     File "/Users/q433100/temp/brew-master/lib/python3.6/site-packages/imageio/core/format.py", line 169, in get_reader
       return self.Reader(self, request)
     File "/Users/q433100/temp/brew-master/lib/python3.6/site-packages/imageio/core/format.py", line 218, in __init__
       self._open(**self.request.kwargs.copy())
     File "/Users/q433100/temp/brew-master/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 327, in _open
       self._load_infos()
     File "/Users/q433100/temp/brew-master/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 476, in _load_infos
       (self.request._video, ffmpeg_err))
    IndexError: No video4linux camera at <video1>.

    FFMPEG STDERR OUTPUT:

    ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
     configuration: --prefix=/Users/q433100/temp/brew-master/Cellar/ffmpeg/3.4.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libavresample   3.  7.  0 /  3.  7.  0
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    [avfoundation @ 0x7fbb9e000a00] Selected framerate (29.970030) is not supported by the device
    [avfoundation @ 0x7fbb9e000a00] Supported modes:
    [avfoundation @ 0x7fbb9e000a00]   160x120@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   176x144@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   320x240@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   352x288@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   640x360@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   640x480@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   800x600@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   1024x576@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   960x720@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   1280x720@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   1392x768@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   1280x960@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   1600x896@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   1920x1080@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   160x120@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   176x144@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   320x240@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   352x288@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   640x360@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   640x480@[30.000030 30.000030]fps
    [avfoundation @ 0x7fbb9e000a00]   800x600@[20.000000 20.000000]fps
    [avfoundation @ 0x7fbb9e000a00]   1024x576@[8.000000 8.000000]fps
    [avfoundation @ 0x7fbb9e000a00]   960x720@[15.000015 15.000015]fps
    1: Input/output error
    </video1></module>

    Update :
    If I try to force one of the mentioned supported frame rates with ffmped, I get a new error

    $ffmpeg -f avfoundation -r 30.000030 -i "1" out.mpg
    ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
     configuration: --prefix=/Users/q433100/temp/brew-master/Cellar/ffmpeg/3.4.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libavresample   3.  7.  0 /  3.  7.  0
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    [avfoundation @ 0x7fb3c8802600] An error occurred: The activeVideoMinFrameDuration passed is not supported by the device.  Use -activeFormat.videoSupportedFrameRateRanges to discover valid ranges.1: Input/output error

    Update 2 :
    Setting the input frame rate to 15 directly in ffmpeg works. Now I just need to figure out how to do this in python with pygame.camera

    $ ffmpeg -f avfoundation -r 15.000015 -i "1" out.avi
  • Multiple extra-cflags of a makefile

    24 octobre 2020, par lulliezy

    so there is this library am trying to use ffmpeg.js and am customizing the Makefile. I have done everything that I wanted to do but on building, I got the error ERROR: opus not found using pkg-config. Now I have two problems :

    &#xA;

    --extra-cflags="-s USE_ZLIB=1 -I../lame/dist/include -I../libvpx/dist/include" this configuration was initially --extra-cflags="-s USE_ZLIB=1 -I../lame/dist/include" but I wanted to include two folders, so is the merging correct or that's where I went wrong.

    &#xA;

    The complete Makefile is as below (there are alot of changes from the original one from the repository), is there anything I did wrong ?

    &#xA;

    PRE_JS = build/pre.js&#xA;POST_JS_SYNC = build/post-sync.js&#xA;&#xA;COMMON_FILTERS = aresample scale crop overlay hstack vstack&#xA;COMMON_DEMUXERS = matroska ogg mov mp3 wav image2 concat&#xA;COMMON_DECODERS = vp8 vp9 h264 vorbis opus mp3 aac pcm_s16le mjpeg png&#xA;&#xA;COMMON_BSFS = vp9_superframe&#xA;&#xA;MUXERS = mp4 mp3 webm ogg null&#xA;ENCODERS = libx264 libmp3lame aac libvpx_vp8 libopus&#xA;FFMPEG_BC = build/ffmpeg/ffmpeg.bc&#xA;FFMPEG_PC_PATH = ../x264/dist/lib/pkgconfig&#xA;SHARED_DEPS = \&#xA;    build/lame/dist/lib/libmp3lame.so \&#xA;    build/x264/dist/lib/libx264.so \&#xA;    build/opus/dist/lib/libopus.so \&#xA;    build/libvpx/dist/lib/libvpx.so&#xA;&#xA;all: ffmpeg.js&#xA;&#xA;clean: clean-js \&#xA;    clean-opus clean-libvpx clean-lame \&#xA;    clean-x264 clean-ffmpeg&#xA;clean-js:&#xA;    rm -f ffmpeg*.js&#xA;clean-opus:&#xA;    cd build/opus &amp;&amp; git clean -xdf&#xA;clean-libvpx:&#xA;    cd build/libvpx &amp;&amp; git clean -xdf&#xA;clean-lame:&#xA;    cd build/lame &amp;&amp; git clean -xdf&#xA;clean-x264:&#xA;    cd build/x264 &amp;&amp; git clean -xdf&#xA;clean-ffmpeg:&#xA;    cd build/ffmpeg-mp4 &amp;&amp; git clean -xdf&#xA;&#xA;build/opus/configure:&#xA;    cd build/opus &amp;&amp; ./autogen.sh&#xA;&#xA;build/opus/dist/lib/libopus.so: build/opus/configure&#xA;    cd build/opus &amp;&amp; \&#xA;    emconfigure ./configure \&#xA;        CFLAGS=-O3 \&#xA;        --prefix="$$(pwd)/dist" \&#xA;        --disable-static \&#xA;        --disable-doc \&#xA;        --disable-extra-programs \&#xA;        --disable-asm \&#xA;        --disable-rtcd \&#xA;        --disable-intrinsics \&#xA;        --disable-hardening \&#xA;        --disable-stack-protector \&#xA;        &amp;&amp; \&#xA;    emmake make -j &amp;&amp; \&#xA;    emmake make install&#xA;&#xA;build/libvpx/dist/lib/libvpx.so:&#xA;    cd build/libvpx &amp;&amp; \&#xA;    git reset --hard &amp;&amp; \&#xA;    patch -p1 &lt; ../libvpx-fix-ld.patch &amp;&amp; \&#xA;    emconfigure ./configure \&#xA;        --prefix="$$(pwd)/dist" \&#xA;        --target=generic-gnu \&#xA;        --disable-dependency-tracking \&#xA;        --disable-multithread \&#xA;        --disable-runtime-cpu-detect \&#xA;        --enable-shared \&#xA;        --disable-static \&#xA;        \&#xA;        --disable-examples \&#xA;        --disable-docs \&#xA;        --disable-unit-tests \&#xA;        --disable-webm-io \&#xA;        --disable-libyuv \&#xA;        --disable-vp8-decoder \&#xA;        --disable-vp9 \&#xA;        &amp;&amp; \&#xA;    emmake make -j &amp;&amp; \&#xA;    emmake make install&#xA;&#xA;build/lame/dist/lib/libmp3lame.so:&#xA;    cd build/lame/lame &amp;&amp; \&#xA;    git reset --hard &amp;&amp; \&#xA;    patch -p2 &lt; ../../lame-fix-ld.patch &amp;&amp; \&#xA;    emconfigure ./configure \&#xA;        CFLAGS="-DNDEBUG -O3" \&#xA;        --prefix="$$(pwd)/../dist" \&#xA;        --host=x86-none-linux \&#xA;        --disable-static \&#xA;        \&#xA;        --disable-gtktest \&#xA;        --disable-analyzer-hooks \&#xA;        --disable-decoder \&#xA;        --disable-frontend \&#xA;        &amp;&amp; \&#xA;    emmake make -j &amp;&amp; \&#xA;    emmake make install&#xA;&#xA;build/x264/dist/lib/libx264.so:&#xA;    cd build/x264 &amp;&amp; \&#xA;    emconfigure ./configure \&#xA;        --prefix="$$(pwd)/dist" \&#xA;        --extra-cflags="-Wno-unknown-warning-option" \&#xA;        --host=x86-none-linux \&#xA;        --disable-cli \&#xA;        --enable-shared \&#xA;        --disable-opencl \&#xA;        --disable-thread \&#xA;        --disable-interlaced \&#xA;        --bit-depth=8 \&#xA;        --chroma-format=420 \&#xA;        --disable-asm \&#xA;        \&#xA;        --disable-avs \&#xA;        --disable-swscale \&#xA;        --disable-lavf \&#xA;        --disable-ffms \&#xA;        --disable-gpac \&#xA;        --disable-lsmash \&#xA;        &amp;&amp; \&#xA;    emmake make -j &amp;&amp; \&#xA;    emmake make install&#xA;&#xA;FFMPEG_COMMON_ARGS = \&#xA;    --cc=emcc \&#xA;    --ranlib=emranlib \&#xA;    --enable-cross-compile \&#xA;    --target-os=none \&#xA;    --arch=x86 \&#xA;    --disable-runtime-cpudetect \&#xA;    --disable-asm \&#xA;    --disable-fast-unaligned \&#xA;    --disable-pthreads \&#xA;    --disable-w32threads \&#xA;    --disable-os2threads \&#xA;    --disable-debug \&#xA;    --disable-stripping \&#xA;    --disable-safe-bitstream-reader \&#xA;    \&#xA;    --disable-all \&#xA;    --enable-ffmpeg \&#xA;    --enable-avcodec \&#xA;    --enable-avformat \&#xA;    --enable-avfilter \&#xA;    --enable-swresample \&#xA;    --enable-swscale \&#xA;    --disable-network \&#xA;    --disable-d3d11va \&#xA;    --disable-dxva2 \&#xA;    --disable-vaapi \&#xA;    --disable-vdpau \&#xA;    $(addprefix --enable-bsf=,$(COMMON_BSFS)) \&#xA;    $(addprefix --enable-decoder=,$(COMMON_DECODERS)) \&#xA;    $(addprefix --enable-demuxer=,$(COMMON_DEMUXERS)) \&#xA;    --enable-protocol=file \&#xA;    $(addprefix --enable-filter=,$(COMMON_FILTERS)) \&#xA;    --disable-bzlib \&#xA;    --disable-iconv \&#xA;    --disable-libxcb \&#xA;    --disable-lzma \&#xA;    --disable-sdl2 \&#xA;    --disable-securetransport \&#xA;    --disable-xlib \&#xA;    --enable-zlib&#xA;&#xA;build/ffmpeg/ffmpeg.bc: $(SHARED_DEPS)&#xA;    cd build/ffmpeg-mp4 &amp;&amp; \&#xA;    EM_PKG_CONFIG_PATH=$(FFMPEG_PC_PATH) emconfigure ./configure \&#xA;        $(FFMPEG_COMMON_ARGS) \&#xA;        $(addprefix --enable-encoder=,$(ENCODERS)) \&#xA;        $(addprefix --enable-muxer=,$(MUXERS)) \&#xA;        --enable-gpl \&#xA;        --enable-libmp3lame \&#xA;        --enable-libx264 \&#xA;        --enable-libopus \&#xA;        --enable-libvpx \&#xA;        --extra-cflags="-s USE_ZLIB=1 -I../lame/dist/include -I../libvpx/dist/include" \&#xA;        --extra-ldflags="-L../lame/dist/lib -L../libvpx/dist/lib" \&#xA;        &amp;&amp; \&#xA;    emmake make -j &amp;&amp; \&#xA;    cp ffmpeg ffmpeg.bc&#xA;&#xA;EMCC_COMMON_ARGS = \&#xA;    -O3 \&#xA;    --closure 1 \&#xA;    --memory-init-file 0 \&#xA;    -s WASM=0 \&#xA;    -s WASM_ASYNC_COMPILATION=0 \&#xA;    -s ASSERTIONS=0 \&#xA;    -s EXIT_RUNTIME=1 \&#xA;    -s NODEJS_CATCH_EXIT=0 \&#xA;    -s NODEJS_CATCH_REJECTION=0 \&#xA;    -s TOTAL_MEMORY=67108864 \&#xA;    -lnodefs.js -lworkerfs.js \&#xA;    --pre-js $(PRE_JS) \&#xA;    -o $@&#xA;&#xA;ffmpeg.js: $(FFMPEG_BC) $(PRE_JS) $(POST_JS_SYNC)&#xA;    emcc $(FFMPEG_BC) $(SHARED_DEPS) \&#xA;        --post-js $(POST_JS_SYNC) \&#xA;        $(EMCC_COMMON_ARGS) -O2&#xA;

    &#xA;

    What I was trying to achieve was combine some of the webm encoders and muxers into the mp4 module so I use only that one module for all webm and mp4 format types.

    &#xA;

    Also one thing to know about me, the whole Makefile and C and building it is totally new territory for me, I just did what I thought was right, thanks in advance.

    &#xA;