Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Montreal, QC
    Posts
    340
    Thanks
    3
    Thanked 2 Times in 2 Posts

    [Resolved] Finding Flash Video Size with PHP

    Hi,

    Is there a way to find the frame size of a SWF file using PHP? I'd like to be able to feed my PHP script a SWF video, (or the filename of that video), and have it retrieve the height & width of the video, (other info might be cool too but not essential).

    I was looking around at the PHP website and found the Ming extension and the libswf module but they appear to be for creating flash, not finding more about it. Also, they both need to be installed with PHP, and the PHP installation I have been given to work with for this project doesn't have either one installed.

    Any tips, techniques, or pointers would be great. Thanks in advance,

    John
    Last edited by johnnyb; 11-03-2006 at 11:41 PM.
    Search for Laughter or Just Search?
    GiggleSearch.org
    Blog: www.johnbeales.com
    All About Ballet: www.the-ballet.com

  • #2
    Regular Coder
    Join Date
    Apr 2003
    Location
    Montreal, QC
    Posts
    340
    Thanks
    3
    Thanked 2 Times in 2 Posts
    I think I found a solution:
    PHP's getimagesize function is able, (according to the documentation), to tell the size of a SWF.

    Thanks a lot.
    Search for Laughter or Just Search?
    GiggleSearch.org
    Blog: www.johnbeales.com
    All About Ballet: www.the-ballet.com


  •  

    Posting Permissions

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