Recherche avancée

Médias (91)

Autres articles (111)

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

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (9450)

  • Streaming by ffserver and ffmpeg on RaspberryPi

    15 septembre 2018, par saitoib

    I want to ditribute the video of the UVC Camera on Rpsberry Pi
    I edited /etc/ffserver.conf as follows.

    HTTPPort 8090
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 20
    MaxClients 10
    MaxBandwidth 500000
    CustomLog -

    <feed>
    File /tmp/feed1.ffm
    FileMaxSize 50M
    </feed>

    <stream>
    Format status
    ACL allow 192.168.12.0 192.168.12.255
    </stream>

    <stream>
    Feed feed1.ffm
    Format mpeg
    VideoSize hd720
    VideoFrameRate 15
    VideoBitRate 4096
    VideoBufferSize 4096
    VideoQMin 5
    VideoQMax 51
    Strict -1
    </stream>

    Then, I started ffserver
    Next, I executed the following command

    ffmpeg -f v4l2 -s 1280x720 -i /dev/video0 -ac 1 -f alsa -i hw:1,0 http://localhost:8090/feed1.ffm

    I requested 192.168.12.101 : 8090 / test.mpeg from FireFox on the same network,
    but no video is displayed and a program to open or a file save dialog opens.

    What should I do ?

    Execution result of Raspberry Pi

    Input #0, video4linux2,v4l2, from '/dev/video0':
     Duration: N/A, start: 519134.790720, bitrate: 147456 kb/s
       Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720, 147456 kb/s, 10 fps, 10 tbr, 1000k tbn, 1000k tbc
    Guessed Channel Layout for Input Stream #1.0 : mono
    Input #1, alsa, from 'hw:1,0':
     Duration: N/A, start: 1536994777.250578, bitrate: 768 kb/s
       Stream #1:0: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    [tcp @ 0x23ec7f0] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
    Sat Sep 15 15:59:37 2018 [ffm @ 0xf10e40]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Sat Sep 15 15:59:37 2018 [ffm @ 0xf10e40]Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Sat Sep 15 15:59:37 2018 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175
    [tcp @ 0x2401d50] Connection to tcp://localhost:8090 failed (Connection refused), trying next address
    Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
     Metadata:
       creation_time   : now
       encoder         : Lavf57.56.101
       Stream #0:0: Audio: mp2, 22050 Hz, mono, s16, 64 kb/s
       Metadata:
         encoder         : Lavc57.64.101 mp2
       Stream #0:1: Video: mpeg1video, yuv420p, 1280x720, q=5-51, 4096 kb/s, 10 fps, 1000k tbn, 15 tbc
       Metadata:
         encoder         : Lavc57.64.101 mpeg1video
       Side data:
         cpb: bitrate max/min/avg: 8192000/0/4096000 buffer size: 33554432 vbv_delay: -1
    Stream mapping:
     Stream #1:0 -> #0:0 (pcm_s16le (native) -> mp2 (native))
     Stream #0:0 -> #0:1 (rawvideo (native) -> mpeg1video (native))
    Press [q] to stop, [?] for help
    [alsa @ 0x23ebee0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
    [alsa @ 0x23ebee0] ALSA buffer xrun. 48kB time=00:00:00.13 bitrate=2949.1kbits/s dup=3 drop=0 speed=0.251x
    [video4linux2,v4l2 @ 0x23ea230] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
    [alsa @ 0x23ebee0] ALSA buffer xrun.276kB time=00:00:02.40 bitrate= 942.1kbits/s dup=30 drop=0 speed=0.201x
    Sat Sep 15 15:59:55 2018 [mpeg @ 0xf136d0]VBV buffer size not set, using default size of 130KB speed=0.844x
    If you want the mpeg file to be compliant to some specification
    Like DVD, VCD or others, make sure you set the correct buffer size
    frame=  107 fps=3.1 q=2.0 Lsize=     856kB time=00:00:14.06 bitrate= 498.6kbits/s dup=80 drop=0 speed=0.413x
    video:844kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.120285%
    Sat Sep 15 16:00:11 2018 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 876544
    Sat Sep 15 16:00:11 2018 [mpeg @ 0xf136d0]buffer underflow st=0 bufi=0 size=418
    Sat Sep 15 16:00:11 2018 192.168.12.150 - - [GET] "/test.mpeg HTTP/1.1" 200 29263
    Exiting normally, received signal 2.

    Result of 192.168.12.101:8090

    ffserver Status
    Available Streams
    Path    Served
    Conns  
    bytes   Format  Bit rate
    kbit/s  Video
    kbit/s  
    Codec   Audio
    kbit/s  
    Codec   Feed
    index.html  1   0   -   -   -       -  
    test.mpeg   0   0   mpeg    4160    4096    mpeg1video  64  mp2     feed1.ffm
    Feed feed1.ffm
    Stream  type    kbit/s  codec   Parameters
    0   audio   64  mp2 1 channel(s), 22050 Hz
    1   video   4096    mpeg1video  1280x720, q=5-51, fps=15
    Connection Status
    Number of connections: 1 / 10
    Bandwidth in use: 0k / 10000k
    #   File    IP  Proto   State   Target bit/s    Actual bit/s    Bytes transferred
    1   index.html  192.168.12.150  HTTP/1.1    HTTP_WAIT_REQUEST   0   0   0
  • Best way to convert .ts file to mp4 or bufferedimage[] java

    23 septembre 2018, par thekevshow

    I have an m3u8 file returning .ts file polls for streaming. Regardless, how would I convert that to an array of buffered images or something else that can be easily scraped for a buffered image. Mainly just looking for direction, as I am struggling to understand each piece there. Anything is appreciated.

    example response part :

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:6
    #EXT-X-MEDIA-SEQUENCE:8476
    #EXT-X-TWITCH-ELAPSED-SECS:16952.000
    #EXT-X-TWITCH-TOTAL-SECS:16982.000
    #EXT-X-PROGRAM-DATE-TIME:2018-09-22T21:59:22.573Z
    #EXTINF:2.000,live
    https://video-edge-ee69bc.ord02.abs.hls.ttvnw.net/v1/segment/Cv0Dcq5qJJUV0vtPIfTrLkwrLNydN4aB6QHSSXBHxxu-ZAQyXxHtCEID2_qD-xtVV-oFG0dhKAajsbFQ0VUQpfIkPDHCJ1oh7O33nOZ4MRPcwGiOWtrv-9ukFghyg3Nc6GLBpWD3rcP-ujXBjxL3rpVP27UnfSpuBVPE-uNoXS3UxQ7sFUbI8z-t3TWLMs2GXaeos6y9L8Tw_MmMCchRGF7AM-V_mR6PpnY0JsRyBUGiLtCSYUwusYBJjBZpCEw2EP_ykmE8_xW-UQ18qvv0TwVdXPCREFPG8NL4JcytaUCkVs1bEjHlY7blYCWAJvfuc2WOpEXXRETrtkaODOFNRhMC5JCsjP2yWlSoa6K9OsvQdfP4k7pusPp7vDoCJMBfmcQ4SGYk_EVnuFS6t-HCZpfXy-JE1X1NWywUXtsn2LHktTzKa-5evHOJQSE1aMxmPW0tkgrenrlnsZ2fnYsHB-UZCbr6Yavq95qFquozTnA8Z8uC-HH-o1LSOOSnqM9FzfbiRjRmf7JlPBraK1Z7Utyvc9iHzOyL7oOPPPidCZZ9FYsuKChI1zskSeY8A41gnJloqeswHYJI5nVA6fMM6I43nKkfzL5N6gf5sesIItQPTViHQmnKg_0d236Tbu6KNTDxDPGeTfTNVoEPEJWefOEigqS6ARKLsUvXovYs8GUSEBagR4hWTKU2aUccV1Sv4NMaDOz9CsDqNksa3LUngw.ts
    #EXT-X-PROGRAM-DATE-TIME:2018-09-22T21:59:24.573Z
    #EXTINF:2.000,live
    https://video-edge-ee69bc.ord02.abs.hls.ttvnw.net/v1/segment/Cv0DLRareU5ZtP0V72x2DgOd59NIigzBiGka2v5iOOjI-zQwN5d5IZsdoEgbLIiaNsQE84BqdweS_4EBPT7GIJYkCZTv01KhDSai6pfbLRM0uN5_iLjoghDLvLJbdIPMK-K71uAwtxWV2mQAALw6epwlNpLh-46PmdEZLN7-21gHzmWjut-TvBHUlv6Hm_0U2VrKrvp6im9kjT1hacY-ay76z7nRrooA-Z_JIfJWjwcQ-tlteN2ULYFbkEhw_1koD9GsW4CzGHjIu-7PGR3dQHGufYDt6Q8NO8ggoVHHAT-gaflMLy5fDrfbZrU1Ngac2ZO2axc6hruMINWf8enpNIw2ZEPR1sMEo15Cwy3hbJa4BaH99_soYbNFTpzYyTXNyKU7N7lnKH12zWjzP5AOGcrJqT4nNJkdgt-kLYrlWryQNCpSGdqb6ByCVtZkrt05nk9Kad9--9wKbGEEQxp8M3XYiOYxxE6wtlV8Xk8D-azAPbi_aQ4fELFYjwR3-3TZKVk8N5RE4sKwnZkv7PbZGk1qBhgIOUen1ukm5GVuCMlRlsz5iPa9RYXd5twCILNDHCtOo1B9neqy3rG20rh0pWaKJW2k5954njzgz4gsRWKi0K9Q1784AvmE8VYrZkK7BhuyumFylcsyayCcluVLf-CSjbANM1bKYy7mib_ZPnQSEHeaaJvKjQj44oDQA0n4zHsaDNgACUNsYYtS7RwRcA.ts
    #EXT-X-PROGRAM-DATE-TIME:2018-09-22T21:59:26.573Z
    #EXTINF:2.000,live
  • FFMpeg command to convert from avi to mp4 in php script

    16 septembre 2018, par user27240

    ffmpeg command to convert from avi file to mp4 file below does create mp4 file, but the quality of it is not all right at all. Fist, the sizes of the files are different, the mp4 is much smaller and about 1/10 of the avi file.
    Second, the playing time of the newly created mp4 is short lasting about 0.1 seconds where the avi file lasts about 60 seconds.

    Can anyone please help me out for the ffmpeg command to create mp4 file from avi under the directory like below ?

    for i in /xxxxxxx/xxxxxxx/*.avi; do
       ffmpeg -i "$i" -frames:v 1  "/xxxxxxx/xxxxxxx/$(basename "$i" .avi).mp4"
    done    

    Log after the attempt :

    [root@server-xxxxxxx-x ~]# for i in /xxxxxx/xxxxxxx/xxxxxxx/*.avi; do ffmpeg -i "$i" -pix_fmt yuv420p -movflags +faststart "/xxxxxx/xxxxxxx/xxxxxxx/$(basename "$i" .avi).mp4"; done
    ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
     configuration:
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
    Guessed Channel Layout for Input Stream #0.1 : mono
    Input #0, avi, from '/xxxxxx/xxxxxxx/xxxxxxx/09141944_5b9b910308858.avi':
     Metadata:
       creation_time   : 2018-09-14 00:18:07
       encoder         : CanonMVI06
      Duration: 00:00:04.20, start: 0.000000, bitrate: 12999 kb/s
       Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc,    bt470bg/unknown/unknown), 640x480, 12384 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
        Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
    File '/xxxxxx/xxxxxxx/xxxxxxx/09141944_5b9b910308858.mp4' already exists.    Overwrite ? [y/N]

                                                                                                                             y
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
     Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
     Press [q] to stop, [?] for help
     [swscaler @ 0x3d75fa0] deprecated pixel format used, make sure you did set   range correctly
    Output #0, mp4, to '/xxxxxx/xxxxxxx/xxxxxxx/09141944_5b9b910308858.mp4':
     Metadata:
       encoder         : Lavf57.83.100
       Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 640x480, q=2-31, 200 kb/s, 30 fps, 65521 tbn, 30 tbc
       Metadata:
         encoder         : Lavc57.107.100 mpeg4
        Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
        Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s
        Metadata:
          encoder         : Lavc57.107.100 aac
     [mp4 @ 0x3d0e6e0] Starting second pass: moving the moov atom to the  beginning of the file17x
     frame=  126 fps=0.0 q=11.8 Lsize=     310kB time=00:00:04.20 bitrate= 603.3kbits/s speed=6.21x
     video:270kB audio:35kB subtitle:0kB other streams:0kB global headers:0kB  muxing overhead: 1.605194%
     [aac @ 0x3d36f40] Qavg: 2283.534
     ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
      built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
      configuration:
      libavutil      55. 78.100 / 55. 78.100
      libavcodec     57.107.100 / 57.107.100
      libavformat    57. 83.100 / 57. 83.100
      libavdevice    57. 10.100 / 57. 10.100
      libavfilter     6.107.100 /  6.107.100
      libswscale      4.  8.100 /  4.  8.100
      libswresample   2.  9.100 /  2.  9.100
      Guessed Channel Layout for Input Stream #0.1 : mono
      Input #0, avi, from '/xxxxxx/xxxxxxx/xxxxxxx/09141945_5b9b913e87834.avi':
       Metadata:
        creation_time   : 2018-09-14 00:18:07
        encoder         : CanonMVI06
       Duration: 00:00:04.20, start: 0.000000, bitrate: 12999 kb/s
       Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc,      bt470bg/unknown/unknown), 640x480, 12384 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
       Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono,    s16, 705 kb/s