closed Why does the video converter take so long?

derrickhand300
@derrickhand300
6 years ago
1,353 posts
I just uploaded a video thats 100MB- just took a few minutes. I created the video in MPEG4 before uploading yet its been over 2 hours and the video is still "converting"?
I have contacted my server to see if there are settings to increase the speed of this- but they say everything working as expected no errors or anything...

They did ask this
"What script is your site using for video conversion? Maybe we can see the requirements and make sure the server settings are set up properly for it to have the best performance."

I told them ffmpeg which apparently was the wrong answer...

Any way to make conversion 10 times faster and whats the name of the script?

Thank you

ATTACHED VIDEO CONVERSION SETTINGS

Capture.JPG
Capture.JPG  •  46KB


updated by @derrickhand300: 06/18/18 08:26:16AM
brian
@brian
6 years ago
10,148 posts
There's multiple answers to this question:

1) First of all, you need to turn down the max conversion workers. This should never be MORE than the number of CPUs in your server, and should likely be no more than 1/2 - so if you have 4 cores, set this to "2". If you have more workers than CPUs the workers will start to compete with each other for CPU time.

2) Setting conversion priority to "highest" is only going to get you a tiny bit faster - I'd recommend setting to "high" as the max. The problem here with it set to "highest" is that EACH worker is now going to try an use ALL processors on your server. Again this will lead to contention for CPU resources between your web server, database, the worker, and any other process running on your server. The only reason to ever use "highest" is if you have a LOT of CPUs or are running a dedicated cluster conversion server.

3) Video conversions are slow - period. There's no way to make them super fast - a 100mb input video is going to take quite a while to be converted to an MP4 version and an FLV version (based on your settings) - I would expect at LEAST 10 to 15 minutes, and that would be with very fast CPUs.

4) Conversion speed is heavily dependent on the CPU speed (higher is better), the amount of free Memory (RAM - more is better) and the speed of the underlying disk system (SSD is best). But even with a screaming fast server it's still going to take quite a bit if time to convert a 100mb video.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
6 years ago
1,353 posts
Thanks Brian...looks like its going to go over 4 hours now and still running...
I convert the video to MPEG4 before uploading- so I am trying to understand whats to convert?
I will change all the settings to what you recommend but because i am the only one that can upload video to my site- i thought max workers and highest would be fine ( I will change them back)
I still don get it...4 hours?
brian
@brian
6 years ago
10,148 posts
No - 4 hours is way too long - it's likely not even converting anymore and hasn't been for some time. Reset the worker and let it start over. Also - check your activity log. The converter is very good about logging any errors it encounters to the log.

NOTE: If you restart your web server in the middle of a conversion it will fail!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
derrickhand300
@derrickhand300
6 years ago
1,353 posts
Thanks brian...ive been 9 hours and several attempts still no video..
Here is a screenshot of my Que viewer- does this mean it still converting? Its been 1.5 hours on this attempt
Capture.JPG
Capture.JPG  •  69KB

michael
@michael
6 years ago
7,746 posts
If its still there now, delete it and it will restart.
derrickhand300
@derrickhand300
6 years ago
1,353 posts
Just woke its gone...never converted
brian
@brian
6 years ago
10,148 posts
Looks like the conversation moved to another thread:

https://www.jamroom.net/the-jamroom-network/forum/new_posts/57175/issue-with-video

Let's follow up there.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags