How to play rtsp stream in android using ffmpeg

10,111

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

Share:
10,111
msj
Author by

msj

Updated on June 05, 2022

Comments

  • msj
    msj about 2 years

    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.