Wednesday, September 1, 2010

RTSP more

1.m4e sample
http://www.live555.com/liveMedia/faq.html#m4e-file
2.sipdroid asterisk
http://depannone.com/wordpress/?tag=sipdroid
3.Google app engine can allow to edit and execute code in a remote machine
http://code.google.com/appengine/docs/java/overview.html

procedure matrix

Activity
1.components
2.behaviour set
3.Others
component matrix * component matrix = 1 state set
this multiplication is iterative and non commutative
interesting feature is balance point
a balance point is a state within a sequence of iteration which can exist in the
same state for most time
matrix mul provide symbol chain,also in the background behavious sets are getting
composed and this composition can give an output that will be added to a future iteration
4.components can have behaviours and traits
so component = behaviour
at each composition there is a behaviour weight associated in composition plane
the weight can determine the next composition parameters

4.A tool is required to input the component matrix and behaviour matrix
behaviour matrix is subtle, ie it does nt make sense to define a behaviour without first defining the component composition, but still it can be booleans

Each composition takes place to achieve an objective
so in the compositon plane there is a behaviour set, behaviour weight,objective set

the system becomes simple if every composition has the same objective
mostly the behaviour weights also becomes same

At the composition plane there are these things happening
-c1 executes a feedback loop on wighted behaviour of c2
-c2 does the same
-c1 generates next weight using the feedback and its objective
-c2 does the same

the aim of composition must be to find the most balancing state
also it anlayse abberations,or induced unbalance

Tuesday, August 31, 2010

android kernel

1.To see the latest kernel versions
http://android.git.kernel.org/?p=kernel/common.git;a=summary
2.to get source from git
1.git clone ..common.git
2.check versions git branch -a
3.git checkout

3.emulator keys
http://developer.android.com/guide/developing/tools/emulator.html#controlling

4.more RTSP
http://www.weask.us/entry/rtsp-client-android

RTSP trouble shooting

1.need emulator,live555MediaServer(bin),ngrep,sed
2.configure ngrep to capture packet on lo
3.start live..
4.in emulator fetch web page from server with rtsp links
5.click on the links
6.analyze the ngrep capture

to check java version
1.java -version
2.which java
3.echo $JAVA_HOME
4.PATH=$JAVA_HOME\bin:$PATH
5.
CLASSPATH=$JAVA_HOME\jre\lib\dt.jar;$JAVA_HOME\lib\dt.jar;%CLASSPATH%
6.
The following command will print the version of java you are currently using.

> java -version

The following command will print the home directory for the java executables for the version of java you are running. I assume that this is what you will want to correspond to JAVA_HOME. I'm not a developer so I am not 100% sure on this. This is typically /usr/bin/java.

> which java

I think it might be best practice to create a sym link between your current version and the more generic path. For example:

>ln -s /usr/java/jre1.x.x.x /usr/java/jre

This saved me a bit of aggravation when I upgraded java. The only item I had to change was the first sym link. My PATH variable etc. is preserved.

The following sym link should also be in place to direct you to the correct executables:

>ln -s /usr/java/jre/bin/java /usr/bin/java

In the event that "/usr/bin" is *not* in the PATH variable (unlikely), the following command may be used to add it.

>PATH=/usr/bin:$PATH then export PATH
only $JAVA_HOME, jre symbolic link is necessary to get java UP

My understanding is that this will only stay put for the duration of the session. Editing the PATH variable as it exists in /etc/profile is a more permanent method.

I'm not sure how to set the class path, but I hope the above helps

8.edit ~.bashrc,/.bashrc,/etc/profile,/etc/bash.bashrc

9.android master repo compilation error
# cd external/clearsilver
# git reset --hard 9a199257cfdaeec82aa1cc662436d3a47fb6f2ea
# cd -
10.opencore has host compilation option and platform compilation option
refere to .txt in the home directory

11.emulator ppp and emulator
http://i-miss-erin.blogspot.com/2010/04/use-3g-modem-data-card-in-android.html

12.Android kernel source for emulator
http://stackoverflow.com/questions/1809774/android-kernel-compile-and-test-with-android-emulator

emulator RTSP

1.use ngrep ... listens on a port and dumps the packet
2.keyword 'RTSP ngrep android'

Monday, August 30, 2010

android adb

1.internal network and redir
http://www.mail-archive.com/android-developers@googlegroups.com/msg66432.html
2.rtsp ports basics
http://soundscreen.com/streaming/firewall.html
3.vlc streaming 3gp to local host
server
vlc -vvv /home/ranjith/Desktop/tshirt.3gp --sout="#duplicate{dst=std{access=udp,mux=ts,dst=localhost:1234}}"

client
vlc -vvv udp://@localhost:1234
4.examples
http://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples
4.real rtsp streaming with rtp and rtsp
client
vlc rtsp://localhost:8080/test.sdp
server
vlc -vvv /home/ranjith/Desktop/tshirt.3gp --sout '#rtp{dst=localhost,port=1234,sdp=rtsp://localhost:8080/test.sdp}'

5.Browsing to local html file
content://com.android.htmlfileprovider/sdcard/example/file.html

6.RTSP/RTP has 3 fallback mode using tcp ... other uses udp

android 1.5 http streaming

1.install apt avidemux, apt gpac (MP4Box)
2.copy to server
3.In windows .. SUPER (c) and MP4Box

4.http://justdevelopment.blogspot.com/2009/10/video-streaming-with-android-phone.html#Creating_Streaming_Media_for_the_Google_Developer_Phone

5. vlan android

http://forum.videolan.org/viewtopic.php?f=4&t=58616