ffmpeg live transcoding faster alternative?












1















Is there any opensource alternative to ffmpeg and VLC to live video transcoding from HTTP streaming to RTMP or other?



ffmpeg caused my CPU (AMD 4.0GHZ 8Core) is loaded 100% with only 8 SD streams.



Thanks for help.



PS.
I think I don't need to transcode my video, I can also stream with something like http video proxy. Source is in HTTP streaming format, also I am under Linux.










share|improve this question

























  • Are you encoding or just re-muxing?

    – llogan
    Jul 31 '14 at 18:24


















1















Is there any opensource alternative to ffmpeg and VLC to live video transcoding from HTTP streaming to RTMP or other?



ffmpeg caused my CPU (AMD 4.0GHZ 8Core) is loaded 100% with only 8 SD streams.



Thanks for help.



PS.
I think I don't need to transcode my video, I can also stream with something like http video proxy. Source is in HTTP streaming format, also I am under Linux.










share|improve this question

























  • Are you encoding or just re-muxing?

    – llogan
    Jul 31 '14 at 18:24
















1












1








1








Is there any opensource alternative to ffmpeg and VLC to live video transcoding from HTTP streaming to RTMP or other?



ffmpeg caused my CPU (AMD 4.0GHZ 8Core) is loaded 100% with only 8 SD streams.



Thanks for help.



PS.
I think I don't need to transcode my video, I can also stream with something like http video proxy. Source is in HTTP streaming format, also I am under Linux.










share|improve this question
















Is there any opensource alternative to ffmpeg and VLC to live video transcoding from HTTP streaming to RTMP or other?



ffmpeg caused my CPU (AMD 4.0GHZ 8Core) is loaded 100% with only 8 SD streams.



Thanks for help.



PS.
I think I don't need to transcode my video, I can also stream with something like http video proxy. Source is in HTTP streaming format, also I am under Linux.







linux ffmpeg streaming dvb






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 6 '14 at 9:41









Coconop

2,97322041




2,97322041










asked Jul 31 '14 at 17:05









ppoeasppoeas

286




286













  • Are you encoding or just re-muxing?

    – llogan
    Jul 31 '14 at 18:24





















  • Are you encoding or just re-muxing?

    – llogan
    Jul 31 '14 at 18:24



















Are you encoding or just re-muxing?

– llogan
Jul 31 '14 at 18:24







Are you encoding or just re-muxing?

– llogan
Jul 31 '14 at 18:24














2 Answers
2






active

oldest

votes


















1














Your question should be: "Is there any opensource alternative faster than ffmpeg".



And the answer is No.



If you dont need to transcode, add -acodec copy -vcodec copy to your command line






share|improve this answer

































    0














    ffmpeg is flexible encoder you can tweak it much you like , it's up to encoding algorithm and Size VS Quality battle , I think now days X264 are more efficacy than it was before , the important tweaks with ffmpeg to speedup encoding is -preset the default is medium you can use fast or faster and watch the quality of your output video . I have live steaming video and I use this command



     ffmpeg -loglevel 0 -thread_queue_size 32768 -re -i "http://sorce" -vcodec libx264 -preset fast -break_non_keyframes 1 -profile:v high444 -x264-params "nal-hrd=cbr" -b:v 260k -acodec aac -b:a 32k -map_metadata -1 -s 480x360 -f flv rtmp://localhost/hls/live


    That for very low quality video ,



    ffmpeg -loglevel 0 -thread_queue_size 32768 -re -i "http://source" -vcodec libx264 -preset fast -break_non_keyframes 1 -b:v 665k -profile:v high444 -x264-params "nal-hrd=cbr" -acodec aac -b:a 32k -map_metadata -1 -s 854x480 -f flv rtmp://localhost/hls/live


    you will get better quality and viewable picture when increase -b:v value .
    so it's up to you preferred network you can get much higher video quality with less CPU usage.






    share|improve this answer























      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%2f25064938%2fffmpeg-live-transcoding-faster-alternative%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Your question should be: "Is there any opensource alternative faster than ffmpeg".



      And the answer is No.



      If you dont need to transcode, add -acodec copy -vcodec copy to your command line






      share|improve this answer






























        1














        Your question should be: "Is there any opensource alternative faster than ffmpeg".



        And the answer is No.



        If you dont need to transcode, add -acodec copy -vcodec copy to your command line






        share|improve this answer




























          1












          1








          1







          Your question should be: "Is there any opensource alternative faster than ffmpeg".



          And the answer is No.



          If you dont need to transcode, add -acodec copy -vcodec copy to your command line






          share|improve this answer















          Your question should be: "Is there any opensource alternative faster than ffmpeg".



          And the answer is No.



          If you dont need to transcode, add -acodec copy -vcodec copy to your command line







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 1 '14 at 15:11

























          answered Jul 31 '14 at 21:33









          szatmaryszatmary

          18.3k63041




          18.3k63041

























              0














              ffmpeg is flexible encoder you can tweak it much you like , it's up to encoding algorithm and Size VS Quality battle , I think now days X264 are more efficacy than it was before , the important tweaks with ffmpeg to speedup encoding is -preset the default is medium you can use fast or faster and watch the quality of your output video . I have live steaming video and I use this command



               ffmpeg -loglevel 0 -thread_queue_size 32768 -re -i "http://sorce" -vcodec libx264 -preset fast -break_non_keyframes 1 -profile:v high444 -x264-params "nal-hrd=cbr" -b:v 260k -acodec aac -b:a 32k -map_metadata -1 -s 480x360 -f flv rtmp://localhost/hls/live


              That for very low quality video ,



              ffmpeg -loglevel 0 -thread_queue_size 32768 -re -i "http://source" -vcodec libx264 -preset fast -break_non_keyframes 1 -b:v 665k -profile:v high444 -x264-params "nal-hrd=cbr" -acodec aac -b:a 32k -map_metadata -1 -s 854x480 -f flv rtmp://localhost/hls/live


              you will get better quality and viewable picture when increase -b:v value .
              so it's up to you preferred network you can get much higher video quality with less CPU usage.






              share|improve this answer




























                0














                ffmpeg is flexible encoder you can tweak it much you like , it's up to encoding algorithm and Size VS Quality battle , I think now days X264 are more efficacy than it was before , the important tweaks with ffmpeg to speedup encoding is -preset the default is medium you can use fast or faster and watch the quality of your output video . I have live steaming video and I use this command



                 ffmpeg -loglevel 0 -thread_queue_size 32768 -re -i "http://sorce" -vcodec libx264 -preset fast -break_non_keyframes 1 -profile:v high444 -x264-params "nal-hrd=cbr" -b:v 260k -acodec aac -b:a 32k -map_metadata -1 -s 480x360 -f flv rtmp://localhost/hls/live


                That for very low quality video ,



                ffmpeg -loglevel 0 -thread_queue_size 32768 -re -i "http://source" -vcodec libx264 -preset fast -break_non_keyframes 1 -b:v 665k -profile:v high444 -x264-params "nal-hrd=cbr" -acodec aac -b:a 32k -map_metadata -1 -s 854x480 -f flv rtmp://localhost/hls/live


                you will get better quality and viewable picture when increase -b:v value .
                so it's up to you preferred network you can get much higher video quality with less CPU usage.






                share|improve this answer


























                  0












                  0








                  0







                  ffmpeg is flexible encoder you can tweak it much you like , it's up to encoding algorithm and Size VS Quality battle , I think now days X264 are more efficacy than it was before , the important tweaks with ffmpeg to speedup encoding is -preset the default is medium you can use fast or faster and watch the quality of your output video . I have live steaming video and I use this command



                   ffmpeg -loglevel 0 -thread_queue_size 32768 -re -i "http://sorce" -vcodec libx264 -preset fast -break_non_keyframes 1 -profile:v high444 -x264-params "nal-hrd=cbr" -b:v 260k -acodec aac -b:a 32k -map_metadata -1 -s 480x360 -f flv rtmp://localhost/hls/live


                  That for very low quality video ,



                  ffmpeg -loglevel 0 -thread_queue_size 32768 -re -i "http://source" -vcodec libx264 -preset fast -break_non_keyframes 1 -b:v 665k -profile:v high444 -x264-params "nal-hrd=cbr" -acodec aac -b:a 32k -map_metadata -1 -s 854x480 -f flv rtmp://localhost/hls/live


                  you will get better quality and viewable picture when increase -b:v value .
                  so it's up to you preferred network you can get much higher video quality with less CPU usage.






                  share|improve this answer













                  ffmpeg is flexible encoder you can tweak it much you like , it's up to encoding algorithm and Size VS Quality battle , I think now days X264 are more efficacy than it was before , the important tweaks with ffmpeg to speedup encoding is -preset the default is medium you can use fast or faster and watch the quality of your output video . I have live steaming video and I use this command



                   ffmpeg -loglevel 0 -thread_queue_size 32768 -re -i "http://sorce" -vcodec libx264 -preset fast -break_non_keyframes 1 -profile:v high444 -x264-params "nal-hrd=cbr" -b:v 260k -acodec aac -b:a 32k -map_metadata -1 -s 480x360 -f flv rtmp://localhost/hls/live


                  That for very low quality video ,



                  ffmpeg -loglevel 0 -thread_queue_size 32768 -re -i "http://source" -vcodec libx264 -preset fast -break_non_keyframes 1 -b:v 665k -profile:v high444 -x264-params "nal-hrd=cbr" -acodec aac -b:a 32k -map_metadata -1 -s 854x480 -f flv rtmp://localhost/hls/live


                  you will get better quality and viewable picture when increase -b:v value .
                  so it's up to you preferred network you can get much higher video quality with less CPU usage.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 23 '18 at 9:23









                  SalemSalem

                  371215




                  371215






























                      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%2f25064938%2fffmpeg-live-transcoding-faster-alternative%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

                      Wiesbaden

                      Marschland

                      Dieringhausen