1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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