• Welcome to PHPVIBE Forums. Please log in.
avatar_PHPVibe R

Chain conversion commands based on previously converted quality

Started by PHPVibe R,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PHPVibe RTopic starter

When handling conversion MediaVibe takes as source the uploaded video.

You can change this to take the last converted source.

To explain this simple:
1080p - source {upload}
720p - source {upload}
360p - source {upload}
This is the logic in the CMS.

Here is my take:
1080p - source {upload}
720p - source  1080p
360p - source 720p
That's a conversion source chained from bigger to lower.

I would be very useful for faster conversion BUT it has a downside: If one quality fails then all that follow will fail (domino effect).
This is why it didn't make it into the release.
But now you can recreate missing qualities in admin -> edit video. So no biggie!

Here is my take codewise:

videocron.php file

find

foreach ($to as $call) {


BEFORE add

krsort($to);


This will sort descending the qualities.

bit lower find:

$command .=$out.';';


AFTER it add:

$input = $final.'-'.$call.'.mp4'; /* Reset source to last (bigger) conversion) */


I'm releasing a plugin to handle a bit better (my personal take) the video conversion for less-power hosts.

If you test or use this please give feedback.  ;)
Important!
The forums are not intended for support! There is Dedicated support available.
The troubleshooting can help a lot!
  •  

PHPVibe RTopic starter

Important!
The forums are not intended for support! There is Dedicated support available.
The troubleshooting can help a lot!
  •  

Similar topics (1)

Replies: 39
Views: 5123