When I use Fluent-Ffmpeg to access Ffmpeg, there are two different threads but I dont want itHow to concatenate two MP4 files using FFmpeg?How do you use Node.js to stream an MP4 file with ffmpeg?Adding subtitles with fluent-ffmpegfluent-ffmpeg from an array of input filesfluent ffmpeg size output option not workingUnable to convert files with fluent-ffmpegUsing node fluent-ffmpeg for converting images to videoVideo buffering/streaming with node-fluent-ffmpegfluent-ffmpeg extract audio using streamingproblem executing ffmpeg in node-rstp-stream

Understanding the reasoning of the woman who agreed with King Solomon to "cut the baby in half"

Parameterize chained calls to a utility program in Bash

Cut the gold chain

Why does the Saturn V have standalone inter-stage rings?

Count All Possible Unique Combinations of Letters in a Word

Do I have to explain the mechanical superiority of the player-character within the fiction of the game?

What does the hyphen "-" mean in "tar xzf -"?

Why does this method with an optional parameter not override the base class method?

How to remove this component from PCB

What is the origin of Scooby-Doo's name?

Is there a term for the belief that "if it's legal, it's moral"?

When can you leave off “le/la” to say “it” in French?

What's the difference between a deep fryer and a chip pan?

Is "Busen" just the area between the breasts?

Why do textbooks often include the solutions to odd or even numbered problems but not both?

Can there be an UN resolution to remove a country from the UNSC?

Are all instances of trolls turning to stone ultimately references back to Tolkien?

Suggested order for Amazon Prime Doctor Who series

Is it illegal to withhold someone's passport and green card in California?

What can I do with a research project that is my university’s intellectual property?

How many children?

Why are < or > required to use /dev/tcp

Who are the remaining King/Queenslayers?

What does "play with your toy’s toys" mean?



When I use Fluent-Ffmpeg to access Ffmpeg, there are two different threads but I dont want it


How to concatenate two MP4 files using FFmpeg?How do you use Node.js to stream an MP4 file with ffmpeg?Adding subtitles with fluent-ffmpegfluent-ffmpeg from an array of input filesfluent ffmpeg size output option not workingUnable to convert files with fluent-ffmpegUsing node fluent-ffmpeg for converting images to videoVideo buffering/streaming with node-fluent-ffmpegfluent-ffmpeg extract audio using streamingproblem executing ffmpeg in node-rstp-stream






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I try to broadcast with rtsp live stream from IP camera on web app that is improved with node.js-jsmpeg([a link]https://www.npmjs.com/package/fluent-ffmpeg!), web socket, html5(canvas).Everything ok that live streaming works but missing frame and high CPU usaged by streaming on web app and I try to reduce so I can intervene ffmpeg with fluent-ffmpeg but when I monitor CPU usaged I can see there 2 different threads following as and look at screenshot of CPU;
enter image description here



ffmpeg -rtsp_trasport tcp -i rtsp://10.6.0.225 -f mpeg1video - is worked by jsmpeg and canvas/html5
index.html



 <html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>

<div><canvas id="videoCanvas" width="640" height="360"></canvas></div>
<!-->div><canvas id="videoCanvas2" width="640" height="360"></canvas></div-->
<script type="text/javascript" src="jsLib/jsmpeg.js"></script>
<script type="text/javascript" src="jsLib/ffmpegUtil.js"></script>
<script type="text/javascript">
var canvas = document.getElementById('videoCanvas');
var ws = new WebSocket("ws://10.6.0.206:9999")
var player = new jsmpeg(ws, canvas:canvas, autoplay:true,audio:false,loop: true);
</script>

<body>

</body>
</html>


other one /usr/bin/ffmpeg -i rtsp://10.6.0.225 -y out.ts is work by following piece of code in app.js



Stream = require('node-rtsp-stream');
stream = new Stream(
name: 'name',
streamUrl: 'rtsp://10.6.0.225',
wsPort: 9999
);

var ffmpeg = require('fluent-ffmpeg');
var proc = new ffmpeg();

proc
.addInput('rtsp://10.6.0.225')
.on('start', function(ffmpegCommand)
/// log something maybe
console.log('start-->'+ffmpegCommand)
)
.on('progress', function(data)
/// do stuff with progress data if you want
console.log('progress-->'+data)
)
.on('end', function()
/// encoding is complete, so callback or move on at this point
console.log('end-->')
)
.on('error', function(error)
/// error handling
console.log('error-->'+error)

)
.output('out.ts')
.run();


and then I don't want to get two different ffmpeg command threads in there.
Does anyone have an idea?
Thanks in advice.










share|improve this question






























    0















    I try to broadcast with rtsp live stream from IP camera on web app that is improved with node.js-jsmpeg([a link]https://www.npmjs.com/package/fluent-ffmpeg!), web socket, html5(canvas).Everything ok that live streaming works but missing frame and high CPU usaged by streaming on web app and I try to reduce so I can intervene ffmpeg with fluent-ffmpeg but when I monitor CPU usaged I can see there 2 different threads following as and look at screenshot of CPU;
    enter image description here



    ffmpeg -rtsp_trasport tcp -i rtsp://10.6.0.225 -f mpeg1video - is worked by jsmpeg and canvas/html5
    index.html



     <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <div><canvas id="videoCanvas" width="640" height="360"></canvas></div>
    <!-->div><canvas id="videoCanvas2" width="640" height="360"></canvas></div-->
    <script type="text/javascript" src="jsLib/jsmpeg.js"></script>
    <script type="text/javascript" src="jsLib/ffmpegUtil.js"></script>
    <script type="text/javascript">
    var canvas = document.getElementById('videoCanvas');
    var ws = new WebSocket("ws://10.6.0.206:9999")
    var player = new jsmpeg(ws, canvas:canvas, autoplay:true,audio:false,loop: true);
    </script>

    <body>

    </body>
    </html>


    other one /usr/bin/ffmpeg -i rtsp://10.6.0.225 -y out.ts is work by following piece of code in app.js



    Stream = require('node-rtsp-stream');
    stream = new Stream(
    name: 'name',
    streamUrl: 'rtsp://10.6.0.225',
    wsPort: 9999
    );

    var ffmpeg = require('fluent-ffmpeg');
    var proc = new ffmpeg();

    proc
    .addInput('rtsp://10.6.0.225')
    .on('start', function(ffmpegCommand)
    /// log something maybe
    console.log('start-->'+ffmpegCommand)
    )
    .on('progress', function(data)
    /// do stuff with progress data if you want
    console.log('progress-->'+data)
    )
    .on('end', function()
    /// encoding is complete, so callback or move on at this point
    console.log('end-->')
    )
    .on('error', function(error)
    /// error handling
    console.log('error-->'+error)

    )
    .output('out.ts')
    .run();


    and then I don't want to get two different ffmpeg command threads in there.
    Does anyone have an idea?
    Thanks in advice.










    share|improve this question


























      0












      0








      0








      I try to broadcast with rtsp live stream from IP camera on web app that is improved with node.js-jsmpeg([a link]https://www.npmjs.com/package/fluent-ffmpeg!), web socket, html5(canvas).Everything ok that live streaming works but missing frame and high CPU usaged by streaming on web app and I try to reduce so I can intervene ffmpeg with fluent-ffmpeg but when I monitor CPU usaged I can see there 2 different threads following as and look at screenshot of CPU;
      enter image description here



      ffmpeg -rtsp_trasport tcp -i rtsp://10.6.0.225 -f mpeg1video - is worked by jsmpeg and canvas/html5
      index.html



       <html lang="en">
      <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta http-equiv="X-UA-Compatible" content="ie=edge">
      <title>Document</title>

      <div><canvas id="videoCanvas" width="640" height="360"></canvas></div>
      <!-->div><canvas id="videoCanvas2" width="640" height="360"></canvas></div-->
      <script type="text/javascript" src="jsLib/jsmpeg.js"></script>
      <script type="text/javascript" src="jsLib/ffmpegUtil.js"></script>
      <script type="text/javascript">
      var canvas = document.getElementById('videoCanvas');
      var ws = new WebSocket("ws://10.6.0.206:9999")
      var player = new jsmpeg(ws, canvas:canvas, autoplay:true,audio:false,loop: true);
      </script>

      <body>

      </body>
      </html>


      other one /usr/bin/ffmpeg -i rtsp://10.6.0.225 -y out.ts is work by following piece of code in app.js



      Stream = require('node-rtsp-stream');
      stream = new Stream(
      name: 'name',
      streamUrl: 'rtsp://10.6.0.225',
      wsPort: 9999
      );

      var ffmpeg = require('fluent-ffmpeg');
      var proc = new ffmpeg();

      proc
      .addInput('rtsp://10.6.0.225')
      .on('start', function(ffmpegCommand)
      /// log something maybe
      console.log('start-->'+ffmpegCommand)
      )
      .on('progress', function(data)
      /// do stuff with progress data if you want
      console.log('progress-->'+data)
      )
      .on('end', function()
      /// encoding is complete, so callback or move on at this point
      console.log('end-->')
      )
      .on('error', function(error)
      /// error handling
      console.log('error-->'+error)

      )
      .output('out.ts')
      .run();


      and then I don't want to get two different ffmpeg command threads in there.
      Does anyone have an idea?
      Thanks in advice.










      share|improve this question
















      I try to broadcast with rtsp live stream from IP camera on web app that is improved with node.js-jsmpeg([a link]https://www.npmjs.com/package/fluent-ffmpeg!), web socket, html5(canvas).Everything ok that live streaming works but missing frame and high CPU usaged by streaming on web app and I try to reduce so I can intervene ffmpeg with fluent-ffmpeg but when I monitor CPU usaged I can see there 2 different threads following as and look at screenshot of CPU;
      enter image description here



      ffmpeg -rtsp_trasport tcp -i rtsp://10.6.0.225 -f mpeg1video - is worked by jsmpeg and canvas/html5
      index.html



       <html lang="en">
      <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta http-equiv="X-UA-Compatible" content="ie=edge">
      <title>Document</title>

      <div><canvas id="videoCanvas" width="640" height="360"></canvas></div>
      <!-->div><canvas id="videoCanvas2" width="640" height="360"></canvas></div-->
      <script type="text/javascript" src="jsLib/jsmpeg.js"></script>
      <script type="text/javascript" src="jsLib/ffmpegUtil.js"></script>
      <script type="text/javascript">
      var canvas = document.getElementById('videoCanvas');
      var ws = new WebSocket("ws://10.6.0.206:9999")
      var player = new jsmpeg(ws, canvas:canvas, autoplay:true,audio:false,loop: true);
      </script>

      <body>

      </body>
      </html>


      other one /usr/bin/ffmpeg -i rtsp://10.6.0.225 -y out.ts is work by following piece of code in app.js



      Stream = require('node-rtsp-stream');
      stream = new Stream(
      name: 'name',
      streamUrl: 'rtsp://10.6.0.225',
      wsPort: 9999
      );

      var ffmpeg = require('fluent-ffmpeg');
      var proc = new ffmpeg();

      proc
      .addInput('rtsp://10.6.0.225')
      .on('start', function(ffmpegCommand)
      /// log something maybe
      console.log('start-->'+ffmpegCommand)
      )
      .on('progress', function(data)
      /// do stuff with progress data if you want
      console.log('progress-->'+data)
      )
      .on('end', function()
      /// encoding is complete, so callback or move on at this point
      console.log('end-->')
      )
      .on('error', function(error)
      /// error handling
      console.log('error-->'+error)

      )
      .output('out.ts')
      .run();


      and then I don't want to get two different ffmpeg command threads in there.
      Does anyone have an idea?
      Thanks in advice.







      node.js ffmpeg video-streaming rtsp fluent-ffmpeg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 11:03







      Ahmet Hakan Billur

















      asked Mar 25 at 8:11









      Ahmet Hakan BillurAhmet Hakan Billur

      5019




      5019






















          0






          active

          oldest

          votes














          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55333577%2fwhen-i-use-fluent-ffmpeg-to-access-ffmpeg-there-are-two-different-threads-but-i%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55333577%2fwhen-i-use-fluent-ffmpeg-to-access-ffmpeg-there-are-two-different-threads-but-i%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해