Welcome, Guest
Please Login or Register.    Lost Password?

How to trigger video conversion
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: How to trigger video conversion
#584
How to trigger video conversion 2 Years, 3 Months ago Karma: 0
I have made some customizations appropriate to our secure environment.
Most everything is working fine - except the most important part, queued videos conversion. My videos just sit in queued status...

I am wondering if there is a technique I might employ to manually trigger conversion. As such I can better debug the problem, get some results to the screen and figure out where I am messing up..

Any insight is greatly appreciated!



---more info, what I have done mainly is move all the media storage out of the html root for security. It's one of our business requirements.. I am using a symlink to display and the absolute path for file reads and writes. I noticed that buffer folder might be giving me problems - i do currently have it (and all related folders) set to 777.... If I could just take control of the debugging I could likely figure out what is happening.

I have confirmed that upload is working fine and that the convertIt.php is being executed (@exec ("env -i $cmd_php > /dev/null &");) and returning value of 1.. I attempted going to:

http:mysite.com//components/com_jvideodirect/tools/transformer/convertIt.php?k=Ww01s3CF09mLrenk5E2x

Where Ww01s3CF09mLrenk5E2x is the file sitting in my buffer folder.
After quite a while it returns:

Meta Injection FailedMeta

Apparently that worked! Hitting that url manually - updated all my queued videos to done and they are displaying... Any thoughts what the heck the problem could be?

If I just let them sit there [even for hours], they don't process.
hzane
(Free Member)

Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/10/30 15:24 By hzane.
The administrator has disabled public write access.
 
#615
Re:How to trigger video conversion 2 Years, 3 Months ago Karma: 0
Nevermind... Figured it out!

My problem was very specific to my customizations..

Here's a tip though if anyone is having problems in the same general area as me.

Run the exec from terminal - and see if that doesn't instantly make the problem ridiculously easy...


word!
hzane
(Free Member)

Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/11/03 16:50 By hzane.
The administrator has disabled public write access.
 
#616
Re:How to trigger video conversion 2 Years, 3 Months ago Karma: 8
"exec" is also treated as a function to be disabled in PHP.ini

JVD uses "exec" to bring the long conversion process to background, so that users don't have to wait in the frontend.

Besides "exec", "buffer" folder located is also very important. All codes written outside joomla framework will dip into it and look for security key before proceed. Make sure "buffer" folder is accessible.

It will be generated automatically, when first use and permission is properly set. However, in some occasion it doesn't.

If conversion or fetcher, doesn't fire off, it is worthwhile to take a look at permission setting of this folder.
ethan
jVideoDirect staff
Posts: 422
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#631
Re:How to trigger video conversion 2 Years, 3 Months ago Karma: 0
Those are good tips.

I had added an include script so that I could centrally manage my directory structure. It partially relied on SERVER vars which was useless for auto conversion.
Hence the reason manually hitting the convertIt script worked fine.
Simple solution - passing the value along as an exec arg.
In hindsight so obvious - but I didn't get clued in until printing the exec command out then pasting it straight into terminal. In which case php was kind enough to report the problem to me.


Thanks for putting out this great extension btw.

I especially love the video preview carousel.

Great work!
hzane
(Free Member)

Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#632
Re:How to trigger video conversion 2 Years, 3 Months ago Karma: 8
Good on you ...
ethan
jVideoDirect staff
Posts: 422
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1045
Re:How to trigger video conversion 2 Years, 2 Months ago Karma: 0
how to enable exec in php.ini?

I have exactly the same problem as hzane: the videos stay 'quequed' without triggering the convertor. I wonder whether hzane pls elaborate your solution? thanks!
RCholic
(Free Member)

Junior Boarder
Posts: 34
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/11/17 20:24 By RCholic.
The administrator has disabled public write access.
 
#1046
Re:How to trigger video conversion 2 Years, 2 Months ago Karma: 8
disable_functions is the parameter you are looking for.

1. edit directly in php.ini

2. add custom php.ini in domain root

3. use .htaccess

2 and 3 depends on server settings ...
ethan
jVideoDirect staff
Posts: 422
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
Moderators: cassie, tanny, ethan