Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (73)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (13391)

  • avformat/avformat.h : Correct some comments

    9 août 2019, par Andreas Rheinhardt
    avformat/avformat.h : Correct some comments
    

    1. When set_parameters was removed from AVOutputFormat in 2fb75019, it
    was forgotten to remove the comment pertaining to it. Said comment now
    appeared to apply to interleave_packet() ; it is of course nonsense and
    has been replaced by an accurate description.
    2. The description of av_write_uncoded_frame() suggested
    av_interleaved_write_frame() as a replacement if the input is not
    already correctly interleaved ; it also referred to said function for
    details. Given that said function can't write AVFrames and that the
    specifics of writing uncoded frames are explained in the description
    of av_interleaved_write_uncoded_frame(), both references have been fixed.
    3. Removed an outdated comment about avformat_seek_file().

    Reviewed-by : Marton Balint <cus@passwd.hu>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/avformat.h
  • NodeJS - piping multiple FFMPEG processes

    8 février 2017, par Alaska

    I am trying to programm an converter which can take any video source and convert it to mp3. The mp3 should be saved on my hard drive, or in an buffer to send it via telegram.

    It works good so far, the only problem I am facing is that it can only take one video at a time, and I don’t know why.

    // IMPORTS
    var fs = require('fs');
    var https = require('https');
    var child_process = require('child_process');

    // EVENTEMITER (Not used so far)
    var util = require('util');
    var EventEmitter = require('events').EventEmitter;


    // STREAMHANDLER
    var StreamHandler = function(url, name){

       // VARIABLES
       self = this;
       this.url = url;
       this.name = name;

       // CREATE FFMPEG PROCESS
       var spawn = child_process.spawn;
       var args = ['-i', 'pipe:0', '-f', 'mp3', '-ac', '2', '-ab', '128k', '-acodec', 'libmp3lame', 'pipe:1'];
       this.ffmpeg = spawn('ffmpeg', args);

       // GRAB STREAM
       https.get(url, function(res) {
           res.pipe(self.ffmpeg.stdin);
       });

       // WRITE TO FILE
       this.ffmpeg.stdout.pipe(fs.createWriteStream(name));

       //DEBUG
       this.ffmpeg.stdout.on("data", function (data) {
          console.error(self.name);
       });
    }

    util.inherits(StreamHandler, EventEmitter);


    // TESTING
    var test1 = new StreamHandler(vidUrl, "test1.mp3");
    test1.ffmpeg.on("exit", function (code, name, signal) {
       console.log("Finished: " + test1.name);
    });

    var test2 = new StreamHandler(vidUrl, "test2.mp3");
    test2.ffmpeg.on("exit", function (code, name, signal) {
       console.log("Finished: " + test2.name);
    });

    It skips test1.mp3 and only converts test2.mp3, but 2 ffmpeg processes were created :
    enter image description here

    After test2.mp3 is converted the other ffmpeg thread stays open, but does nothing, and the node program gets stuck waiting (i guess so) for it to send something.

    I hope someone can help me :)

  • ffmpeg errors in the daemon

    3 octobre 2020, par smoto_shei

    I created a shell script to compress a video using ffmpeg(4.3.1).

    &#xA;

    ffmpeg -y -i \&#xA; &#x27;/var/www/System/Backend/Outputs/TempSaveMovie/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27; \&#xA; -vcodec h264 -an \&#xA; &#x27;/var/www/System/Backend/Outputs/MovieOutputs/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27;&#xA;&#xA;

    &#xA;

    If you run this code from the console, it will run without problems.&#xA;In fact, we're using the python subscript.call() to execute it. It works fine too.

    &#xA;

    cmd = &#x27;sh /var/www/System/Backend/cv2toffmpeg.sh&#x27;&#xA;subprocess.call(cmd, shell=True)&#xA;

    &#xA;

    Secondly, if I run it from a daemonized python program, I'll get an error. I get the following error.&#xA;You'll get an error like this

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;./Outputs/TempSaveMovie/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2mp41&#xA;    encoder         : Lavf58.35.100&#xA;  Duration: 00:00:06.15, start: 0.000000, bitrate: 10246 kb/s&#xA;    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 10244 kb/s, 13 fps, 13 tbr, 13312 tbn, 13 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (h264_nvenc))&#xA;Press [q] to stop, [?] for help&#xA;[mpeg4 @ 0x55cec17c5480] header damaged&#xA;[mpeg4 @ 0x55cec17c6840] header damaged&#xA;[mpeg4 @ 0x55cec1855f80] header damaged&#xA;[mpeg4 @ 0x55cec1866e00] header damaged&#xA;Output #0, mp4, to &#x27;./Outputs/MovieOutputs/200703_4_short_5fr_p2(100_20)_r(50_20).mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2mp41&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0(und): Video: h264 (h264_nvenc) (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 13 fps, 13312 tbn, 13 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : VideoHandler&#xA;      encoder         : Lavc58.91.100 h264_nvenc&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: N/A&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mpeg4 @ 0x55cec17c8780] header damaged&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mpeg4 @ 0x55cec17c5480] header damaged&#xA;

    &#xA;

    I think the problem is when you run it from a daemonized process. There seems to be a similar problem in the past.&#xA;Ffmpeg does not properly convert videos when run as daemon&#xA;I would like to ask for your help to solve this problem. Thank you for your help from Japan.

    &#xA;