How to play rtsp stream in android using ffmpeg

How to play rtsp stream in android using ffmpeg



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


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.





Hi msj i am working on project which having the same requirement u have but i am unable to save the streaming video, I am using this (github.com/WritingMinds/ffmpeg-android-java) library. can you please help me what steps you follow to make ffmpeg library, Thanks.
– sumit singh
Jun 22 '16 at 13:05





use ffmpeg -i rtsp://@URL -acodec copy -vcodec copy abc.mp4 command. give your rtsp url to @url and also output path to abc.mp4. it's save stream as video file.
– msj
Jun 23 '16 at 4:34


ffmpeg -i rtsp://@URL -acodec copy -vcodec copy abc.mp4





Yes , i use the same command but is not working for rtsp stream, its works only on local videos. Can you suggest which ffmpeg library you used.
– sumit singh
Jun 23 '16 at 4:58





I follow to build ffmpeg roman10 tutorial and rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov link work fine. Have you any idea to play rtsp stream in android
– msj
Jun 23 '16 at 5:40



rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov





Thanks for your support, sorry i have no idea to play rtsp stream in android.
– sumit singh
Jun 23 '16 at 5:53




2 Answers
2



Did you try using this command?



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


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



I got it from this link



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



To play an rtsp stream in Android: if you don't wish to use the command line ffmpeg tools but access the ffmpeg library directly I recommend; https://github.com/potterhsu/RtspLibrary.



(Note if you wish to save the rtsp stream to disk using the ffmpeg command line tools I recommend https://github.com/bravobit/FFmpeg-Android).






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)