tamchau2809 / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

SipDroid video streaming problem #223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi experts:
   We are testing SipDroid on HTC G1(android 1.6 donut firmware), we built
a ad hoc network with two HTC G1 phone and startup a VoIP call via SipDroid
with peer to peer mode, after the call was established, we launched the
video functionality of SipDroid, the video streaming can be transmitted via
UDP port 21070 (we can be sure from minitoring the network data via
WireShark), the G1 prompt the error window with "can not playback video",
the error message from logcat is like that:

I/ActivityManager(  568): Starting activity: Intent {
act=android.intent.action.VIEW dat=rtsp://192.168.208.233/21070/sipdroid
cmp=com.android.camera/.MovieView }
D/dalvikvm(  761): threadid=25 wakeup: interrupted
D/dalvikvm(  568): GC freed 3311 objects / 151832 bytes in 129ms
I/WindowManager(  568): Setting rotation to 1, animFlags=0
I/WindowManager(  568): Config changed: { scale=1.0 imsi=0/0 loc=zh_CN
touch=3 keys=2/1/2 nav=3 orien=2 layout=18}
W/WindowManager(  568): performLayoutAndPlaceSurfacesLocked called while in
layout
W/WindowManager(  568): performLayoutAndPlaceSurfacesLocked called while in
layout
D/StatusBar(  568): updateResources
W/IInputConnectionWrapper(  761): showStatusIcon on inactive InputConnection
V/VideoView(  811): reset duration to -1 in openVideo
D/MediaPlayer(  811): Couldn't open file on client side, trying server side
E/PlayerDriver(  542): Command PLAYER_INIT completed with an error or info
PVMFFailure
E/MediaPlayer(  811): error (1, -1)
I/ActivityManager(  568): Displayed activity com.android.camera/.MovieView:
1025 ms (total 1025 ms)
E/MediaPlayer(  811): Error (1,-1)
D/VideoView(  811): Error: 1,-1
W/PlayerDriver(  542): PVMFInfoErrorHandlingComplete
E/MediaPlayer(  811): stop called in state 0
E/MediaPlayer(  811): error (-38, 0)

I have learned that the H.263 format can be supported by OpenCore.
Is there somebody can help us about this problem? is it related to RTSP of
OpenCore or any other possibilities?

Thanks and best regards.

Tu

Original issue reported on code.google.com by tuqingh...@gmail.com on 8 Dec 2009 at 3:26

GoogleCodeExporter commented 9 years ago

Original comment by pmerl...@googlemail.com on 9 Dec 2009 at 9:59

GoogleCodeExporter commented 9 years ago
in opencore, rtsp isnt support by default. you need to 
#define BUILD_STREAMING_MANAGER_NODE 1 in pv_config.h to enable this function
in opencore build. this issue has nothing to do with sipdroid.

Original comment by yuxiao...@gmail.com on 14 Dec 2009 at 8:53

GoogleCodeExporter commented 9 years ago
thanks yuxiao, my testing phone is G1 from HTC with 1.5 firmware, and I also 
tested
with 1.6 firmware from hiapk.com, the problem always occurs, do you mean we 
have to
cross compile the opencore libraries to G1 by ourselves?

thanks and best regards.

Original comment by tuqingh...@gmail.com on 14 Dec 2009 at 9:27

GoogleCodeExporter commented 9 years ago
yes, at least it works for me.

Original comment by yuxiao...@gmail.com on 20 Dec 2009 at 1:12

GoogleCodeExporter commented 9 years ago
thanks yuxiao
I have try to #define BUILD_STREAMING_MANAGER_NODE 1 in pv_config.h in android
1.6(donut), but it also can't play vedio with the sipdroid. 
which version you had used? Android 1.5 or Android 1.6?
thank you very much...
(by the way,are you chinese?)

Original comment by mhwg...@gmail.com on 27 Dec 2009 at 1:28

GoogleCodeExporter commented 9 years ago
sorry for the misleading because the previous message. I think I have made some 
mistakes in testing. in my phone, it also doesnt work.
I checked the source code of VideoCamera.java and inCallscreen.java
in VideoCamera.java, it encodes video data as 103 (h263) and sent via rtp 
packet.
in inCallscreen.java, it receives encoded video data, and sent as intent to let 
mediaplayer to play it. (rtsp://xxx.xxx.xxx/port/Sipdroid)==>
(rtsp://xxx.xxx.xxx:port/Sipdroid), I doubt whether android mediaplayer could 
play 
it. I think android could play rtsp data source where it has rtsp server which 
could 
answer rtsp protocol inquiry.  for example 
url='rtsp://rtsp.youtube.com/youtube/videos/JzqumbhfxRo/video.3gp'

Original comment by yuxiao...@gmail.com on 5 Jan 2010 at 3:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is correct and the way that RTSP streaming works on PBXes is that they 
have an 
RTSP server setup to stream the content to the phone. So right now I don't 
think the 
functionality is built into MediaPlayer on Android to take an RTP (not RTSP) 
stream 
and play it unless it's wrapped by RTSP.

Also I think this bug was incorrectly marked to be a duplicate of issue 106, 
however 
this is NOT the case, they are completely different (that is about not being 
able to 
stop the video), this is about not being able to play the video unless it's 
from 
PBXes.org.

Original comment by andy.blu...@gmail.com on 24 May 2010 at 8:45

GoogleCodeExporter commented 9 years ago
Maybe 3gp fileformat can't support realtime streaming.3gp/3g2 file is consist 
of fragment,many fragments making a file,and mediaplayer can't start to play 
until it has received at least one whole fragment.But on recorder side, the 
file header and each fragment's header which contains offset information of 
frames are created at the end of recording.So in my opinion you can use 3g2 
file and rtsp to do streaming  in which the 3g2 files have already been 
restored in the server ,but not realtime streaming in which you have to play 
while recording. 

Original comment by liuqz....@gmail.com on 13 Jun 2010 at 7:52

GoogleCodeExporter commented 9 years ago
I have been lately trying to run video on Sipdroid with my FreeSWITCH server 
and after investigation of SDPs thought Sipdroid gives wrong sdp on answering 
the call not including video codec... and then I started searching Issues list 
and relized it's not the case.

So I found this (Comments: 6,8) which explains current status and how Sipdroid 
with video works - but only with pbxes.org.

Coudn't displaing RTP video stream be implemented in Sipdroid itself not using 
Android libraries which apparently doesn't support RTP streams (obviously).

I am also sure this issue is not a duplicate of issue 106.

Having video feature using pbxes.org is great but it would be neat to have it 
working on any possible server. Also it now works one-way when someone calls 
from Sipdroid to X-lite or Linphone on a computer (using own Freeswitch server) 
but not the other way when call is originated from X-lite or Linphone. Then 
"Send Video" button on Sipdroid does not send video because Sipdroid's SDP when 
answering the call ommits the video codec (as it is not supported of course).

Original comment by piotrek....@gmail.com on 17 Jun 2010 at 9:34

GoogleCodeExporter commented 9 years ago
Issue 409 has been merged into this issue.

Original comment by piotrek....@gmail.com on 21 Jun 2010 at 2:06

GoogleCodeExporter commented 9 years ago
anybody can tell me how sipdroid play the video rtp stream received? I searched 
all web site, all issues and i don't find any information about this field.

best Regards,
André Barbosa.

Original comment by afilipeb...@gmail.com on 2 Nov 2010 at 9:27

GoogleCodeExporter commented 9 years ago
I have been testing sipdroid the last few days, and loving it.  But I just 
tried my first video call with sipdroid.

I am surprised and saddened that the author chose to do a unique, non-standard 
RTSP implementation.  This will never work with Cisco video phones (or any 
other SIP video clients.  Or other SIP providers.  Or Asterisk.).  I could do 
packet traces to figure out how to install and configure a sipdroid-compatible 
RTSP server, but then I'd still only have a solution that worked with sipdroid 
and nothing else.

The PBXes marketing  in the docs had me wondering if "sipdroid" was actually 
"PBXes for android".  And now I have my answer.  :(

Original comment by dereks...@gmail.com on 18 Dec 2010 at 10:44

GoogleCodeExporter commented 9 years ago
Issue 493 has been merged into this issue.

Original comment by pmerl...@googlemail.com on 31 Jan 2011 at 6:06

GoogleCodeExporter commented 9 years ago
It's sad to see this issue hasn't been looked at for a whole year...
Will video over RTP be supported on all providers, or are you going to abandon 
RTP alltogether?

Original comment by w...@critter.be on 20 Mar 2012 at 4:19

GoogleCodeExporter commented 9 years ago
Hello, I hava the same problem.

I use the mini acer liquid smartphone and Android V2.3. I can send the video 
from the smartphone to the PC but I can not receive video from PC to 
smartphones. I use x-lite on mac and FreePBX. 
I do not know if I have a configuration problem, or if it is a limit Sipdroid. 

I hope for your suggestion. I tried to find information on the web but with 
poor results.

Original comment by giusican...@gmail.com on 12 Jul 2012 at 10:30