Reading FLV Dimensions - Width and Height

Discussion in 'PHP' started by scottmweaver, Jan 30, 2007.

  1. #1
    Hey guys,

    I'm writing a script to verify that an uploaded FLV file is the right dimensions. I'm trying to use the GetID3 version, but I can't quite figure out the right syntax.

    So far I'm getting the following when I attempt to run it through the class:

    Array
    (
        [fileformat] => flv
        [flv] => Array
            (
                [header] => Array
                    (
                        [signature] => FLV
                        [version] => 1
                        [hasAudio] => 1
                        [hasVideo] => 1
                    )
    
            )
    
        [playtime_seconds] => 0
        [audio] => Array
            (
                [codec] => 
                [sample_rate] => 
                [bits_per_sample] => 
                [channels] => 1
                [lossless] => 1
                [dataformat] => flv
            )
    
        [video] => Array
            (
                [codec] => 
                [dataformat] => flv
                [lossless] => 
            )
    
    )
    Code (markup):
    But this tells me nothing I need to know!

    Does anyone have any experience trying to do what I'm attempting here?? :)
     
    scottmweaver, Jan 30, 2007 IP