Recherche avancée

Médias (91)

Autres articles (16)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (4752)

  • Retranslating video stream using ffmpeg

    6 mai 2014, par zdimon77

    I want to redirect video stream from rtmp to hls format using nginx rtmp-module.

    This my nginx config

       server {
       exec_options on;
       listen 1936;
       chunk_size 4000;


       application myapp {
        live on;
        exec /usr/bin/avconv -loglevel verbose -re -i rtmp://localhost:1936/myapp/$name -vcodec libx264 -vprofile baseline -acodec libmp3lame -ar 44100 -ac 1 -f flv rtmp://localhost:1935/hls/$name;


    }


    }

    server {

      listen 1935;
       chunk_size 4000;

       application hls {
           live on;
           hls on;
           hls_path /tmp/hls;
       }



    }

    But it doesnt work.
    When I try to publish my stream in console (without exec command in nginx.conf)

    ffmpeg -loglevel debug -re -i rtmp://localhost:1936/myapp/test -vcodec libx264 -vprofile baseline -acodec libmp3lame -ar 44100 -ac 1 -f flv rtmp://localhost:1935/hls/test

    I see this in console

    root@dcv23 :/usr/share/nginx/html# avconv -i rtmp ://localhost:1935/myapp/testname -vcodec copy -an -f flv rtmp ://localhost:1936/hls/testname

    avconv version 0.8.10-6:0.8.10-1, Copyright (c) 2000-2013 the Libav developers

    built on Feb 5 2014 17:15:30 with gcc 4.7.2

    [flv @ 0x98a3800] invalid stream

    [flv @ 0x98a3800] Estimating duration from bitrate, this may be inaccurate

    Input #0, flv, from ’rtmp ://localhost:1935/myapp/testname’ :

    Duration : N/A, start : 448.536000, bitrate : N/A

    Stream #0.0: Audio: nellymoser, 8000 Hz, mono, s16

    Stream #0.1: Video: flv, yuv420p, 800x600, 1k tbr, 1k tbn

    Output #0, flv, to ’rtmp ://localhost:1936/hls/testname’ :

    Metadata :

    encoder         : Lavf53.21.1

    Stream #0.0: Video: flv, yuv420p, 800x600, q=2-31, 1k tbn, 1k tbc

    Stream mapping :

    Stream #0:1 -> #0:0 (copy)

    Press ctrl-c to stop encoding

    ^Cframe= 200 fps= 7 q=-1.0 Lsize= 1031kB time=35.44 bitrate= 238.2kbits/s

    And process going but m3u8 files dont create.
    Can someone help me please ?
    Thank you.

  • Force FFMPEG to use TCP protocol when reading a RTSP Stream

    7 juin 2016, par gary_star

    I’m running ffmpeg (Windows 7, 64bit) from command line to get a frame from a RTSP stream (second channel from my DVR) :

    ffmpeg  -i "rtsp://xxx.xxx.xxx.xxx:554/user=xxxx&password=xxxx&channel=2&stream=0.sdp" -rtsp_transport tcp -y video.jpg

    After running, it waits for about 10 seconds and then i get :

    [rtsp @ 026fd840] UDP timeout, retrying with TCP

    After another long wait (2 minutes or so), i get :

    [rtsp @ 028dd840] Could not find codec parameters for stream 0 (Video: h264): unspecified size

    I read somewhere that I have to force using TCP, because changing from UDP to TCP will not work.

    I don’t understand why -rtsp_transport tcp is not working.

    I’m using ffmpeg version N-62509-g97751e1 built on Apr 17 2014 22:01:31 with gcc 4.8.2 (GCC).

    Please help me.
    Thank you.

  • FFmpeg playing multiple videos concurrently - mute/unmute

    21 avril 2014, par pris

    I have 3 videos (video1/video2/video3). I would like to play them on different time intervals :

    • video1 plays from 0-15s (video1 with sound, video2/video3 mute)
    • video2 plays from 15-21s (video2 with sound, video1/video3 mute)
    • video1 plays from 22-30s (video1 with sound, video2/video3 mute)
    • video3 plays from 31-40s (video3 with sound, video1/video2 mute)

    I have tried the following but only video1 has sound :

    ffmpeg -i video1.mp4 -i video2.mp4 -i video3.mp4 -i video4.mp4 -filter_complex "[0:v][1:v] overlay=0:0:enable='between(t,10,20)' [tmp]; [tmp][2:v] overlay=0:0:enable='between(t,30,40)' [tmp1]; [tmp1][3:v] overlay=0:0:enable='between(t,50,60)'" final.mp4

    Console output :

       ffmpeg version N-62475-g256f530 Copyright (c) 2000-2014 the FFmpeg developers
     built on Apr 15 2014 22:09:47 with gcc 4.8.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
    --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-li
    bmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-l
    ibsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --en
    able-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      52. 76.100 / 52. 76.100
     libavcodec     55. 58.103 / 55. 58.103
     libavformat    55. 37.100 / 55. 37.100
     libavdevice    55. 13.100 / 55. 13.100
     libavfilter     4.  4.100 /  4.  4.100
     libswscale      2.  6.100 /  2.  6.100
     libswresample   0. 18.100 /  0. 18.100
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'master_video.mp4':
     Metadata:
       major_brand     : FACE
       minor_version   : 1337
       compatible_brands: isomavc1FACE
       creation_time   : 2013-03-30 15:06:28
     Duration: 00:01:57.82, start: 0.000000, bitrate: 248 kb/s
       Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 210 kb/s, 24.88 fps, 24.88 tbr, 24880 t
    bn, 49.76 tbc (default)
       Metadata:
         creation_time   : 2013-03-30 15:06:28
         handler_name    : /tmp/tmpvYmHiO/4698028013036._video.264 - Imported with GPAC 0.4.6-DEV-rev3544
       Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 36 kb/s (default)
       Metadata:
         creation_time   : 2013-03-30 15:06:28
         handler_name    : /tmp/tmpvYmHiO/4698028013036._audio.aac - Imported with GPAC 0.4.6-DEV-rev3544
    Output #0, flv, to 'final.flv':
     Metadata:
       major_brand     : FACE
       minor_version   : 1337
       compatible_brands: isomavc1FACE
       encoder         : Lavf55.37.100
       Stream #0:0(und): Video: flv1 (flv) ([2][0][0][0] / 0x0002), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 24.88 tbc (default)
       Metadata:
         creation_time   : 2013-03-30 15:06:28
         handler_name    : /tmp/tmpvYmHiO/4698028013036._video.264 - Imported with GPAC 0.4.6-DEV-rev3544
       Stream #0:1(und): Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 22050 Hz, mono, fltp (default)
       Metadata:
         creation_time   : 2013-03-30 15:06:28
         handler_name    : /tmp/tmpvYmHiO/4698028013036._audio.aac - Imported with GPAC 0.4.6-DEV-rev3544
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 -> flv)
     Stream #0:1 -> #0:1 (aac -> libmp3lame)
    Press [q] to stop, [?] for help
    frame= 2927 fps=331 q=10.1 Lsize=    3577kB time=00:01:57.83 bitrate= 248.7kbits/s dup=0 drop=4519
    video:3000kB audio:460kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.369707%

    Your help will be much appreciated.