Recherche avancée

Médias (91)

Autres articles (54)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

  • ffmpeg audio conversion : encoder pcm_u8 working pcm_s8 not

    1er août 2016, par patszn

    I need to convert audio inside video to 8 Bit signed PCM. I try it like this :

    C:\Users\E\Desktop\ffmpeg-20160731-04da20e-win32-static\bin>ffmpeg -i minions.mp4 -vcodec mjpeg -s 800x480 -acodec pcm_s8 -ac 1 out.avi

    output :

    ffmpeg version N-81192-g04da20e 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-lib
    ebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfree
    type --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib
    openjpeg --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. 28.100 / 55. 28.100
     libavcodec     57. 51.100 / 57. 51.100
     libavformat    57. 44.100 / 57. 44.100
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 49.100 /  6. 49.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'minions.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2016-03-17 10:06:57
     Duration: 00:03:18.72, start: 0.000000, bitrate: 1869 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1675 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default
    )
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)
       Metadata:
         creation_time   : 2016-03-17 10:06:58
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    [swscaler @ 04821880] deprecated pixel format used, make sure you did set range correctly
    [avi @ 048c0460] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
       Last message repeated 1 times
    Output #0, avi, to 'out.avi':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       encoder         : Lavf57.44.100
       Stream #0:0(und): Video: mjpeg (MJPG / 0x47504A4D), yuvj420p(pc), 800x480 [SAR 16:15 DAR 16:9], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc57.51.100 mjpeg
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
       Stream #0:1(und): Audio: pcm_s8, 44100 Hz, mono, u8, 352 kb/s (default)
       Metadata:
         creation_time   : 2016-03-17 10:06:58
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
         encoder         : Lavc57.51.100 pcm_s8
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
     Stream #0:1 -> #0:1 (aac (native) -> pcm_s8 (native))
    Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted

    ffmpeg can not write a header for output file. I want to mention that if audio encoder is selected to pcm_u8 everything works fine.

    C:\Users\E\Desktop\ffmpeg-20160731-04da20e-win32-static\bin>ffmpeg -i minions.mp4 -vcodec mjpeg -s 800x480 -acodec pcm_u8 -ac 1 out.avi

    output :

    ffmpeg version N-81192-g04da20e 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-lib
    ebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfree
    type --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-lib
    openjpeg --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. 28.100 / 55. 28.100
     libavcodec     57. 51.100 / 57. 51.100
     libavformat    57. 44.100 / 57. 44.100
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 49.100 /  6. 49.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'minions.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2016-03-17 10:06:57
     Duration: 00:03:18.72, start: 0.000000, bitrate: 1869 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1675 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default
    )
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)
       Metadata:
         creation_time   : 2016-03-17 10:06:58
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    File 'out.avi' already exists. Overwrite ? [y/N] y
    [swscaler @ 030a1880] deprecated pixel format used, make sure you did set range correctly
    [avi @ 04a10460] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
       Last message repeated 1 times
    Output #0, avi, to 'out.avi':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       ISFT            : Lavf57.44.100
       Stream #0:0(und): Video: mjpeg (MJPG / 0x47504A4D), yuvj420p(pc), 800x480 [SAR 16:15 DAR 16:9], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc57.51.100 mjpeg
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
       Stream #0:1(und): Audio: pcm_u8 ([1][0][0][0] / 0x0001), 44100 Hz, mono, u8, 352 kb/s (default)
       Metadata:
         creation_time   : 2016-03-17 10:06:58
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
         encoder         : Lavc57.51.100 pcm_u8
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
     Stream #0:1 -> #0:1 (aac (native) -> pcm_u8 (native))
    Press [q] to stop, [?] for help
    frame= 4764 fps=250 q=24.8 Lsize=   74247kB time=00:03:18.71 bitrate=3060.8kbits/s speed=10.4x
    video:65364kB audio:8558kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.438745%

    What is the problem ? Why conversion does not work for signed pcm ?

    Encoders for both unsigned and signed pcm are avaible :

    C:\Users\E\Desktop\ffmpeg-20160731-04da20e-win32-static\bin>ffmpeg -encoders

    .
    .
    A..... pcm_f32be            PCM 32-bit floating point big-endian
    A..... pcm_f32le            PCM 32-bit floating point little-endian
    A..... pcm_f64be            PCM 64-bit floating point big-endian
    A..... pcm_f64le            PCM 64-bit floating point little-endian
    A..... pcm_mulaw            PCM mu-law / G.711 mu-law
    A..... pcm_s16be            PCM signed 16-bit big-endian
    A..... pcm_s16be_planar     PCM signed 16-bit big-endian planar
    A..... pcm_s16le            PCM signed 16-bit little-endian
    A..... pcm_s16le_planar     PCM signed 16-bit little-endian planar
    A..... pcm_s24be            PCM signed 24-bit big-endian
    A..... pcm_s24daud          PCM D-Cinema audio signed 24-bit
    A..... pcm_s24le            PCM signed 24-bit little-endian
    A..... pcm_s24le_planar     PCM signed 24-bit little-endian planar
    A..... pcm_s32be            PCM signed 32-bit big-endian
    A..... pcm_s32le            PCM signed 32-bit little-endian
    A..... pcm_s32le_planar     PCM signed 32-bit little-endian planar
    A..... pcm_s8               PCM signed 8-bit
    A..... pcm_s8_planar        PCM signed 8-bit planar
    A..... pcm_u16be            PCM unsigned 16-bit big-endian
    A..... pcm_u16le            PCM unsigned 16-bit little-endian
    A..... pcm_u24be            PCM unsigned 24-bit big-endian
    A..... pcm_u24le            PCM unsigned 24-bit little-endian
    A..... pcm_u32be            PCM unsigned 32-bit big-endian
    A..... pcm_u32le            PCM unsigned 32-bit little-endian
    A..... pcm_u8               PCM unsigned 8-bit
    .
    .
  • FFMPEG Convert from mov, mjpeg codec error

    30 août 2011, par vitel

    I've a problem when i try to convert a .mov to a .webm with ffmpeg... I've no problems from any others video format.

    I've enable the Quicktime formats "—enable-zlib" and with the "ffmpeg -formats" command i get .mov files as encode or decode.

    When i try to transform a video i get this :

     # ffmpeg -i /var/www/static/uploads/usersVideos/cavity0.mov -vcodec mjpeg  /var/www/static/uploads/usersVideos/cavity.webm
    ffmpeg version N-32159-gc70e852, Copyright (c) 2000-2011 the FFmpeg developers
    built on Aug 30 2011 14:16:07 with gcc 4.4.5
    configuration: --enable-gpl --enable-libmp3lame --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx
      libavutil    51. 14. 0 / 51. 14. 0
      libavcodec   53. 12. 0 / 53. 12. 0
      libavformat  53. 10. 0 / 53. 10. 0
      libavdevice  53.  3. 0 / 53.  3. 0
      libavfilter   2. 37. 0 /  2. 37. 0
      libswscale    2.  0. 0 /  2.  0. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x13b7320] stream 0, error opening alias:     path='/matlab_sv13/work/cavity_flow/up500.jpg', dir='cavity_flow', filename='up500.jpg', volume='NONAME', nlvl_from=1, nlvl_to=1**
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x13b7320] Could not find codec parameters (Video: mjpeg (jpeg / 0x6765706A), 434x343, 4762 kb/s)
    /var/www/static/uploads/usersVideos/cavity0.mov: could not find codec parameters
    [1]    8265 exit 1     ffmpeg -i /var/www/static/uploads/usersVideos/cavity0.mov -vcodec mjpeg

    Someone has an idea ?

  • ffmpeg conversion skips audio

    10 mars 2012, par user504879

    While converting a video to mp4 format using ffmpeg the audio gets skipped because of which the audio goes out of sync with the Video.

    One can have a look at the following Video :
    https://vialogues.com/vialogues/play/486

    I am using the following options for conversion

    /usr/local/bin/ffmpeg -y -i $inputfile -acodec libfaac -ar 44100 -ab 96k -vcodec libx264 -level 41 -bufsize 20000k -maxrate 25000k -g 250 -r 20 -s 480x270 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -flags2 +dct8x8+bpyramid -me_method umh -subq 7 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -rc_eq 'blurCplx^(1-qComp)' -bf 16 -b_strategy 1 -bidir_refine 1 -refs 6 -crf 25 -deblockalpha 0 -vpre medium -deblockbeta 0 $outputfile

    Also the ffmpeg version is

    ffmpeg
    FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
     built on Feb 19 2011 19:03:56 with gcc 4.4.5
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
     libavutil     50.15. 1 / 50.15. 1
     libavcodec    52.72. 2 / 52.72. 2
     libavformat   52.64. 2 / 52.64. 2
     libavdevice   52. 2. 0 / 52. 2. 0
     libswscale     0.11. 0 /  0.11. 0
     libpostproc   51. 2. 0 / 51. 2. 0
    Hyper fast Audio and Video encoder

    Any ideas as to why this would be happening ?