How to play rtsp stream in android using ffmpeg

msj picture msj · Jun 21, 2016 · Viewed 9.4k times · Source

I want to play rtsp stream using ffmpeg library. I was buid ffmpeg for android and also I try to save rtsp stream to file it's work fine. my command ffmpeg -i rtsp://@URL -acodec copy -vcodec copy abc.mp4

now I want to view my ip camera live stream video using ffmpeg. Have any ideas.

Thanks for ur time.

Answer

Fay Zan picture Fay Zan · Oct 7, 2016

Did you try using this command?

ffplay -rtsp_transport http rtsp://@URL -acodec copy -vcodec copy

I got it from this link

https://www.ffmpeg.org/ffmpeg-protocols.html#rtsp