Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Python cleaning up avformat_network_init() message

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.