Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def what(fn):
    with open(fn, 'rb') as f:
        st = SWFStream(f)
        first_hdr = None
        vbr = False
        totaltime = 0
        for hdr in iter(lambda: get_hdr(st), None):
            if DEBUG: print hdr
            if first_hdr is None:
                first_hdr = hdr
            if first_hdr['bitrate'] != hdr['bitrate']:
                vbr = True
            totaltime += hdr['time']
        
        if first_hdr is None:
            return None
        
        rc = dict(first_hdr)
        rc['time'] = totaltime
        rc['bitrate'] /= 1000.0
        rc['samplerate'] /= 1000.0
        rc['vbr'] = vbr
        return rc
        


src/f/l/flashover-HEAD/swfback.py   flashover(Download)
        return dict(snd_type = tt, snd_rate = rate, snd_chans = chans, snd_frames = frames, snd_bits = bits_per_samp)
 
    hdr = mp3hdr.what(snf)
    if hdr:
        return hdr