Python cleaning up avformat_network_init() message

asked 2013-07-10 17:48:28 -0500

smhall05 gravatar image

How do I go about cleaning up:

Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.

The code that is triggering this is below. If I pass in a local jpeg it is clean, when I pas in a url of the jpeg, I get the above.

link = sys.argv[1] cap = cv2.VideoCapture(link) if( cap.isOpened() ): ret, im = cap.read()

Questions:

1) What can I do to clean up this warning message, processing the image from the url quickly is of high importance and I suspect I am killing performance with this message. There are about 10 messages in a row of the same text. Thank you.

edit retag flag offensive close merge delete