draw_edges() should probably be moved somewhere else to avoid mpegvideo*enc* dependency to decoders.
Attach a file by drag & drop or click to upload