python - Is there an alternative to PyMedia -
is there alternative pymedia decode different video formats , able extract frames images further processing?
currently have able following (not working code extract, give idea):
demuxer = muxer.demuxer(format) streams = demuxer.parse(open(video).read(buffer_size)) codec = vcodec.decoder(codec) stream in streams: frame = codec.decode(stream[1]) fdata = frame.convert(2) img = image.fromstring("rgb", fdata.size, fdata.data) # ...further processing of image...
you can try pyffmpeg https://code.google.com/p/pyffmpeg/...
Comments
Post a Comment