Thread: PHP-Based Offloader

Reply to Thread
Results 1 to 6 of 6
  1. #1 PHP-Based Offloader 
    Senior Member
    Join Date
    Feb 2008
    Location
    EHT, New Jersey, USSA
    Posts
    436
    I'm looking at programing a PHP based off-loading system and I'm wondering if it be possible to get a PHP program to talk to the RED-Drive for formatting/deleting footage and the like? Anything in the SDK for this sort of thing?
    Reply With Quote  
     

  2. #2  
    Senior Member
    Join Date
    Apr 2007
    Posts
    290
    I think it would be possible with either file IO, "exec" or "system" commands. I've managed files through php before. I probably have the code in my libraries. Let me know if you would like to collaborate on this. I'm interested.
    Best Regards,
    David Didato
    magicdogcreative.com: concept – write - direct – shoot – edit – sit – stay
    Epic and Red MX
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Mar 2008
    Location
    Los Angeles, CA
    Posts
    699
    The thing about a php-based system is that you generally have a huge overhead with that. Youd need the server (apache) to process the requests and apache generally doesnt like to hang around while things take time. In addition you'd have large amounts of data flowing, which apache/php isnt very good at either. (If you think about it apache and similar servers werent designed to handle 2Gb input streams). And of course youd have a lot of setup youd need to do to if you want to replicate the downloading station across many systems.

    We went with C to avoid those issues entirely.

    Im not allowed to discuss what is in or not in the SDK, but if you want to use PHP with the SDK you wont get very far.
    Reply With Quote  
     

  4. #4  
    Senior Member
    Join Date
    Feb 2008
    Location
    EHT, New Jersey, USSA
    Posts
    436
    Quote Originally Posted by Photocon View Post
    We went with C to avoid those issues entirely.
    Yeah, I decided the samething last night. I was just thinking PHP so it be browser based and therefore platform independent; but I guess it's not that hard to get it to work on both PC and MAC via C++. Although I will be using PHP for a web-based preview system to upload proxy versions of material as well as other information. As well as working in a Schedule System, so call sheets can be done electronically, just check the website the night before. And possible a budget system for producers to keep track of expenses. So I'll need a way to cross from C++ to PHP to move files up into a MySQL database (metadata, links to proxy clips, and what not) and webserver to upload the clips.

    David, would you be interested in working on the C++ to PHP and MySQL side of things? I'm still working on finding people willing to work on the primary system, that can code C++.
    Reply With Quote  
     

  5. #5  
    Senior Member JanneJansson's Avatar
    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    960
    Probably something like this:
    In a file called "download.php"

    <?php
    echo "offloading REDDRIVE...";
    exec('mount -t fat /dev/sdb1 /mnt/reddrive');
    exec('rsync -a /mnt/reddrive/ /mnt/driveDownloadTo/');
    exec('umount /dev/sdb1');
    echo "DONE!";
    ?>
    JJ
    Reply With Quote  
     

  6. #6  
    Senior Member
    Join Date
    Feb 2008
    Location
    EHT, New Jersey, USSA
    Posts
    436
    What would you think if I worked in LTO system control right into the program for backing up right after importing? Plug in a LTO unit, plug in RED-Drive or CF Card, import material, back-up RAW files, then work with the files themselves all right in the interface.

    Also looking at doing a Video Assist system... Stand Alone and intergrated into the off-loader/R3D file/ LTO back-up control app.
    Reply With Quote  
     

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts