Tuesday, August 31, 2010

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

rtsp

1.rtsp://85.214.87.175/thriller-tv
2.http://forum.videolan.org/viewtopic.php?f=4&t=58781
3.working streaming
http://stackoverflow.com/questions/3219902/android-rtsp-streaming-failing
4.moov , data http
http://markmail.org/message/ztsihepnsbadmxcv#query:+page:1+mid:ahgvrygauhrsu6rz+state:results
5.very useful rtsp
http://wowzamedia.com/forums/showthread.php?p=49664
6.on client use rtsp://
7.vlc server -- streaming-->file-->stream
vlc client -- open n/w->play
8.RTSP issue
http://code.google.com/p/android/issues/detail?id=1513
9.working with vlc
rtsp://video2.americafree.tv/AFTVHorrorH26496.sdp
http://code.google.com/p/android/issues/detail?id=83
10.manual convertion to playable form in android phone
http://cxwangyi.blogspot.com/2010/02/convert-video-into-android-format.html

dyndns

1.use ddclient to update ip automatically
2.http://www.dyndns.com/support/kb/using_ddclient_with_dyndns_services.htmlHow
3.search How_to_get_ddclient_started
4.dyndns within lan
http://ubuntuforums.org/archive/index.php/t-390461.html
5.vlc gui help
http://www.videolan.org/doc/streaming-howto/en/ch02.html
6.Android Video Encoding
https//help.ubuntu.com/community/AndroidVideoEncoding

Sunday, August 29, 2010

valuable links

1.http://markmail.org/message/oibg2z4c4dnhvahs#query:+page:1+mid:7jre5ra2hn4pys2q+state:results

2.http://stackoverflow.com/questions/2423327/android-view-ondraw-always-has-a-clean-canvas

3.http://www.inter-fuser.com/2009/09/live-camera-preview-in-android-emulator.html

4.http://www.tomgibara.com/android/camera-source

5.ffmpeg
http://ubuntuforums.org/showthread.php?t=786095


6.opencore compilation
http://www.mail-archive.com/android-framework@googlegroups.com/msg00062.html

6.Opencore
http://docs.google.com/viewer?a=v&q=cache:KHeULhWM5pEJ:www.opencore.net/files/AES34-000040.pdf+setup+opencore+on+android&hl=en&gl=in&pid=bl&srcid=ADGEESgK21cjsnKwpIpEoemoqeDC2C6FjClhclDEUt5vG8XvXdeTYzu9r75tQm8vGec33XvpboHGaz2ehBlp9_LVQbqb05F3MvmPqqJpbDOJQZA_tnvpsmSd_fhztW3ZPh1P0-3Mc3m-&sig=AHIEtbTaWZaC4w1FQ7PTTYHRpuxsDjTb0Q

7.linux global library path
That's because you did not set LD_LIBRARY_PATH to ~/android-donut/ external/opencore/build_config/opencore_dynamic/build/installed_lib/ linux.

8. opencore components
http://freepine.blogspot.com/2009/10/static-diagram-of-opencore-player.html

9.downloading source for android projects
repo -u init .... manifest.git proj1 proj2 (name refer to manifest.xml in repo)

10.android video important clue
http://osdir.com/ml/Android-Developers/2009-11/msg01069.html