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

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/c/o/collective.flowplayer-4.1/src/collective/flowplayer/events.py   collective.flowplayer(Download)
 
from collective.flowplayer.interfaces import IMediaInfo, IAudio, IVideo
from collective.flowplayer.metadata_extraction import parse_raw
from collective.flowplayer.metadata_extraction import scale_from_metadata
 
            handle = self.file_handle
            try:
                metadata = parse_raw(handle)
                height, width = scale_from_metadata(metadata)
                handle.close()

src/c/o/collective.flowplayer-4.1/src/collective/flowplayer/dexterity.py   collective.flowplayer(Download)
from collective.flowplayer.events import VIDEO_EXTENSIONS
from collective.flowplayer.events import AUDIO_EXTENSIONS
from collective.flowplayer.metadata_extraction import parse_raw
from collective.flowplayer.metadata_extraction import scale_from_metadata
from collective.flowplayer.interfaces import IMediaInfo
    elif ext in VIDEO_EXTENSIONS:
        f = info.value.open()
        metadata = parse_raw(f)
        height, width = scale_from_metadata(metadata)
        anno[MEDIA_INFO_KEY] = dict(audio_only=False, width=width, height=height)

src/c/o/collective.flowplayer-4.1/src/collective/flowplayer/tests/test_metadata_profiling.py   collective.flowplayer(Download)
        # parse
        file_handle.seek(0)
        metadata = metaex.parse_raw(file_handle)
        file_handle.close()
        assert((288, 360) == metaex.scale_from_metadata(metadata))