Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (80)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (9293)

  • lavc : prefer the mp3float decoder to the mp3 decoder

    1er avril 2018, par Rostislav Pehlivanov
    lavc : prefer the mp3float decoder to the mp3 decoder
    

    On modern x86 systems its around 2x faster. For systems without
    FPUs it'll be slower, but our policy is to prefer floating point
    implementations and to let users decide what's best (or just not
    compile them on systems without FPUs).

    Signed-off-by : Rostislav Pehlivanov <atomnuker@gmail.com>

    • [DH] libavcodec/allcodecs.c
    • [DH] tests/fate/gapless.mak
    • [DH] tests/ref/fate/exif-image-embedded
  • How to join webcam FLVs

    18 mars 2015, par Marc-André Lafortune

    I want my website to join some webcam recordings in FLV files (like this one). This needs to be done on Linux without user input. How do I do this ? For simplicity’s sake, I’ll use the same flv as both inputs in hope of getting a flv that plays the same thing twice in a row.

    That should be easy enough, right ? There’s even a full code example in the ffmpeg FAQ.

    Well, pipes seem to be giving me problems (both on my mac running Leopard and on Ubuntu 8.04) so let’s keep it simple and use normal files. Also, if I don’t specify a rate of 15 fps, the visual part plays extremely fast. The example script thus becomes :

    ffmpeg -i input.flv -vn -f u16le -acodec pcm_s16le -ac 2 -ar 44100 \
     - > temp.a &lt; /dev/null
    ffmpeg -i input.flv -an -f yuv4mpegpipe - > temp.v &lt; /dev/null
    cat temp.v temp.v > all.v
    cat temp.a temp.a > all.a
    ffmpeg -f u16le -acodec pcm_s16le -ac 2 -ar 44100 -i all.a \
     -f yuv4mpegpipe -i all.v -sameq -y output.flv

    Well, using this will work for the audio, but I only get the video the first time around. This seems to be the case for any flv I throw as input.flv, including the movie teasers that come with red5.

    a) Why doesn’t the example script work as advertised, in particular why do I not get all the video I’m expecting ?

    b) Why do I have to specify a framerate while Wimpy player can play the flv at the right speed ?

    The only way I found to join two flvs was to use mencoder. Problem is, mencoder doesn’t seem to join flvs :

    mencoder input.flv input.flv -o output.flv -of lavf -oac copy \
    -ovc lavc -lavcopts vcodec=flv

    I get a Floating point exception...

    MEncoder 1.0rc2-4.0.1 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Xeon(R) CPU 5150 @ 2.66GHz (Family: 6, Model: 15, Stepping: 6)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

    success: format: 0 data: 0x0 - 0x45b2f
    libavformat file format detected.
    [flv @ 0x697160]Unsupported audio codec (6)
    [flv @ 0x697160]Could not find codec parameters (Audio: 0x0006, 22050 Hz, mono)
    [lavf] Video stream found, -vid 0
    [lavf] Audio stream found, -aid 1
    VIDEO: [FLV1] 240x180 0bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:44 fourcc:0x31564C46 size:240x180 fps:1000.00 ftime:=0.0010
    ** MUXER_LAVF *****************************************************************
    REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
    INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
    will play these INCORRECT files as if nothing were wrong!
    *******************************************************************************
    OK, exit
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffflv] vfm: ffmpeg (FFmpeg Flash video)
    ==========================================================================
    audiocodec: framecopy (format=6 chans=1 rate=22050 bits=16 B/s=0 sample-0)
    VDec: vo config request - 240 x 180 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is undefined - no prescaling applied.
    videocodec: libavcodec (240x180 fourcc=31564c46 [FLV1])
    VIDEO CODEC ID: 22
    AUDIO CODEC ID: 10007, TAG: 0
    Writing header...
    [NULL @ 0x67d110]codec not compatible with flv
    Floating point exception

    c) Is there a way for mencoder to decode and encode flvs correctly ?

    So the only way I’ve found so far to join flvs, is to use ffmpeg to go back and forth between flv and avi, and use mencoder to join the avis :

    ffmpeg -i input.flv -vcodec rawvideo -acodec pcm_s16le -r 15 file.avi
    mencoder -o output.avi -oac copy -ovc copy -noskip file.avi file.avi
    ffmpeg -i output.avi output.flv

    d) There must be a better way to achieve this... Which one ?

    e) Because of the problem of the framerate, though, only flvs with constant framerate (like the one I recorded through facebook) will be converted correctly to avis, but this won’t work for the flvs I seem to be recording (like this one or this one). Is there a way to do this for these flvs too ?

    Any help would be very appreciated.

  • ffmpeg audio conversion : encoder pcm_u8 working pcm_s8 not

    14 novembre 2018, 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
    .
    .