Recherche avancée

Médias (0)

Mot : - Tags -/latitude

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

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (12492)

  • RecordRTC only recording stop after 1min

    2 novembre 2015, par Mick Jack

    I am using RecordRTC to record a webcam stream and using ffmpeg to convert the output into .mp4 recording of 1min video is fine and the browser merge both the audio and video into a single .mp4 however recording that is longer than 1min will encounter this error.

    error

    My Sample Code

    function setupNewBroadcastButtonClickHandler() {
               document.getElementById('broadcast-name').disabled = true;
               document.getElementById('setup-new-broadcast').disabled = true;
               //document.getElementById('save-video').disabled = true;
               captureUserMedia(function() {
                   var shared = 'video';
                   broadcastUI.createRoom({
                       roomName: (document.getElementById('broadcast-name') || {}).value || 'Anonymous',
                       isAudio: shared === 'audio'
                   });
               });
               hideUnnecessaryStuff();
           }

           var audioRecorder, videoRecorder, videoURL, connectionStream;
           function initRecorders(stream) {
               //document.getElementById('start-recording').disabled = false;
               document.getElementById('stop-recording').disabled = false;
               //document.getElementById('save-video').disabled = false;
               //document.getElementById('start-recording').onclick = function() {
                   this.disabled = true;
                   audioRecorder = RecordRTC(stream, {
                       recorderType: StereoAudioRecorder,
                       bufferSize: 16384,  // mandatory: if 720p output is forced. otherwise: optional
                       width: 1280, // optional---- to get 720p output
                       height: 720
                   });

                   videoRecorder = RecordRTC(stream, {
                       type: 'video',
                       frameInterval: 90
                   });

                   videoRecorder.initRecorder(function() {
                       audioRecorder.initRecorder(function() {
                           audioRecorder.startRecording();
                           videoRecorder.startRecording();
                       });
                   });
               //};

               document.getElementById('stop-recording').onclick = function() {
                   this.disabled = true;
                   //document.getElementById('start-recording').disabled = false;
                   //document.getElementById('save-video').disabled = false;
                   videoRecorder.stopRecording(function() {
                       audioRecorder.stopRecording(function() {
                           var audioBlob = audioRecorder.blob;
                           var videoBlob = videoRecorder.blob;

                           convertStreams(videoBlob, audioBlob);

                           // Generate video URL
                           //var video = document.createElement('video');
                           //video.src = URL.createObjectURL(videoBlob);
                           //videoURL = video.src;
                       });
                   });
                   stream.stop();
               };

               /*document.getElementById('save-video').onclick = function() {
                   this.disabled = true;          
                   downloadURI(videoURL, 'video.webm');    
               };*/
           }

           function captureUserMedia(callback) {
               var htmlElement = document.createElement('video');
               htmlElement.setAttribute('autoplay', true);
               htmlElement.setAttribute('controls', true);
               videosContainer.insertBefore(htmlElement, videosContainer.firstChild);

               var mediaConfig = {
                   video: htmlElement,
                   onsuccess: function(stream) {
                       config.attachStream = stream;
                       callback && callback();
                       //htmlElement.setAttribute('muted', true);
                       scaleVideos();
                       initRecorders(stream);
                   },
                   onerror: function() {
                       alert('unable to get access to your webcam');
                   }
               };
               getUserMedia(mediaConfig);
           }

           var broadcastUI = broadcast(config);

           /* UI specific */
           var videosContainer = document.getElementById('videos-container') || document.body;
           var setupNewBroadcast = document.getElementById('setup-new-broadcast');
           var roomsList = document.getElementById('rooms-list');

           var broadcastingOption = document.getElementById('broadcasting-option');

           if (setupNewBroadcast)
               setupNewBroadcast.onclick = setupNewBroadcastButtonClickHandler;

           function hideUnnecessaryStuff() {
               var visibleElements = document.getElementsByClassName('visible'),
                   length = visibleElements.length;
               for (var i = 0; i < length; i++) {
                   visibleElements[i].style.display = 'none';
               }
           }

           var workerPath = 'https://4dbefa02675a4cdb7fc25d009516b060a84a3b4b.googledrive.com/host/0B6GWd_dUUTT8WjhzNlloZmZtdzA/ffmpeg_asm.js';

           // HTML5 create a new thread to run merging and conversion at background
                   function processInWebWorker() {

                       var blob = URL.createObjectURL(new Blob(['importScripts("' + workerPath + '");var now = Date.now;function print(text) {postMessage({"type" : "stdout","data" : text});};onmessage = function(event) {var message = event.data;if (message.type === "command") {var Module = {print: print,printErr: print,files: message.files || [],arguments: message.arguments || [],TOTAL_MEMORY: message.TOTAL_MEMORY || false};postMessage({"type" : "start","data" : Module.arguments.join(" ")});postMessage({"type" : "stdout","data" : "Received command: " +Module.arguments.join(" ") +((Module.TOTAL_MEMORY) ? ".  Processing with " + Module.TOTAL_MEMORY + " bits." : "")});var time = now();var result = ffmpeg_run(Module);var totalTime = now() - time;postMessage({"type" : "stdout","data" : "Finished processing (took " + totalTime + "ms)"});postMessage({"type" : "done","data" : result,"time" : totalTime});}};postMessage({"type" : "ready"});'], {
                                   type: 'application/javascript'
                           }));
                            var worker = new Worker(blob);
                            URL.revokeObjectURL(blob);
                            return worker;
                     }
                   var worker;

                   function convertStreams(videoBlob, audioBlob) {
                       var vab;
                       var aab;
                       var buffersReady;
                       var workerReady;
                       var posted = false;
                       var fileReader1 = new FileReader();
                       fileReader1.onload = function() {
                           vab = this.result;
                           if (aab)
                               buffersReady = true;
                           if (buffersReady && workerReady && !posted)
                               postMessage();
                       };
                       var fileReader2 = new FileReader();
                       fileReader2.onload = function() {
                           aab = this.result;
                           if (vab)
                               buffersReady = true;
                           if (buffersReady && workerReady && !posted)
                               postMessage();
                       };
                       fileReader1.readAsArrayBuffer(videoBlob);
                       fileReader2.readAsArrayBuffer(audioBlob);
                       if (!worker) {
                           worker = processInWebWorker();
                       }
                       worker.onmessage = function(event) {
                           var message = event.data;
                           var message = event.data;
                           if (message.type == "ready") {
                               log('Start converting video and audio to mp4, please wait...');
                               workerReady = true;
                               if (buffersReady)
                                   postMessage();
                           } else if (message.type == "done") {

                               var result = message.data[0];
                               var blob = new Blob([result.data], {
                                   type: 'video/mp4'
                               });
                               log("Done converting. File will be downloaded");
                               document.getElementById('setup-new-broadcast').disabled = false;
                               var source = document.createElement('source');
                               source.src = URL.createObjectURL(blob);
                               source.type = 'video/mp4; codecs=mpeg4';
                               downloadURI(source.src, 'video.mp4');
                           }
                       };
                       var postMessage = function() {
                           posted = true;
                           worker.postMessage({
                               type: 'command',
                               arguments: [
                                   '-i', 'video.webm',
                                   '-i', 'audio.wav',
                                   '-c:v', 'mpeg4',
                                   '-c:a', 'vorbis',
                                   '-b:v', '6400k',
                                   '-b:a', '4800k',
                                   '-strict', 'experimental', 'output.mp4'
                               ],
                               files: [
                                   {
                                       data: new Uint8Array(vab),
                                       name: "video.webm"
                                   },
                                   {
                                       data: new Uint8Array(aab),
                                       name: "audio.wav"
                                   }
                               ]
                           });
                       };
                   }
  • ffmpeg-mp4box-mpeg dash plays only few segments

    30 octobre 2015, par Idris

    Need help in debugging the segment dash files

    The input was an MP4 with these details. This was recorded from a video camera, the output from the camera was mkv and we converted into MP4 after editing the audio via adobe

    • Size : 7.51 GB Frame rate : 25 frames/ second
    • Data rate : 25326kbps
    • Total bitrate : 25525kbps

    Converted this to another mp4 with this command

    ffmpeg -i "input.mp4" -s 1280x720 -c:v libx264 -b:v 750k -bf 2 -g 75 -sc_threshold 0 -an video_1280x720_750k.mp4

    ffmpeg -i "input.mp4"  -c:a aac -strict experimental -b:a 96k -ar 32000 -vn audio_96k.mp4

    The output video has

    • fps : 25
    • Data rate : 761kbps
    • bitrate : 761kbps

    Then, created the segmented dash through MP4Box

    MP4Box -dash 10000 -frag 10000 -rap -segment-name video_0_1280000\segment_ video_1280x720_750k.mp4

    MP4Box -dash 3000 -frag 10000 -rap -segment-name audio_0_96000\segment_ audio_96k.mp4

    The MPD generated was validated online and its perfect

    UPDATE ! Included the MPD file

    <?xml version="1.0"?>

    <mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500S" type="static" mediapresentationduration="PT0H2M0.000S" maxsegmentduration="PT0H0M10.000S" profiles="urn:mpeg:dash:profile:full:2011">
    <programinformation moreinformationurl="http://gpac.sourceforge.net">
     
    </programinformation>

    <period duration="PT0H2M0.000S">
      <adaptationset segmentalignment="true" lang="eng">
        <representation mimetype="audio/mp4" codecs="mp4a.40.2" audiosamplingrate="32000" startwithsap="1" bandwidth="98434">
          <audiochannelconfiguration schemeiduri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"></audiochannelconfiguration>
          <segmentlist timescale="32000" duration="319999">
            <initialization sourceurl="audio_0_96000/segment_init.mp4"></initialization>
            <segmenturl media="audio_0_96000/segment_1.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_2.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_3.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_4.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_5.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_6.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_7.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_8.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_9.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_10.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_11.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_12.m4s"></segmenturl>
            <segmenturl media="audio_0_96000/segment_13.m4s"></segmenturl>
          </segmentlist>
        </representation>
      </adaptationset>
     <adaptationset segmentalignment="true" maxwidth="1280" maxheight="720" maxframerate="25" par="16:9" lang="eng">
      <representation mimetype="video/mp4" codecs="avc3.64001f" width="1280" height="720" framerate="25" sar="1:1" startwithsap="1" bandwidth="764668">
       <segmentlist timescale="12800" duration="125866">
        <initialization sourceurl="video_0_1280000/segment_init.mp4"></initialization>
        <segmenturl media="video_0_1280000/segment_1.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_2.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_3.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_4.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_5.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_6.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_7.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_8.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_9.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_10.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_11.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_12.m4s"></segmenturl>
        <segmenturl media="video_0_1280000/segment_13.m4s"></segmenturl>
       </segmentlist>
      </representation>
     </adaptationset>

    </period>
    </mpd>

    Played the video through dashjs.. I believe it just plays the initial segment and errors out as MEDIA_ERR_DECODE..MEDIA_ERR_SRC_NOT_SUPPORTED.. or some message which says start not found..

    Through chrome debugging I see that atleast 4 segments are correctly loading.. I am not sure whats going on..

    Any help in debugging the issue is really appreciated. I really can’t understand if this is a problem with the file or ffmpeg or mp4box or chrome.

    Output from chrome debugging tool

    [dash.js 1.5.1] new MediaPlayer instance has been created
    dash.all.js:11 Playback initiated!
    dash.all.js:11 Parsing complete: ( xml2json: 5ms, objectiron: 10ms, total: 0.015s)
    dash.all.js:11 Manifest has been refreshed at Mon Oct 26 2015 10:19:22 GMT-0400 (Eastern Daylight Time)[1445869162092]  
    dash.all.js:11 SegmentTimeline detected using calculated Live Edge Time
    dash.all.js:11 MediaSource is open!
    dash.all.js:11 [object Event]
    dash.all.js:11 Duration successfully set to: 120
    dash.all.js:11 Added 0 inline events
    dash.all.js:11 video codec: video/mp4;codecs="avc3.64001f"
    dash.all.js:11 [video] stop
    dash.all.js:11 audio codec: audio/mp4;codecs="mp4a.40.2"
    dash.all.js:11 [audio] stop
    dash.all.js:11 No text data.
    dash.all.js:11 No fragmentedText data.
    dash.all.js:11 No muxed data.
    dash.all.js:11 [video] start
    dash.all.js:11 [video] Getting the request for time: 0
    dash.all.js:11 [video] Index for time 0 is 0
    dash.all.js:11 [video] SegmentList: 0 / 120
    dash.all.js:11 [audio] start
    dash.all.js:11 [audio] Getting the request for time: 0
    dash.all.js:11 [audio] Index for time 0 is 0
    dash.all.js:11 [audio] SegmentList: 0 / 120
    dash.all.js:11 [video] Getting the request for time: 9.83328125
    dash.all.js:11 [video] Index for time 9.83328125 is 0
    dash.all.js:11 [video] SegmentList: 0 / 120
    dash.all.js:11 [video] SegmentList: 9.83328125 / 120
    dash.all.js:11 [audio] Getting the request for time: 9.99996875
    dash.all.js:11 [audio] Index for time 9.99996875 is 0
    dash.all.js:11 [audio] SegmentList: 0 / 120
    dash.all.js:11 [audio] SegmentList: 9.99996875 / 120
    dash.all.js:11 loaded audio:Media Segment:0 (200, 20ms, 6ms)
    dash.all.js:11 loaded video:Media Segment:0 (200, 153ms, 43ms)
    dash.all.js:11 loaded video:Initialization Segment:NaN (200, 0ms, 32ms)
    dash.all.js:11 [video] Initialization finished loading
    dash.all.js:11 loaded audio:Initialization Segment:NaN (200, 0ms, 34ms)
    dash.all.js:11 [audio] Initialization finished loading
    dash.all.js:11 [video] Getting the request for time: 19.6665625
    dash.all.js:11 [video] Index for time 19.6665625 is 1
    dash.all.js:11 [video] SegmentList: 9.83328125 / 120
    dash.all.js:11 [video] SegmentList: 19.6665625 / 120
    dash.all.js:11 [audio] Getting the request for time: 19.9999375
    dash.all.js:11 [audio] Index for time 19.9999375 is 1
    dash.all.js:11 [audio] SegmentList: 9.99996875 / 120
    dash.all.js:11 [audio] SegmentList: 19.9999375 / 120
    dash.all.js:11 [video] Stalling Buffer
    dash.all.js:11 [video] Waiting for more buffer before starting playback.
    dash.all.js:11 [video] Getting the request for time: 0
    dash.all.js:11 [video] Index for time 0 is 0
    dash.all.js:11 [audio] Stalling Buffer
    dash.all.js:11 [audio] Waiting for more buffer before starting playback.
    dash.all.js:11 [audio] Getting the request for time: 0
    dash.all.js:11 [audio] Index for time 0 is 0
    dash.all.js:11 <video> loadedmetadata
    dash.all.js:11 Starting playback at offset: 0
    dash.all.js:11 [video] Getting the request for time: 29.499843750000004
    dash.all.js:11 [video] Index for time 29.499843750000004 is 2
    dash.all.js:11 [video] SegmentList: 19.6665625 / 120
    dash.all.js:11 [video] SegmentList: 29.499843750000004 / 120
    dash.all.js:11 [video] Got enough buffer to start.
    dash.all.js:11 [video] seek: 0
    dash.all.js:11 [audio] Getting the request for time: 29.999906250000002
    dash.all.js:11 [audio] Index for time 29.999906250000002 is 2
    dash.all.js:11 [audio] SegmentList: 19.9999375 / 120
    dash.all.js:11 [audio] SegmentList: 29.999906250000002 / 120
    dash.all.js:11 [audio] Got enough buffer to start.
    dash.all.js:11 [audio] seek: 0
    dash.all.js:11 loaded audio:Media Segment:9.99996875 (200, 67ms, 24ms)
    dash.all.js:11 loaded video:Media Segment:9.83328125 (200, 71ms, 31ms)
    dash.all.js:11 [audio] Buffered Range: 0.032 - 9.984
    dash.all.js:11 [audio] Getting the request for time: 0
    dash.all.js:11 [audio] Index for time 0 is 0
    dash.all.js:11 Start Event Controller
    dash.all.js:11 [audio] Buffered Range: 0.032 - 19.999968
    dash.all.js:11 [audio] Getting the request for time: 0
    dash.all.js:11 [audio] Index for time 0 is 0
    dash.all.js:11 <video> play
    dash.all.js:11 [video] start
    dash.all.js:11 [video] Getting the request for time: 0
    dash.all.js:11 [video] Index for time 0 is 0
    dash.all.js:11 [video] SegmentList: 0 / 120
    dash.all.js:11 [video] SegmentList: 9.83328125 / 120
    dash.all.js:11 [video] SegmentList: 19.6665625 / 120
    dash.all.js:11 [audio] start
    dash.all.js:11 <video> playing
    dash.all.js:11 [video] Buffered Range: 0 - 9
    dash.all.js:11 [video] Getting the request for time: 0
    dash.all.js:11 [video] Index for time 0 is 0
    dash.all.js:11 Do seek: 0.032
    dash.all.js:11 <video> seek
    dash.all.js:11 [video] Getting the request for time: 29.499843750000004
    dash.all.js:11 [video] Index for time 29.499843750000004 is 2
    dash.all.js:11 [video] SegmentList: 19.6665625 / 120
    dash.all.js:11 [video] SegmentList: 29.499843750000004 / 120
    dash.all.js:11 [video] seek: 0.032
    dash.all.js:11 [audio] seek: 0.032
    dash.all.js:11 [video] Getting the request for time: 9
    dash.all.js:11 [video] Index for time 9 is 0
    dash.all.js:11 [video] SegmentList: 0 / 120
    dash.all.js:11 [video] SegmentList: 9.83328125 / 120
    dash.all.js:11 [video] SegmentList: 19.6665625 / 120
    dash.all.js:11 [video] SegmentList: 29.499843750000004 / 120
    dash.all.js:11 [video] Buffered Range: 0 - 18
    dash.all.js:11 [video] Getting the request for time: 0
    dash.all.js:11 [video] Index for time 0 is 0
    dash.all.js:11 loaded video:Media Segment:19.6665625 (200, 42ms, 33ms)
    dash.all.js:11 <video> seeked
    dash.all.js:11 Start Event Controller
    dash.all.js:11 <video> playing
    dash.all.js:11 [video] Buffered Range: 0 - 28
    dash.all.js:11 [video] Getting the request for time: 0
    dash.all.js:11 [video] Index for time 0 is 0
    dash.all.js:11 [audio] Getting the request for time: 19.999968
    dash.all.js:11 [audio] Index for time 19.999968 is 1
    dash.all.js:11 [audio] SegmentList: 9.99996875 / 120
    dash.all.js:11 [audio] SegmentList: 19.9999375 / 120
    dash.all.js:11 [audio] Getting the request for time: 29.999906250000002
    dash.all.js:11 [audio] Index for time 29.999906250000002 is 2
    dash.all.js:11 [audio] SegmentList: 19.9999375 / 120
    dash.all.js:11 [audio] SegmentList: 29.999906250000002 / 120
    dash.all.js:11 loaded audio:Media Segment:19.9999375 (200, 102ms, 2ms)
    dash.all.js:11 [audio] Buffered Range: 0.032 - 29.983968
    dash.all.js:11 [audio] Getting the request for time: 0
    dash.all.js:11 [audio] Index for time 0 is 0
    dash.all.js:11 loaded audio:Media Segment:29.999906250000002 (200, 26ms, 2ms)
    dash.all.js:11 [audio] Buffered Range: 0.032 - 39.999968
    dash.all.js:11 [audio] Getting the request for time: 0
    dash.all.js:11 [audio] Index for time 0 is 0
    dash.all.js:11 loaded video:Media Segment:29.499843750000004 (200, 47ms, 7ms)
    dash.all.js:11 Video Element Error: MEDIA_ERR_DECODE
    dash.all.js:11 [video] stop
    dash.all.js:11 [audio] stop
    dash.all.js:11 Video Element Error: MEDIA_ERR_SRC_NOT_SUPPORTED
    dash.all.js:11 <video> play
    </video></video></video></video></video></video></video>
  • How to capture a log message coming out of node JS spawn ffmpeg command

    17 janvier 2014, par keenan

    I am trying to find the silent parts of an audio recording. This command does exactly what I want on my local machine.

    ffmpeg -i http://twf-audio.s3.amazonaws.com/uploads/DBC50460-9A5C-4174-9885-07337A582D58_1377839443598_tell.m4a -af silencedetect=n=-40dB:d=0.2 -f null -

    It sends a bunch of messages to the command line including these last three which are the lines of data that I need. (for reference : ffmpeg silencedetect docs)

    [silencedetect @ 0x7feea040cf20] silence_start : 0.0321995

    [silencedetect @ 0x7feea040cf20] silence_end : 0.975238 | silence_duration : 0.943039

    [silencedetect @ 0x7feea040cf20] silence_start : 1.47184

    I cannot figure out how to get that message out. Here is the nodejs code that is running. The only event that is triggered is the 'exit'. I thought that "pipe:1" sends output to stdout but that does not do anything.

    var ffmpeg = spawn(&#39;ffmpeg&#39;, [&#39;-i&#39;,filename,&#39;-af&#39;,&#39;silencedetect=n=-40dB:d=0.2&#39;, &#39;-f&#39;, &#39;null&#39;,&#39;-y&#39;, &#39;pipe:1&#39; ]);

    ffmpeg.on(&#39;message&#39;, function(data) {
       console.log(&#39;ffmpeg2 PARENT got message:&#39;, JSON.stringify(data));
    });

    ffmpeg.stdout.on(&#39;data&#39;, function(data) {
       console.log(&#39;ffmpeg stdout data = &#39;+JSON.stringify(data) );
    });

    ffmpeg.on(&#39;exit&#39;, function (code, signal) {
     console.log(&#39;child process exited with code:&#39; + code + &#39; signal:&#39; + signal);
    });