Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (72)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (2829)

  • Use opencv to encode into flv, playable by flash player

    13 février 2012, par Hemang Shah

    I've compiled ffmpeg with libx264 using configure options given at 1.

    This results in the following codecs being available in ffmpeg :

    $ ffmpeg -codecs | grep "264\|flv"
    ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
    built on Feb 10 2012 13:54:15 with gcc 4.6.1
    configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
    libavutil      51. 34.101 / 51. 34.101
    libavcodec     53. 60.100 / 53. 60.100
    libavformat    53. 31.100 / 53. 31.100
    libavdevice    53.  4.100 / 53.  4.100
    libavfilter     2. 60.100 /  2. 60.100
    libswscale      2.  1.100 /  2.  1.100
    libswresample   0.  6.100 /  0.  6.100
    libpostproc    52.  0.100 / 52.  0.100
    DEVSD  flv             Flash Video (FLV) / Sorenson Spark / Sorenson H.263
    D V D  h264            H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    D V D  h264_vdpau      H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
    EV    libx264         libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    EV    libx264rgb      libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB

    After this, I compiled opencv. Here is partial cmake result :

    --   Video I/O:
    --     DC1394 1.x:                 NO
    --     DC1394 2.x:                 NO
    --     FFMPEG:                     YES
    --       codec:                    YES
    --       format:                   YES
    --       util:                     YES
    --       swscale:                  YES
    --       gentoo-style:             YES
    --     GStreamer:                  YES
    --     UniCap:                     NO
    --     PvAPI:                      NO
    --     V4L/V4L2:                   /1
    --     Xine:                       NO

    Now, using opencv's VideoWriter, I tried to encode into flv with the following FOURCC codes :
    FLV1, X264

    While the FLV1 results in a video file not playable by flash player, but playabe by vlc ; X264 produces no results at all.
    Here is the console output for X264, resulting in a 0 byte file.

    Output #0, flv, to 'd.flv' :
    Stream #0.0 : Video : [0][0][0][0] / 0x0000, yuv420p, 320x240, q=2-31, 4915 kb/s, 90k tbn, 24 tbc

    Do you see anything amiss or incorrect ?
    thanks,

  • ffmpeg mp3 streaming via node js

    21 août 2016, par school boy
    var fs = require('fs');
    var child = require('child_process');
    var http=require('http')
    var input_file = fs.createReadStream('./remo.mp3');
    http.createServer(function (req,res) {
    var args = ['-ss',120,
    '-i', 'remo.mp3',
    '-f','mp3',
    'pipe:1' // Output on stdout
    ];
    var trans_proc = child.spawn('ffmpeg', args);
    res.writeHead(200, {
         'Content-Type': 'audio/mpeg'
     });

    trans_proc.stdout.pipe(res)
    trans_proc.stderr.on('data',function (err) {
    console.log(err.toString());
    })
    }).listen(2000)

    i am trying to cut the mp3 and streaming to the browser but in browser it showing corrupted file

  • ffmpeg : Combine/merge multiple mp4 videos - not working

    9 juin 2016, par dtbaker

    Here is the command I am using to combine multiple videos :

    ffmpeg -i 75_540_38HQ2.mp4 -i 76_70_20.mp4 -i 76_173_80.mp4 -i 81_186_35.mp4 -vcodec copy -acodec copy Mux1.mp4

    The resulting Mux1.mp4 does not contain all videos. Only the first video (75_540_38HQ2.mp4). The file size of the source and resulting video is below (as you can see, resulting video is slightly larger than first vid) :

    $ ls -lh
    
    - rw-r—r— 1 dbaker dbaker 42M 2011-03-24 11:59 75_540_38HQ2.mp4
    - rw-r—r— 1 dbaker dbaker 236M 2011-03-24 12:09 76_173_80.mp4
    - rw-r—r— 1 dbaker dbaker 26M 2011-03-24 12:05 76_70_20.mp4
    - rw-r—r— 1 dbaker dbaker 54M 2011-03-24 12:15 81_186_35.mp4
    - rw-r—r— 1 dbaker dbaker 44M 2011-03-24 14:48 Mux1.mp4

    Here is the output of the ffmpeg command. To me it looks ok, showing the multiple source inputs and the single output.

    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
      built on Mar 21 2011 18:05:32 with gcc 4.4.5
      configuration : —enable-gpl —enable-version3 —enable-nonfree —enable-postproc —enable-libfaac —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libtheora —enable-libvorbis —enable-libvpx —enable-libx264 —enable-libxvid —enable-x11grab
      libavutil     50.36. 0 / 50.36. 0
      libavcore      0.16. 1 /  0.16. 1
      libavcodec    52.108. 0 / 52.108. 0
      libavformat   52.93. 0 / 52.93. 0
      libavdevice   52. 2. 3 / 52. 2. 3
      libavfilter    1.74. 0 /  1.74. 0
      libswscale     0.12. 0 /  0.12. 0
      libpostproc   51. 2. 0 / 51. 2. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’75_540_38HQ2.mp4’ :
      Metadata :
        major_brand : isom
        minor_version : 512
        compatible_brands : isomiso2avc1mp41
        creation_time : 1970-01-01 00:00:00
        encoder : Lavf52.93.0
      Duration : 00:00:29.99, start : 0.000000, bitrate : 11517 kb/s
        Stream #0.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 11575 kb/s, 29.94 fps, 29.97 tbr, 30k tbn, 59.94 tbc
        Metadata :
          creation_time : 1970-01-01 00:00:00
        Stream #0.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 127 kb/s
        Metadata :
          creation_time : 1970-01-01 00:00:00
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from ’76_70_20.mp4’ :
      Metadata :
        major_brand : isom
        minor_version : 512
        compatible_brands : isomiso2avc1mp41
        creation_time : 1970-01-01 00:00:00
        encoder : Lavf52.93.0
      Duration : 00:00:19.98, start : 0.000000, bitrate : 10901 kb/s
        Stream #1.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 10804 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
        Metadata :
          creation_time : 1970-01-01 00:00:00
        Stream #1.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
        Metadata :
          creation_time : 1970-01-01 00:00:00
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from ’76_173_80.mp4’ :
      Metadata :
        major_brand : isom
        minor_version : 512
        compatible_brands : isomiso2avc1mp41
        creation_time : 1970-01-01 00:00:00
        encoder : Lavf52.93.0
      Duration : 00:03:09.99, start : 0.000000, bitrate : 10393 kb/s
        Stream #2.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 10321 kb/s, 29.96 fps, 29.97 tbr, 30k tbn, 59.94 tbc
        Metadata :
          creation_time : 1970-01-01 00:00:00
        Stream #2.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
        Metadata :
          creation_time : 1970-01-01 00:00:00
    

    Seems stream 0 codec frame rate differs from container frame rate : 119.88 (120000/1001) -> 30000.00 (30000/1)
    Input #3, mov,mp4,m4a,3gp,3g2,mj2, from ’81_186_35.mp4’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : isomiso2avc1mp41
    creation_time : 1970-01-01 00:00:00
    encoder : Lavf52.93.0
    Duration : 00:00:35.00, start : 0.000000, bitrate : 12700 kb/s
    Stream #3.0(eng) : Video : h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 12620 kb/s, 59.91 fps, 30k tbr, 60k tbn, 119.88 tbc
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Stream #3.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Output #0, mp4, to ’Mux1.mp4’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : isomiso2avc1mp41
    creation_time : 1970-01-01 00:00:00
    encoder : Lavf52.93.0
    Stream #0.0(eng) : Video : libx264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], q=2-31, 11575 kb/s, 30k tbn, 29.97 tbc
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Stream #0.1(eng) : Audio : libfaac, 48000 Hz, stereo, 128 kb/s
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Stream mapping :
    Stream #0.0 -> #0.0
    Stream #2.1 -> #0.1
    Press [q] to stop encoding
    frame= 883 fps=632 q=-1.0 Lsize= 44730kB time=29.40 bitrate=12465.1kbits/s
    video:41678kB audio:2969kB global headers:0kB muxing overhead 0.184548%

    Am I doing something blindingly stupid here ?

    The source videos came from a video camera, and are small snippets taken with ffmpeg -i bigfile.mp4 -ss 20 -t 10 -vcodec copy etc..

    Thanks heaps !!
    Dave


    Edit : couldn’t solve it so I just use avidemux GUI tool. It seemed to append the MP4’s just fine.

    Must be a problem with MP4’s or just the ones that come off a gopro camera.