How to set ffmpeg option '-protocol_whitelist file,udp,rtp' in VideoCapture?
I am trying to read an .sdp
file with VideoCapture
but ffmpeg throws error:
Protocol 'rtp' not on whitelist 'file,crypto'!.
I can set this flag in ffplay
easily: ffplay -protocol_whitelist file,udp,rtp -i ./stream.sdp
.
How do I set this in VideoCapture
?
true, udp is not supported, and it can't read sdp files either.
I am having the same issue, someone please answer
any answers?