Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Load handling while using ffmpeg.exe

Load handling while using ffmpeg.exe

Scheduled Pinned Locked Moved ASP.NET
adobesysadminhelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AumSingh
    wrote on last edited by
    #1

    I am using ffmpeg.exe in my project to convert the uploaded video files(.wmv,.mov,.avi etc) to flash movies files (.flv). I have used process.start() method to execute the executable. In such a scenario every time a file is uploaded, a new process is created for the ffmpeg.exe which converts the uploaded file. This will increase the load on the server as the number of user increase. How can overcome this problem? Can anyone suggest some way out

    C 1 Reply Last reply
    0
    • A AumSingh

      I am using ffmpeg.exe in my project to convert the uploaded video files(.wmv,.mov,.avi etc) to flash movies files (.flv). I have used process.start() method to execute the executable. In such a scenario every time a file is uploaded, a new process is created for the ffmpeg.exe which converts the uploaded file. This will increase the load on the server as the number of user increase. How can overcome this problem? Can anyone suggest some way out

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Why are you converting videos in a website at all ? I'm not sure what you can do. Even if you had ahold of the process, how would you know to end it ? Perhap by the video file being done ?

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      A 1 Reply Last reply
      0
      • C Christian Graus

        Why are you converting videos in a website at all ? I'm not sure what you can do. Even if you had ahold of the process, how would you know to end it ? Perhap by the video file being done ?

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        A Offline
        A Offline
        AumSingh
        wrote on last edited by
        #3

        Well thanks again Christian, well you are correct I am ending it after the video file is getting converted and saved. I have a requirement for which i have to convert file in my website. This conversion thing is working fine but Then I thought executing an exe file will increase the load on server. Is there any way to tackle the problem..? Hope I have made my problem clear in last post. I was wondering instead of a process getting created for each upload can we have many threads for a process....? I am just giving an idea....I don't know if it is possible.

        N 1 Reply Last reply
        0
        • A AumSingh

          Well thanks again Christian, well you are correct I am ending it after the video file is getting converted and saved. I have a requirement for which i have to convert file in my website. This conversion thing is working fine but Then I thought executing an exe file will increase the load on server. Is there any way to tackle the problem..? Hope I have made my problem clear in last post. I was wondering instead of a process getting created for each upload can we have many threads for a process....? I am just giving an idea....I don't know if it is possible.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          om pr wrote:

          Is there any way to tackle the problem..?

          You can create a windows service and install it on server. This service should look into the uploaded directory, and do the conversion. Since you are doing this in a service, you will get complete handle to the process.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          A 1 Reply Last reply
          0
          • N N a v a n e e t h

            om pr wrote:

            Is there any way to tackle the problem..?

            You can create a windows service and install it on server. This service should look into the uploaded directory, and do the conversion. Since you are doing this in a service, you will get complete handle to the process.

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

            A Offline
            A Offline
            AumSingh
            wrote on last edited by
            #5

            Well i had thought about that too but our scope is limited because of some reason. We have to implement it in the business logic of the web application itself. As i had asked in the previous post...will the multithreaded concept help...?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups