Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (45)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

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

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

  • How to insert infinite audio into the live streaming by using ffmpeg ?

    20 juillet 2017, par Xiang Wang

    I use the following command to insert infinite audio into rtsp stream, but -stream_loop -1 didn’t work. How to fix it ?

    ffmpeg -i rtsp://admin:12345@192.168.31.104/h264/ch1/main/av_stream  -stream_loop -1 -i blank.aac  -vcodec libx264 -acodec aac -f flv rtmp://localhost/live/test

    This is the full console when I executed the following command :

    ffmpeg -i "rtsp://admin:admin@192.168.31.140:554/cam/realmonitor?channel=1&subtype=0" -f lavfi -i anullsrc -vcodec libx264 -acodec aac -f flv rtmp://live.lamp.mowainfo.com:11935/live/test

    mowa@OpenWRT-Dev:~$ ffmpeg -i "rtsp://admin:admin@192.168.31.140:554/cam/realmonitor?channel=1&subtype=0" -f lavfi -i anullsrc -vcodec libx264 -acodec aac -f flv rtmp://live.lamp.mowainfo.com:11935/live/test
    ffmpeg version N-86764-ga824685 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --enable-nonfree --enable-gpl --enable-libx264 --enable-zlib
     libavutil      55. 67.100 / 55. 67.100
     libavcodec     57.100.104 / 57.100.104
     libavformat    57. 75.100 / 57. 75.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 95.100 /  6. 95.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    Guessed Channel Layout for Input Stream #0.1 : mono
    Input #0, rtsp, from 'rtsp://admin:admin@192.168.31.140:554/cam/realmonitor?channel=1&subtype=0':
     Metadata:
       title           : RTSP Session/2.0
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1280x720, 25.08 tbr, 90k tbn, 180k tbc
       Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
    Input #1, lavfi, from 'anullsrc':
     Duration: N/A, start: 0.000000, bitrate: 705 kb/s
       Stream #1:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (pcm_u8 (native) -> aac (native))
    Press [q] to stop, [?] for help
    [rtsp @ 0x23d0520] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
    [libx264 @ 0x244d200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x244d200] profile High, level 3.1
    [libx264 @ 0x244d200] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, flv, to 'rtmp://live.lamp.mowainfo.com:11935/live/test':
     Metadata:
       title           : RTSP Session/2.0
       encoder         : Lavf57.75.100
       Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1280x720, q=-1--1, 25.08 fps, 1k tbn, 25.08 tbc
       Metadata:
         encoder         : Lavc57.100.104 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
       Metadata:
         encoder         : Lavc57.100.104 aac
    Past duration 0.642738 too large   13286kB time=00:03:50.22 bitrate= 472.8kbits/s dup=0 drop=4 speed=0.985x    
  • ffmpeg conversion x264 [error] : malloc of size 26200384 failed [closed]

    13 janvier 2021, par Anshul Singh

    I'm trying to use FFMPEG to transcode a video with very large frames but I'm getting the following error when trying to convert 4k video on my server.

    


    ffmpeg version N-55112-g7eb9cf593e-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
    configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg  libavutil      56. 61.100 / 56. 61.100\n  libavcodec     58.114.100 / 58.114.100
     libavformat    58. 64.100 / 58. 64.100
      libavdevice    58. 11.103 / 58. 11.103
       libavfilter     7. 91.100 /  7. 91.100
         libswscale      5.  8.100 
/  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
    libpostproc    55.  8.100 / 55.  8.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5d798c0] st: 0 edit list: 1 Missing key frame while searching for timestamp: 0
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5d798c0] st: 0 edit list 1 Cannot find an index entry before timestamp: 0.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://example.com':
      Metadata:
        major_brand     : mp42
        minor_version   : 0
        compatible_brands: mp42mp41
        creation_time   : 2015-07-28T16:09:40.000000Z
        Duration: 00:00:15.04, start: 0.000000, bitrate: 41976 kb/s
        Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), 
    yuv420p(tv, bt709), 3840x2160, 41762 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
    Metadata:
    creation_time   : 2015-07-28T16:09:40.000000Z
    handler_name    : ?Mainconcept Video Media Handler
    encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
    Metadata:
    creation_time   : 2015-07-28T16:09:40.000000Z
    handler_name    : #Mainconcept MP4 Sound Media Handler
    Stream mapping:
        Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
        Stream #0:1 -> #0:1 (aac (native) -> aac (native))
        Press [q] to stop, [?] for help
        [libx264 @ 0x5d92240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
        [libx264 @ 0x5d92240] profile Main, level 5.1, 4:2:0, 8-bit
        [libx264 @ 0x5d92240] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=750 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
        frame=    6 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    \rx264 [error]: malloc of size 26200384 failed
        Video encoding failed
        [libx264 @ 0x5d92240] final ratefactor: 40.36
        Conversion failed!


    


    My server has 1Gb of memory.

    


  • Turning images into videos with ffmpeg

    9 décembre 2014, par user3276588

    I asked this on another forum but never had any luck. I found the following command online that is supposed to create a video from images(duration of 5 seconds each) using FFmpeg.

    ffmpeg -f image2 -r 1/5 -i img%03d.png -vcodec libx264 out.mp4

    I have ran that and I have two images named img001.png and img002.png, however when I play out.mp4, it’s only a 5 second clip with img001.png being played. What’s really strange as well, is in my Windows Media Player, it thinks it’s 10 seconds long (2 images @ 10 seconds), but when the gauge gets half way through(5 seconds) the video, it ends.

    Any suggestions of what could be going on ?

    I also tried a bunch of other commands I found online but never had any luck. They would end up showing both images, but the first one would just flash for a fraction of a second, or some other ones would do the same thing would happen to the second image at the end of the video.

    I have it ImageMagick installed into XAMPP on my Windows Vista PC. I can provide my command line output from the command if needed.

    Edit : Added command line output

    C:\xampp\htdocs>ffmpeg -f image2 -r 1/5 -i img%03d.png -vcodec libx264 out.mp4
    ffmpeg version N-50911-g9efcfbe Copyright (c) 2000-2013 the FFmpeg developers
     built on Mar 13 2013 21:26:48 with gcc 4.7.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
    sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libo
    pencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
    bschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-lib
    twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enabl
    e-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      52. 19.100 / 52. 19.100
     libavcodec     55.  0.100 / 55.  0.100
     libavformat    55.  0.100 / 55.  0.100
     libavdevice    54.  4.100 / 54.  4.100
     libavfilter     3. 45.103 /  3. 45.103
     libswscale      2.  2.100 /  2.  2.100
     libswresample   0. 17.102 /  0. 17.102
     libpostproc    52.  2.100 / 52.  2.100
    Input #0, image2, from 'img%03d.png':
     Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgb24, 800x600 [SAR 1:1 DAR 4:3], 0.20 tbr, 0.20 tb
    n, 0.20 tbc
    [libx264 @ 0032cae0] using SAR=1/1
    [libx264 @ 0032cae0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
    [libx264 @ 0032cae0] profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-bit
    [libx264 @ 0032cae0] 264 - core 130 r2274 c832fe9 - H.264/MPEG-4 AVC codec - Cop
    yright 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 de
    block=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1
    me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chr
    oma_qp_offset=4 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 i
    nterlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
    b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecu
    t=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0
    qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'out.mp4':
     Metadata:
       encoder         : Lavf55.0.100
       Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 800x600 [SAR 1:1
    DAR 4:3], q=-1--1, 16384 tbn, 0.20 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (png -> libx264)
    Press [q] to stop, [?] for help
    frame=    2 fps=0.0 q=2621023.0 Lsize=      37kB time=00:00:10.00 bitrate=  30.0
    kbits/s
    video:36kB audio:0kB subtitle:0 global headers:0kB muxing overhead 2.142993%
    [libx264 @ 0032cae0] frame I:1     Avg QP:11.18  size: 17627
    [libx264 @ 0032cae0] frame P:1     Avg QP:11.45  size: 18415
    [libx264 @ 0032cae0] mb I  I16..4: 18.3% 69.5% 12.3%
    [libx264 @ 0032cae0] mb P  I16..4: 11.6% 60.1%  9.7%  P16..4:  8.9%  6.6%  2.2%
    0.0%  0.0%    skip: 0.8%
    [libx264 @ 0032cae0] 8x8 transform intra:71.4% inter:67.1%
    [libx264 @ 0032cae0] coded y,u,v intra: 57.0% 24.1% 22.3% inter: 42.6% 25.7% 16.
    4%
    [libx264 @ 0032cae0] i16 v,h,dc,p: 28% 50% 15%  8%
    [libx264 @ 0032cae0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 39% 28%  2%  2%  2%  3%
    3%  4%
    [libx264 @ 0032cae0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 53% 23%  1%  2%  2%  3%
    0%  2%
    [libx264 @ 0032cae0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0032cae0] kb/s:28.83

    C:\xampp\htdocs>