efabulousf / ipcamera-for-android

Automatically exported from code.google.com/p/ipcamera-for-android
0 stars 0 forks source link

video stream contains only flv header on HTC Desire #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. start ipcamera-for-android on HTC Desire and press "start" button
2. try to grab video stream: wget http://192.168.0.123:8080/live.flv
3. stop ipcamera-for-android on the phone after some seconds

What is the expected output? What do you see instead?
I would expect the file live.flv to be greater than 255 bytes, but it actually 
contains only the flv header and no video frames.

What version of the product are you using? On what operating system?
svn version of today

Please provide any additional information below.
ROM: Cyanogenmod 7 RC2

Original issue reported on code.google.com by ste...@endrullis.de on 13 Mar 2011 at 6:32

GoogleCodeExporter commented 8 years ago
I debugged the program and discovered that 
StreamingKernel.VideoBuffer.getReadBuffer() always returns null, since 
vPkg.flag never becomes true, which is because 
StreamingKernel.VideoBuffer.writeFrame(...) is never called, which is because 
addNewPackage(...) is never called, which is because we never reach the 
while(true) loop at line 193 in StreamingKernel, because the thread leaves the 
run method already in line 169, since fis.read(buffer,0,32) returns 24 instead 
of the expected 32.

Original comment by ste...@endrullis.de on 13 Mar 2011 at 7:51

GoogleCodeExporter commented 8 years ago
I have the same problem on Google Nexus One with android 2.3.3 on board

Original comment by alexe...@gmail.com on 22 Mar 2011 at 11:19

GoogleCodeExporter commented 8 years ago
Same problem here. HTC Desire 2.3.3

Original comment by javiergo...@gmail.com on 14 Apr 2011 at 10:45

GoogleCodeExporter commented 8 years ago
Same symptpm, HTC Inspire 4G (running CM7 Ace nightly build cm_ace_full-57.zip) 
(although I haven't done the debugging step as others have above.)

Original comment by alancano...@gmail.com on 28 Apr 2011 at 4:48

GoogleCodeExporter commented 8 years ago
Same problem here, HTC Desire HD 2.3.3
I change the source , write a stream to a remote socket, and capture tcp packet 
:
###############################################
#                 TCP DUMP                    #
###############################################
>==========|===========|===========|===========
00 00 00 00 66 74 79 70 69 73 6F 6D 00 00 00 00  | 16
69 73 6F 6D 33 67 70 34 00 00 00 18 00 00 0C 00  | 32
66 72 65 65 3F 3F 3F 3F 6D 64 61 74 00 00 00 EF  | 48
65 B8 00 04 FF FF FC 3D 14 00 04 1F 7D C3 57 DF  | 64
7D F7 DF 7D F7 DF 7D F7 DF 7D F7 DF 5D 75 D7 5D  | 80
75 D7 5D 75 D7 5D 75 D7 5D 75 D7 5D 75 D7 5D 75  | 96
D7 5D 75 D7 5D 75 D7 5D 75 D7 5D 75 D7 5D 75 D7  | 112
5D 75 D7 5D 75 D7 5D 75 D7 5D 75 D7 5D 75 D7 57  | 128

Original comment by recoil...@gmail.com on 7 Oct 2011 at 6:03