I think you should try this. ffmpeg will handle the different media source in avformat_open_input. You can give the rtsp url as the argument to the demo. Wish it helps. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140730/7bbd588e/attachment.html>