Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (24)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (3781)

  • Encoder (codec png) not found for output stream #0:0 [duplicate]

    7 juin 2016, par Anubhav Dhawan

    This question already has an answer here :

    I’m trying to create a NodeJS app that converts a video into a GIF image.

    I’m using node-gify plugin for this purpose, which uses FFmpeg and GraphicsMagick.

    Here’s my sample code :

    var gify = require('./');
    var http = require('http');
    var fs = require('fs');

    var opts = {
     height: 300,
     rate: 10
    };

    console.time('convert');
    gify('out.mp4', 'out.gif', opts, function(err) {
     if (err) throw err;
     console.timeEnd('convert');
     var s = fs.statSync('out.gif');
     console.log('size: %smb', s.size / 1024 / 1024 | 0);
    });

    And here’s my console error :

    > gify@0.2.0 start /home/daffodil/repos/node-gify-master
    > node example.js

    /home/daffodil/repos/node-gify-master/example.js:24
     if (err) throw err;
              ^

    Error: Command failed: /bin/sh -c ffmpeg -i out.mp4 -filter:v scale=-1:300 -r 10 /tmp/IP5OXJZELd/%04d.png
    ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --disable-yasm
     libavutil      55. 17.103 / 55. 17.103
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 1
       compatible_brands: mp42mp41
       creation_time   : 2005-02-25 02:35:57
     Duration: 00:01:10.00, start: 0.000000, bitrate: 106 kb/s
       Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 8000 Hz, stereo, fltp, 19 kb/s (default)
       Metadata:
         creation_time   : 2005-02-25 02:35:57
         handler_name    : Apple Sound Media Handler
       Stream #0:1(eng): Video: mpeg4 (Advanced Simple Profile) (mp4v / 0x7634706D), yuv420p, 192x242 [SAR 1:1 DAR 96:121], 76 kb/s, 15 fps, 15 tbr, 600 tbn, 1k tbc (default)
       Metadata:
         creation_time   : 2005-02-25 02:35:57
         handler_name    : Apple Video Media Handler
       Stream #0:2(eng): Data: none (rtp  / 0x20707472), 4 kb/s (default)
       Metadata:
         creation_time   : 2005-02-25 02:35:57
         handler_name    : hint media handler
       Stream #0:3(eng): Data: none (rtp  / 0x20707472), 3 kb/s (default)
       Metadata:
         creation_time   : 2005-02-25 02:35:57
         handler_name    : hint media handler
    Output #0, image2, to '/tmp/IP5OXJZELd/%04d.png':
     Metadata:
       major_brand     : mp42
       minor_version   : 1
       compatible_brands: mp42mp41
       Stream #0:0(eng): Video: png, none, q=2-31, 128 kb/s (default)
       Metadata:
         creation_time   : 2005-02-25 02:35:57
         handler_name    : Apple Video Media Handler
    Stream mapping:
     Stream #0:1 -> #0:0 (mpeg4 (native) -> ? (?))
    Encoder (codec png) not found for output stream #0:0

       at ChildProcess.exithandler (child_process.js:213:12)
       at emitTwo (events.js:100:13)
       at ChildProcess.emit (events.js:185:7)
       at maybeClose (internal/child_process.js:827:16)
       at Socket.<anonymous> (internal/child_process.js:319:11)
       at emitOne (events.js:90:13)
       at Socket.emit (events.js:182:7)
       at Pipe._onclose (net.js:471:12)
    </anonymous>

    PS : I had a couple of problems installing FFmpeg on my Ubuntu 14.04.

    • First, FFmpeg is removed from Ubuntu 14.04 (legal issues AFAIK). But I managed to apt-get it through this.
    • Second, when I tried to ./configure (as mentioned in its README.md), I got this error - yasm/nasm not found or too old. Use --disable-yasm for a crippled build.. So I used ./configure --disable-yasm instead, and it (somehow) worked.

    Update #1

    After read this log a couple of times, I managed to produce a sample GIF from my mp4 file, by changing the command, which example.js tries to run :

    From

    ffmpeg -i out.mp4 -filter:v scale=-1:300 -r 10 /tmp/Lz43nx6wv1/%04d.png

    To

    ffmpeg -i out.mp4 -filter:v scale=-1:300 -r 10 out.gif

    But it’s still using command line, I need to do this by code.

    So I dived into the code and found that this wrong url is coming from the plugin’s index.js :

    ...

    // tmpfile(s)
     var id = uid(10);
     var dir = path.resolve('/tmp/' + id);
     var tmp  = path.join(dir, '/%04d.png');

    ...

    Is this an issue with the plugin, or am I doing something wrong here ?
    In any case, please put the correct stub here, because I don’t want to touch this part unless I know what I’m doing ?

    Update #2

    Now I installed zlib1g-dev, and then reinstalled both FFmpeg and graphicsMagick, and now I see this error :

    gm convert: No decode delegate for this image format (/tmp/ZQbEAynAcf/0702.png).

    Thanks in advance :)

  • ffmpeg / mencoder converting a video with correct setting

    22 août 2016, par Rick T

    I have an avi video file that plays on my Onn-W7 player Link to avi video file that works and backup link to avi file that works. I’m trying to convert some other video files over so that they will also play on it. I’ve tried handbrake, ffmpeg and mencoder but the video fails to work most likely do to the fact I have some settings wrong in the conversion process but I don’t know which ones any ideas how to fix this

    Here’s the settings of the avi file that works below :

    General
    Complete name                            : /tmp/ONN.avi
    Format                                   : AVI
    Format/Info                              : Audio Video Interleave
    File size                                : 11.0 MiB
    Duration                                 : 3mn 1s
    Overall bit rate                         : 508 Kbps
    Writing application                      : MEncoder Sherpya-MinGW-20060312-4.1.0
    Writing library                          : MPlayer

    Video
    ID                                       : 0
    Format                                   : MPEG-4 Visual
    Format profile                           : Simple@L3
    Format settings, BVOP                    : No
    Format settings, QPel                    : No
    Format settings, GMC                     : No warppoints
    Format settings, Matrix                  : Default (H.263)
    Codec ID                                 : XVID
    Codec ID/Hint                            : XviD
    Duration                                 : 3mn 1s
    Bit rate                                 : 371 Kbps
    Width                                    : 160 pixels
    Height                                   : 128 pixels
    Display aspect ratio                     : 5:3
    Original display aspect ratio            : 5:4
    Frame rate                               : 15.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 1.207
    Stream size                              : 8.00 MiB (73%)
    Writing library                          : XviD 1.1.0 (UTC 2005-11-22)

    Audio
    ID                                       : 1
    Format                                   : MPEG Audio
    Format version                           : Version 1
    Format profile                           : Layer 2
    Codec ID                                 : 50
    Duration                                 : 3mn 1s
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Sampling rate                            : 44.1 KHz
    Compression mode                         : Lossy
    Stream size                              : 2.77 MiB (25%)
    Alignment                                : Split accross interleaves
    Interleave, duration                     : 26 ms (0.39 video frame)
    Interleave, preload duration             : 522 ms

    The ffmpeg command I tried is :

    ffmpeg -i "video_to_convert.mp4" -c:v libxvid -vf scale=160x128,setsar=1 -b:v 800k -r 15 -c:a libtwolame -ac 2 -ar 44100 -b:a 128k -y video_converted.avi
  • how to make ffmpeg output frames at correct rate down to millisecond

    9 février 2017, par Pavel K.

    using ffmpeg, i am fetching frames from udp stream (hd264 at 25 fps) using following command :

    ffmpeg -loglevel debug -i udp ://231.20.20.146:2005 -fflags nobuffer -r 1 -preset ultrafast -vf scale=432:243 -f image2pipe -vcodec ppm pipe:1

    at the other end of the pipe i am running a very simple binary which outputs the time at which it receives a frame.

    however, even though i specify fps 1, frames enter the pipe with some delay, with 100-200ms delay.

    what causes this delay ? is it the decoding of the frames and encoding of ppm image ? and how can i force ffmpeg to send images at least at the correct distance between each other, so that each frame would arrive exactly 1000ms after previous frame ?

    ps. the first 6 frames are buffered and enter the pipe almost at once. here is an example of recorded ms values :

    5350
    5368
    5385
    5493
    5599
    5676
    5785
    6221
    7243
    8235
    9218
    10219
    11227
    12268
    13268
    14242
    15288
    16219
    17297
    18222
    19284
    20272