Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (47)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (7547)

  • Strict Experimental Flag for Converting ts files to mp4 files in node using ffmpeg

    13 août 2015, par Recurrence

    I’m trying to convert a series of .ts files into one mp4 file in using ffmpeg via a node execute :

    var combineVideo = function (videoFiles, fileName, callback) {
    var videoDone = _.after(videoFiles.length, function () {
       var ffmpegcommand = 'ffmpeg -i "concat:';
       ffmpegcommand += _.inject(videoFiles, function (command, name, i) {
           return command + process.env.UPLOAD_PATH + fileName + '-' + i + '.ts|';
       }, '');

       ffmpegcommand = ffmpegcommand.substring(0, ffmpegcommand.length - 1);
       ffmpegcommand += '"  -c copy -bsf:a aac_adtstoasc -strict -2 ' +  process.env.UPLOAD_PATH + fileName + 'combined-video.mp4';

       exec(ffmpegcommand, function (error, stdout, stderr) {
           if (error) {
               logger.error(error);
           }
               _.each(videoFiles, function (v, i) {
               fs.unlink(process.env.UPLOAD_PATH + fileName + '-' + i + '.ts');
           });
           callback();
       });
    });
    _.each(videoFiles, function (file, i) {
       convertWebmToMp4(fileName + '-' + i, videoDone);
    });

    I’ve logged the command before executing it as such :

    combining video
    /usr/bin/ffmpeg -i "concat :./uploads/db42ab00-4140-11e5-83dd-936f6cb4a63a-0.ts|./uploads/db42ab00-4140-11e5-83dd-936f6cb4a63a-1.ts" -c copy -bsf:a aac_adtstoasc -strict -2 ./uploads/db42ab00-4140-11e5-83dd-936f6cb4a63acombined-video.mp4

    The error message I receive is :

    [Error : Command failed : ffmpeg version 2.5.7-0ubuntu0.15.04.1 Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)

    [aac @ 0x8ae8c0] The encoder ’aac’ is experimental but experimental codecs are not enabled, add ’-strict -2’ if you want to use it.
    ] killed : false, code : 1, signal : null

    However, the exact ffmpeg command already has the -strict -2 flags and it runs just fine either on the command line or via a separate .js file. I am very stumped.

  • FFmpeg compile opus error

    10 août 2015, par David Norgren

    I’m following this tutorial to build FFmpeg statically (to not need DLLs) using Microsoft’s compilers : http://cristobaldobranco.github.io/blog/2015/01/20/compiling-ffmpeg-with-windows-tools/

    I’m however running into trouble when attempting to compile this :

    #pragma comment (lib, "libavformat.a")
    #define __STDC_CONSTANT_MACROS

    extern "C" {
       #include <libavformat></libavformat>avformat.h>
    }

    int main() {
       av_register_all();
       return 0;
    }

    It seems to be able to find the header and library files, but I’m getting weird errors about opus :

    Opus error

    Here are my MSYS commands :

    cd C:/Libs/ffmpeg
    ./configure --toolchain=msvc --arch=x86 --prefix=build/ --disable-network
    make
    make install

    How do I get rid of these errors ?

  • getting a lot of errors when reading udp stream with avconv

    5 août 2015, par eladm26

    I’m trying to read a udp video stream and I’m getting mostly errors :)
    here is my input and output :

    avconv   -i udp://**.**.**.**:**** output.ts
    avconv version 11.4, Copyright (c) 2000-2014 the Libav developers
     built on Jul 14 2015 12:43:36 with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
    [mpeg2video @ 0x25a7060] Invalid frame dimensions 0x0.
       Last message repeated 13 times
    [mpegts @ 0x2582040] Estimating duration from bitrate, this may be inaccurate
    Input #0, mpegts, from 'udp://239.1.1.1:59001':
     Duration: N/A, start: 17336.030511, bitrate: 24640 kb/s
     Program 3
       Stream #0.0[0x31]: Video: mpeg2video (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 24000 kb/s, 29.97 fps, 90k tbn, 59.94 tbc
       Stream #0.1[0x34](eng): Audio: ac3, 48000 Hz, 5.1, fltp, 448 kb/s
       Stream #0.2[0x35](spa): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    File 'output.ts' already exists. Overwrite ? [y/N] y
    Output #0, mpegts, to 'output.ts':
     Metadata:
       encoder         : Lavf56.1.0
       Stream #0.0: Video: mpeg2video, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 90k tbn, 29.97 tbc
       Metadata:
         encoder         : Lavc56.1.0 mpeg2video
       Stream #0.1(eng): Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
       Metadata:
         encoder         : Lavc56.1.0 mp2
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
     Stream #0:1 -> #0:1 (ac3 (native) -> mp2 (native))
    Press ctrl-c to stop encoding
    [mpeg2video @ 0x25c85e0] warning: first frame is no keyframe
    Continuity check failed for pid 49 expected 12 got 5 bitrate=3922.8kbits/s
    [mpegts @ 0x2582040] Continuity check failed for pid 52 expected 6 got 1
    [mpegts @ 0x2582040] Continuity check failed for pid 53 expected 7 got 14
    [mpegts @ 0x2582040] Continuity check failed for pid 0 expected 4 got 1
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 2 53
    [mpeg2video @ 0x25c85e0] 00 motion_type at 19 38
    [mpeg2video @ 0x25c85e0] 00 motion_type at 18 54
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 1 39
    [mpeg2video @ 0x25c85e0] 00 motion_type at 48 55
    [mpeg2video @ 0x25c85e0] 00 motion_type at 2 56
    [mpeg2video @ 0x25c85e0] 00 motion_type at 17 40
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 5 60
    [mpeg2video @ 0x25c85e0] 00 motion_type at 1 61
    [mpeg2video @ 0x25c85e0] 00 motion_type at 16 41
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 15 46
    [mpeg2video @ 0x25c85e0] 00 motion_type at 6 62
    [mpeg2video @ 0x25c85e0] 00 motion_type at 24 42
    [mpeg2video @ 0x25c85e0] 00 motion_type at 16 47
    [mpeg2video @ 0x25c85e0] mb incr damaged
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 3 44
    [mpeg2video @ 0x25c85e0] 00 motion_type at 8 63
    [mpeg2video @ 0x25c85e0] 00 motion_type at 11 65
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 1 66
    [mpeg2video @ 0x25c85e0] invalid mb type in P Frame at 42 50
    [mpeg2video @ 0x25c85e0] 00 motion_type at 9 51
    [mpeg2video @ 0x25c85e0] ac-tex damaged at 45 67
    [mpeg2video @ 0x25c85e0] 00 motion_type at 48 52
    [mpeg2video @ 0x25c85e0] MVs not available, ER not possible.
    [mpegts @ 0x2582040] PES packet size mismatch
       Last message repeated 1 times
    [ac3 @ 0x25c8b00] exponent out-of-range
    [ac3 @ 0x25c8b00] error decoding the audio block
    [mpegts @ 0x2582040] Continuity check failed for pid 49 expected 13 got 5
    [mpegts @ 0x2582040] Continuity check failed for pid 52 expected 12 got 14
    [mpeg2video @ 0x25c85e0] 00 motion_type at 97 65
    [mpeg2video @ 0x25c85e0] 00 motion_type at 1 4
    [mpeg2video @ 0x25c85e0] invalid cbp at 18 5
    [mpeg2video @ 0x25c85e0] 00 motion_type at 1 6
    [mpeg2video @ 0x25c85e0] mb incr damaged
    [mpeg2video @ 0x25c85e0] 00 motion_type at 34 8
    [mpeg2video @ 0x25c85e0] 00 motion_type at 8 9
    [mpeg2video @ 0x25c85e0] 00 motion_type at 6 11
    [mpeg2video @ 0x25c85e0] invalid cbp at 5 18
    [mpeg2video @ 0x25c85e0] 00 motion_type at 13 19
    [mpeg2video @ 0x25c85e0] 00 motion_type at 3 20
    [mpeg2video @ 0x25c85e0] 00 motion_type at 16 21
    [mpeg2video @ 0x25c85e0] invalid cbp at 3 22
    [mpeg2video @ 0x25c85e0] invalid mb type in B Frame at 4 23
    [mpeg2video @ 0x25c85e0] invalid mb type in B Frame at 3 24

    I’ve searched stack overflow and couldn’t find any similar.
    maybe it has something to do with avconv cant handle the udp frames fast enough ?
    I lost any hope so any help is very welcomed.

    Thanks.