Recherche avancée

Médias (91)

Autres articles (38)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

  • Is it possible to force ffmpeg to use hardware decoding with H.264 input stream ?

    27 août 2018, par Ryan Griggs

    I am running a raspberry pi 3B with ffmpeg compiled with the —enable-omx-rpi option. I am trying to do frame-capture from a webcam stream (h.264, 1920x1080) to JPG files at 5 frames per second. This operation currently causes the board to show very high CPU utilization and get very hot. For this reason, I am assuming hardware decoder is not being utilized.

    Is there a way to 1) determine whether ffmpeg is using hardware decoding, and 2) force it to be enabled ?

    EDIT : here’s the log :

    ffmpeg -probesize 4096 -analyzeduration 10000 -threads 1 -i rtsp://192.168.1.88:554/11 -vf fps=fps=5 -y test%03d.png
    ffmpeg version 3.2.10-1~deb9u1+rpt1 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516
     configuration: --prefix=/usr --extra-version='1~deb9u1+rpt1' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     libavutil      55. 34.101 / 55. 34.101
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.101 / 57. 56.101
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libavresample   3.  1.  0 /  3.  1.  0
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    [rtsp @ 0x1d9b630] Stream #0: not enough frames to estimate rate; consider increasing probesize
    [rtsp @ 0x1d9b630] decoding for stream 0 failed
    Guessed Channel Layout for Input Stream #0.1 : mono
    Input #0, rtsp, from 'rtsp://192.168.1.88:554/11':
     Metadata:
       title           : 10
     Duration: N/A, bitrate: 64 kb/s
       Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 90k tbr, 90k tbn, 180k tbc
       Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
    [swscaler @ 0x1e50a80] No accelerated colorspace conversion found from yuv420p to rgb24.
    Output #0, image2, to 'test%03d.png':
     Metadata:
       title           : 10
       encoder         : Lavf57.56.101
       Stream #0:0: Video: png, rgb24, 1920x1080, q=2-31, 200 kb/s, 5 fps, 5 tbn, 5 tbc
       Metadata:
         encoder         : Lavc57.64.101 png
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> png (native))
    Press [q] to stop, [?] for help
    [rtsp @ 0x1d9b630] max delay reached. need to consume packetN/A speed=   0x
    [rtsp @ 0x1d9b630] RTP: missed 13 packets
    [h264 @ 0x1dfb650] error while decoding MB 24 3, bytestream -5
    [h264 @ 0x1dfb650] concealing 7825 DC, 7825 AC, 7825 MV errors in P frame
    [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 88 packets
    [h264 @ 0x1dfb650] error while decoding MB 38 41, bytestream -11
    [h264 @ 0x1dfb650] concealing 3251 DC, 3251 AC, 3251 MV errors in P frame
    frame=    4 fps=2.2 q=-0.0 size=N/A time=00:00:00.20 bitrate=N/A speed=0.111x   [h264 @ 0x1dfb650] Increasing reorder buffer to 1
    frame=    4 fps=0.8 q=-0.0 size=N/A time=00:00:00.20 bitrate=N/A speed=0.0413x  [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 30 packets
    [h264 @ 0x1dfb650] error while decoding MB 37 5, bytestream -9
    [h264 @ 0x1dfb650] concealing 7572 DC, 7572 AC, 7572 MV errors in P frame
    frame=    5 fps=0.9 q=-0.0 size=N/A time=00:00:00.40 bitrate=N/A speed=0.069x   [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 34 packets
    [h264 @ 0x1dfb650] error while decoding MB 98 4, bytestream -9
    [h264 @ 0x1dfb650] concealing 7631 DC, 7631 AC, 7631 MV errors in P frame
    frame=    6 fps=0.9 q=-0.0 size=N/A time=00:00:00.60 bitrate=N/A speed=0.0894x  [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 30 packets
    [h264 @ 0x1dfb650] error while decoding MB 20 10, bytestream -9
    [h264 @ 0x1dfb650] concealing 6989 DC, 6989 AC, 6989 MV errors in P frame
    frame=    6 fps=0.8 q=-0.0 size=N/A time=00:00:00.60 bitrate=N/A speed=0.0808x  [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 3357 packets
    [rtsp @ 0x1d9b630] RTP: PT=60: bad cseq 0fed expected=02d0
    [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 3358 packets
    [h264 @ 0x1dfb650] concealing 3400 DC, 3400 AC, 3400 MV errors in P frame
    frame=    8 fps=1.0 q=-0.0 size=N/A time=00:00:01.00 bitrate=N/A speed=0.124x   [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 5 packets
    [h264 @ 0x1dfb650] error while decoding MB 33 42, bytestream -5
    [h264 @ 0x1dfb650] concealing 3136 DC, 3136 AC, 3136 MV errors in P frame
    frame=    8 fps=0.9 q=-0.0 size=N/A time=00:00:01.00 bitrate=N/A speed=0.117x   frame=   41 fps=0.9 q=-0.0 size=N/A time=00:00:07.40 bitrate=N/A speed=0.156x   [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 6 packets
    [h264 @ 0x1dfb650] error while decoding MB 72 17, bytestream -5
    [h264 @ 0x1dfb650] concealing 6097 DC, 6097 AC, 6097 MV errors in P frame
    frame=   42 fps=0.9 q=-0.0 size=N/A time=00:00:07.60 bitrate=N/A speed=0.155x   frame=   44 fps=0.9 q=-0.0 size=N/A time=00:00:08.00 bitrate=N/A speed=0.162x   [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 19325 packets
    [rtsp @ 0x1d9b630] RTP: PT=60: bad cseq 5c13 expected=1096
    [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 19326 packets
    [h264 @ 0x1dfb650] cabac decode of qscale diff failed at 5 15
    [h264 @ 0x1dfb650] error while decoding MB 5 15, bytestream 14471
    [h264 @ 0x1dfb650] concealing 6404 DC, 6404 AC, 6404 MV errors in P frame
    [rtsp @ 0x1d9b630] max delay reached. need to consume packet
    [rtsp @ 0x1d9b630] RTP: missed 32 packets
    [h264 @ 0x1dfb650] error while decoding MB 40 13, bytestream -11
    [h264 @ 0x1dfb650] concealing 6609 DC, 6609 AC, 6609 MV errors in P frame
    frame=   44 fps=0.9 q=-0.0 size=N/A time=00:00:08.00 bitrate=N/A speed=0.159x  

    Here’s the output of ffmpeg -decoders | grep -i h264 :

    ffmpeg -decoders | grep -i h264
    ffmpeg version 3.2.10-1~deb9u1+rpt1 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1) 20170516
     configuration: --prefix=/usr --extra-version='1~deb9u1+rpt1' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     libavutil      55. 34.101 / 55. 34.101
     libavcodec     57. 64.101 / 57. 64.101
     libavformat    57. 56.101 / 57. 56.101
     libavdevice    57.  1.100 / 57.  1.100
     libavfilter     6. 65.100 /  6. 65.100
     libavresample   3.  1.  0 /  3.  1.  0
     libswscale      4.  2.100 /  4.  2.100
     libswresample   2.  3.100 /  2.  3.100
     libpostproc    54.  1.100 / 54.  1.100
    VFS..D h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    V..... h264_mmal            h264 (mmal) (codec h264)
    V....D h264_vdpau           H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration) (codec h264)
  • Malloc Check Failed when opening video stream

    23 août 2013, par donturner

    I'm writing a BlackBerry 10 application which decodes an H264 video stream (from a Parrot AR Drone) using ffmpeg and libx264. These libraries have both been compiled for BlackBerry QNX.

    Here's my code :

    av_register_all();
    avcodec_register_all();
    avformat_network_init();

    printf("AV setup complete\n");

    const char* drone_addr = "http://192.168.1.1:5555";
    AVFormatContext* pFormatCtx = NULL;
    AVInputFormat* pInputFormat = av_find_input_format("H264");

    printf("Opening video feed from drone\n");

    //THIS LINE FAILS
    int result = avformat_open_input(&pFormatCtx, drone_addr, pInputFormat, NULL);

    The last line fails with the error :

    Malloc Check Failed: :../../dlist.c:1168

    How can I fix this error or debug it further ?

    Update : The error only occurs when I supply pInputFormat to avformat_open_input. If I supply NULL I don't get an error. But for my app I must supply this parameter since it is not possible for ffmpeg to determine the video format from the feed alone.

  • Malloc Check Failed when opening video stream

    23 août 2013, par donturner

    I'm writing a BlackBerry 10 application which decodes an H264 video stream (from a Parrot AR Drone) using ffmpeg and libx264. These libraries have both been compiled for BlackBerry QNX.

    Here's my code :

    av_register_all();
    avcodec_register_all();
    avformat_network_init();

    printf("AV setup complete\n");

    const char* drone_addr = "http://192.168.1.1:5555";
    AVFormatContext* pFormatCtx = NULL;
    AVInputFormat* pInputFormat = av_find_input_format("H264");

    printf("Opening video feed from drone\n");

    //THIS LINE FAILS
    int result = avformat_open_input(&pFormatCtx, drone_addr, pInputFormat, NULL);

    The last line fails with the error :

    Malloc Check Failed: :../../dlist.c:1168

    How can I fix this error or debug it further ?

    Update : The error only occurs when I supply pInputFormat to avformat_open_input. If I supply NULL I don't get an error. But for my app I must supply this parameter since it is not possible for ffmpeg to determine the video format from the feed alone.