F fishwolf Well-Known Member Licensed User Longtime User Oct 19, 2017 #1 What is the best and simple solution in b4a for play a stream rtsp in mjpg format? i'm using a sport cam, like sj4000 i search on forum, but are old threads. i have tried wit VideoView, but doesn't work. Thanks Code: Copy vvv.Initialize("vvv") Activity.AddView(vvv,0,0,Activity.Width,Activity.Height) vvv.LoadVideo("rtsp", "rtsp://192.168.1.1/MJPG?W=640&H=360&Q=50&BR=3000000") vvv.Play
What is the best and simple solution in b4a for play a stream rtsp in mjpg format? i'm using a sport cam, like sj4000 i search on forum, but are old threads. i have tried wit VideoView, but doesn't work. Thanks Code: Copy vvv.Initialize("vvv") Activity.AddView(vvv,0,0,Activity.Width,Activity.Height) vvv.LoadVideo("rtsp", "rtsp://192.168.1.1/MJPG?W=640&H=360&Q=50&BR=3000000") vvv.Play
W walt61 Well-Known Member Licensed User Longtime User Oct 20, 2017 #3 @moster67 's FFmpeg_b4a works fine for rtsp streams; I haven't tried the one @NJDude pointed at yet. Upvote 0
F fishwolf Well-Known Member Licensed User Longtime User Oct 20, 2017 #4 ExoPlayer don't support rtsp format FFMPeg wrapper doesn't work with my rtsp streaming (work fine with sample video) VLC wrapper doesn't work with my rtsp streaming (work fine with sample video) VLC application work fine with my streaming it's a rtsp flow in motion jpeg, i think a simple encode. suggestion? Upvote 0
ExoPlayer don't support rtsp format FFMPeg wrapper doesn't work with my rtsp streaming (work fine with sample video) VLC wrapper doesn't work with my rtsp streaming (work fine with sample video) VLC application work fine with my streaming it's a rtsp flow in motion jpeg, i think a simple encode. suggestion?
F fishwolf Well-Known Member Licensed User Longtime User Oct 20, 2017 #5 Syd Wright said: You may want to try Moster67's Vitamio library (version 5 or higher). I prefer it over FFMpeg and use it all the time for TV streams and videos. Click to expand... this library is not Syd Wright said: You may want to try Moster67's Vitamio library (version 5 or higher). I prefer it over FFMpeg and use it all the time for TV streams and videos. Click to expand... Vitamio5 it's available only to donation. Vitamio4 doen't work file. It's strange that all libraries doen'st work fine. Upvote 0
Syd Wright said: You may want to try Moster67's Vitamio library (version 5 or higher). I prefer it over FFMpeg and use it all the time for TV streams and videos. Click to expand... this library is not Syd Wright said: You may want to try Moster67's Vitamio library (version 5 or higher). I prefer it over FFMpeg and use it all the time for TV streams and videos. Click to expand... Vitamio5 it's available only to donation. Vitamio4 doen't work file. It's strange that all libraries doen'st work fine.
moster67 Expert Licensed User Longtime User Oct 20, 2017 #6 Maybe a codec issue? If you want you can send me the streaming link by PM and I can check on Monday. Upvote 0
NJDude Expert Licensed User Longtime User Oct 20, 2017 #7 A lot of water has gone to the see Click to expand... I don't like being that guy but, it should be: "A lot of water has gone to the sea". Upvote 0
A lot of water has gone to the see Click to expand... I don't like being that guy but, it should be: "A lot of water has gone to the sea".
KZero Active Member Licensed User Longtime User Oct 20, 2017 #8 the native videoview supports rtsp , are you sure this url is valid rtsp://192.168.1.1/MJPG?W=640&H=360&Q=50&BR=3000000 did you tried to open it in VLC ? Upvote 0
the native videoview supports rtsp , are you sure this url is valid rtsp://192.168.1.1/MJPG?W=640&H=360&Q=50&BR=3000000 did you tried to open it in VLC ?
F fishwolf Well-Known Member Licensed User Longtime User Oct 21, 2017 #9 KZero said: the native videoview supports rtsp , are you sure this url is valid rtsp://192.168.1.1/MJPG?W=640&H=360&Q=50&BR=3000000 did you tried to open it in VLC ? Click to expand... yes, with vlc application work fine with vlc library doesn't work fine Upvote 0
KZero said: the native videoview supports rtsp , are you sure this url is valid rtsp://192.168.1.1/MJPG?W=640&H=360&Q=50&BR=3000000 did you tried to open it in VLC ? Click to expand... yes, with vlc application work fine with vlc library doesn't work fine
KZero Active Member Licensed User Longtime User Oct 21, 2017 #10 MJPG not supported , did you try this lib https://www.b4x.com/android/forum/threads/a-small-vidéo-mjpeg-librarie-for-ip-cam.15540/ the port for RTSP is 1935 also note that such cameras only support single connection so don't try while you watching the video in VLC Upvote 0
MJPG not supported , did you try this lib https://www.b4x.com/android/forum/threads/a-small-vidéo-mjpeg-librarie-for-ip-cam.15540/ the port for RTSP is 1935 also note that such cameras only support single connection so don't try while you watching the video in VLC
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2017 #11 You can also use the mjpeg decoder: https://www.b4x.com/android/forum/threads/73702/#content Upvote 0
F fishwolf Well-Known Member Licensed User Longtime User Oct 24, 2017 #12 Erel said: You can also use the mjpeg decoder: https://www.b4x.com/android/forum/threads/73702/#content Click to expand... can i use from B4A (android)? i don't find the library for MJPEG object. Thanks Upvote 0
Erel said: You can also use the mjpeg decoder: https://www.b4x.com/android/forum/threads/73702/#content Click to expand... can i use from B4A (android)? i don't find the library for MJPEG object. Thanks
F fishwolf Well-Known Member Licensed User Longtime User Oct 24, 2017 #13 KZero said: MJPG not supported , did you try this lib https://www.b4x.com/android/forum/threads/a-small-vidéo-mjpeg-librarie-for-ip-cam.15540/ the port for RTSP is 1935 also note that such cameras only support single connection so don't try while you watching the video in VLC Click to expand... doesn't work fine, go to in crash Code: Copy mycam.CAM("192.168.1.1", 1935, "/MJPG?W=640&H=360&Q=50&BR=3000000") Upvote 0
KZero said: MJPG not supported , did you try this lib https://www.b4x.com/android/forum/threads/a-small-vidéo-mjpeg-librarie-for-ip-cam.15540/ the port for RTSP is 1935 also note that such cameras only support single connection so don't try while you watching the video in VLC Click to expand... doesn't work fine, go to in crash Code: Copy mycam.CAM("192.168.1.1", 1935, "/MJPG?W=640&H=360&Q=50&BR=3000000")
Erel B4X founder Staff member Licensed User Longtime User Oct 24, 2017 #14 fishwolf said: can i use from B4A (android)? i don't find the library for MJPEG object. Click to expand... Yes. There is no library. It is implemented in the class code and it is supported by B4A, B4J and B4i. Upvote 0
fishwolf said: can i use from B4A (android)? i don't find the library for MJPEG object. Click to expand... Yes. There is no library. It is implemented in the class code and it is supported by B4A, B4J and B4i.
F fishwolf Well-Known Member Licensed User Longtime User Oct 29, 2017 #15 Erel said: Yes. There is no library. It is implemented in the class code and it is supported by B4A, B4J and B4i. Click to expand... ok, i have tried to convert in a B4A project, but doesn't work fine, don't call the "mj1_frame" function i have tried also with 554 port Code: Copy Sub Process_Globals Private mj1 As MJPEG End Sub Sub Globals Private ImageView1 As ImageView End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("main") mj1.Initialize(Me, "mj1") mj1.Connect("rtsp://192.168.1.1/MJPG?W=640&H=360&Q=50&BR=3000000", 1935) Log("Activity_Create") End Sub Sub mj1_frame(bmp As Bitmap) Log("mj1_frame") ImageView1.Bitmap = bmp End Sub Upvote 0
Erel said: Yes. There is no library. It is implemented in the class code and it is supported by B4A, B4J and B4i. Click to expand... ok, i have tried to convert in a B4A project, but doesn't work fine, don't call the "mj1_frame" function i have tried also with 554 port Code: Copy Sub Process_Globals Private mj1 As MJPEG End Sub Sub Globals Private ImageView1 As ImageView End Sub Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("main") mj1.Initialize(Me, "mj1") mj1.Connect("rtsp://192.168.1.1/MJPG?W=640&H=360&Q=50&BR=3000000", 1935) Log("Activity_Create") End Sub Sub mj1_frame(bmp As Bitmap) Log("mj1_frame") ImageView1.Bitmap = bmp End Sub
Erel B4X founder Staff member Licensed User Longtime User Oct 30, 2017 #16 See the example. You shouldn't add the scheme (rtsp://). Upvote 0
F fishwolf Well-Known Member Licensed User Longtime User Oct 31, 2017 #17 Erel said: See the example. You shouldn't add the scheme (rtsp://). Click to expand... it's equal i have sniffed the traffic from original app and action cam the port is the 554 for init protocol, but after the stream is 15740 port. also if i open this port, doesn't work fine Code: Copy RTSP/1.0 200 OK CSeq: 3 Date: 2012/1/1 Content-Base: rtsp://192.168.1.1/MJPG?W=640&H=360&Q=50&BR=3000000/ Content-Type: application/sdp Content-Length: 322 v=0 o=- 930519206 1 IN IP4 192.168.1.1 s=Motion JPEG. Streamed by iCatchTek. i=MJPG t=0 0 a=tool:iCatchTek a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:Motion JPEG. Streamed by iCatchTek. a=x-qt-text-inf:MJPG m=video 0 RTP/AVP 26 c=IN IP4 0.0.0.0 b=AS:12288 a=frmerate:30.0 a=control:track1 Last edited: Oct 31, 2017 Upvote 0
Erel said: See the example. You shouldn't add the scheme (rtsp://). Click to expand... it's equal i have sniffed the traffic from original app and action cam the port is the 554 for init protocol, but after the stream is 15740 port. also if i open this port, doesn't work fine Code: Copy RTSP/1.0 200 OK CSeq: 3 Date: 2012/1/1 Content-Base: rtsp://192.168.1.1/MJPG?W=640&H=360&Q=50&BR=3000000/ Content-Type: application/sdp Content-Length: 322 v=0 o=- 930519206 1 IN IP4 192.168.1.1 s=Motion JPEG. Streamed by iCatchTek. i=MJPG t=0 0 a=tool:iCatchTek a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:Motion JPEG. Streamed by iCatchTek. a=x-qt-text-inf:MJPG m=video 0 RTP/AVP 26 c=IN IP4 0.0.0.0 b=AS:12288 a=frmerate:30.0 a=control:track1
Erel B4X founder Staff member Licensed User Longtime User Nov 1, 2017 #18 mjpeg decoder is a simple implementation of a http client. It will not follow redirections. Upvote 0
F fishwolf Well-Known Member Licensed User Longtime User Nov 2, 2017 #19 Erel said: mjpeg decoder is a simple implementation of a http client. It will not follow redirections. Click to expand... Any suggestion for this simple problem? i have tried vlc library, i have see that vlc application work fine, but example work fine only with http stream Upvote 0
Erel said: mjpeg decoder is a simple implementation of a http client. It will not follow redirections. Click to expand... Any suggestion for this simple problem? i have tried vlc library, i have see that vlc application work fine, but example work fine only with http stream