Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Here is a tough one. . .

  1. #1
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default Here is a tough one. . .

    1,000,000 bonus points to whoever can get this one:

    I need a way to re-format an .avi/.wmv/.mpeg file to a flash movie file. And, I need it to be done over the internet when someone submits a video. I would prefer it to work with PHP if at all possible, but if you know of another way, let me know.

    BTW You don't need to spend time writing the script. I am just interested in finding out how to do it. (But if you want to post a script, that would be great too!)

    Thanks everyone!
    Last edited by Jas; 09-28-2007 at 07:39 PM.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Very hard thing you've decided on there.

    I have no idea where to start.

    You could look through php.net's functions, such as the ming library (flash stuff), but I'm confident that would prove futile.

    Your only real chance here is using an extension. Google... google lots, and good luck.

    Converting to flv is hard enough with freeware/shareware you can download... wouldn't want to play with it from the command line.

    If you can't find anything, then I guess the next step would be one of the following:
    1. Write it yourself by using the documentation of the formats, most of which is closed source (...fun). This isn't PHP. It's probably Java or C++ or CGI, writing our own server program, then configuring it to run. (I guess you could use PHP, but it would likely be difficult to access the formats with it.)
    2. Write some sort of super-macro for the server that will run shareware or freeware on your system and automatically convert the video. That seems fairly easy, compared to the other option, if you can find a way to write a program that will simulate user input (no clue there).

    ...3. Just give up on this (unfortunately), and upload, then create a queue which you can later access and convert manually.


    As I've said before in several other threads, this is what the full time expert staff at youtube does. It's a complex difficult task.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    im sorry. but I don't think there is a website that has this capabitility... if you had a flash program you could do this, but I dont think your going to find one anytime soon.... srryz
    Hey new design new look, goto xudas for personal webdsign help.. (:

  4. #4
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Hmm. How do sites like YouTube do it? I'm guessing a Java program (or C++) on the server? (I think thats what you are talking about djr33?)
    Last edited by Jas; 09-29-2007 at 10:04 PM.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It's a program on the server the converts it. It may be a macro or a standalone, both of the options I described above. I'd assume a standalone.
    I really have no idea how it works, but you can imagine the steps involved, from reading the format to conversion to writing, etc.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    You changed your picture! -Had to say it.
    I found a function called passthru() and one called system(), but I don't understand what they do. First, what to they do, and second, could these help if I used a converter that could go through the cmd? If so, then how might I go about it. If not, I heard-- through much google searching-- that you can do something similar with the php using a cmd capable converter. Any ideas? (I can try to find those sources again if they would help)

    Thanks!
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    They're all possibilities, but they all sound incredibly hard to me.
    Using passthru() may work in itself, but you'd need to find what you're passing through, etc.
    That is the right direction, probably, as I said with building some sort of macro on the server, but it's also going to be tough.
    However, if you do figure it out, that's cool.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #8
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Are you aware of any resources on the subject? I have googled, but strange enough, it's not a hot topic lol. Anyway, if you know of anything, let me know, and thanks for the help.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  9. #9
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    well this place actually does the oppisite. take a flv and make it an avi. they have release the source, but maybe they have somethin that does what u want: http://vixy.net/

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Very nice. That will be a great reference and might even help with some code.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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