1.windows sys and linux
2.windows has opensshd and http proxy app
3.linux has openssh
4.windows willl listen on sshd and forward to localhost port of http proxy
5.linux will configure mozilla to use SOCKS proxy
Thursday, December 1, 2011
Monday, November 14, 2011
ip layer topologies
1.gw in route entry, job is to forward the packet to ip layer in gw, ip forwarding
will ensure it reaches other interfaces
2.gw(router) is a layer3 device , with ip forwarding enabled
3.iptables is the control structure for ip-upper/ip-lower filter
will ensure it reaches other interfaces
2.gw(router) is a layer3 device , with ip forwarding enabled
3.iptables is the control structure for ip-upper/ip-lower filter
Saturday, November 12, 2011
home office
1.Add a domain controller ubuntu+samba+bind+
2.on all machines in network keep only root local account, protect by password
3.on each machine, keep the home folder in separate disk/partition
4.keep a disk for public file sharing
5.keep a disk for nfs rootfs, single machine with chroot environment can drive N machines
6.So all machines have kernel with basic chroot + rootfs, single master server have matured chroot + optional rootfs
7.All machines in the domain uses account in master dc for login,users are created in
dc and supplied to respective machines
8.ring of kernel + nwdriver + nfs client driver machines AND ring of kernel + nfs server rootfs
9.dc uses dns name for each machine on nw
10.looks like local admin account should setup dns prefix and domain name
11.use rsync to backup client periodically
12.radius server for multipurpose can coexist with vpn server, using localhost as link b/w
13.domain controller preferably is on another machine,openradius for auth
2.on all machines in network keep only root local account, protect by password
3.on each machine, keep the home folder in separate disk/partition
4.keep a disk for public file sharing
5.keep a disk for nfs rootfs, single machine with chroot environment can drive N machines
6.So all machines have kernel with basic chroot + rootfs, single master server have matured chroot + optional rootfs
7.All machines in the domain uses account in master dc for login,users are created in
dc and supplied to respective machines
8.ring of kernel + nwdriver + nfs client driver machines AND ring of kernel + nfs server rootfs
9.dc uses dns name for each machine on nw
10.looks like local admin account should setup dns prefix and domain name
11.use rsync to backup client periodically
12.radius server for multipurpose can coexist with vpn server, using localhost as link b/w
13.domain controller preferably is on another machine,openradius for auth
Saturday, November 5, 2011
at home
1.laser - micro
2.portable genset
led lantern
biolite
3.polk car audio spk, amp
4.tent 2
sleeping bags
5.chair 4
Bangalore :
Wildcraft India Private Limited
Manufacturers of tents, camping, etc.
Address: 121, 3rd Block, 8th Main, Jayanagar,
Bangalore - 560 011, India
Phone: +(91)-(80)-6538354/6753876/
6757599/2241636/2222749/6647036
Fax: +(91)-(80)-2234818
Ozone India
www.ozoneindia.com
6.car pad
7.pico projector
8.check swift plugs power, space in dimension,mini refreg
Honda generator
ModelGK300(made in Japan)
2500 Watt
Push button start
Excellent condition, hardly used
9.configurable umbrella
10.tata photon
11.fryer
12.table ,food rack , array, dismantle
13.white screen, adjustable back pluggable
14.projector holder to chairs
15.coaxial and component car speakers .. with or without amp
=======
JBL X333 - 3.8k (3 pre outs)
Pioneer 2390 - 6k (just 1 pre out in it)
Kenwood U449 - 6.5k (2 pre outs)
Hertz DCX 165 comps - 5k (when i googled there are no comps by that name , i guess he wrote that by mistake and actually it is DSK 165)
Audison wiring - 400rs
Mdf ring / Socket - 150+150rs[*]He said if i wouldn't be including amp with this setup still it will do fine (amp is actually out of my budget and subs i will get in future). What do you think about this?
==============
ipad2+wifi+3g
proclip for suzuki swift
A/V cable
2.portable genset
led lantern
biolite
3.polk car audio spk, amp
4.tent 2
sleeping bags
5.chair 4
Bangalore :
Wildcraft India Private Limited
Manufacturers of tents, camping, etc.
Address: 121, 3rd Block, 8th Main, Jayanagar,
Bangalore - 560 011, India
Phone: +(91)-(80)-6538354/6753876/
6757599/2241636/2222749/6647036
Fax: +(91)-(80)-2234818
Ozone India
www.ozoneindia.com
6.car pad
7.pico projector
8.check swift plugs power, space in dimension,mini refreg
Honda generator
ModelGK300(made in Japan)
2500 Watt
Push button start
Excellent condition, hardly used
9.configurable umbrella
10.tata photon
11.fryer
12.table ,food rack , array, dismantle
13.white screen, adjustable back pluggable
14.projector holder to chairs
15.coaxial and component car speakers .. with or without amp
=======
JBL X333 - 3.8k (3 pre outs)
Pioneer 2390 - 6k (just 1 pre out in it)
Kenwood U449 - 6.5k (2 pre outs)
Hertz DCX 165 comps - 5k (when i googled there are no comps by that name , i guess he wrote that by mistake and actually it is DSK 165)
Audison wiring - 400rs
Mdf ring / Socket - 150+150rs[*]He said if i wouldn't be including amp with this setup still it will do fine (amp is actually out of my budget and subs i will get in future). What do you think about this?
==============
ipad2+wifi+3g
proclip for suzuki swift
A/V cable
Sunday, October 23, 2011
iscasi
1.normal --- disk,partition/volume,filesystem
2.iscasi --- disk,partition/volume/lun,filesystem
3.create lun
arg - the disk
arg - size of partition
arg - ip address associated
arg - tcp port associated
arg - filesystem
4.can non iscasi and iscasi exist together
5.can a folder be shared through iscasi and scasi
2.iscasi --- disk,partition/volume/lun,filesystem
3.create lun
arg - the disk
arg - size of partition
arg - ip address associated
arg - tcp port associated
arg - filesystem
4.can non iscasi and iscasi exist together
5.can a folder be shared through iscasi and scasi
account this
1.dsp on board runs using dhcp
2.using nfs
need server side
check during boot suppress permission issues
verified kernel args for nfs
verified dhcp can be used
issue dhcp on client,nfs req on client dhcp on server
issue server needs .tar.bz2 or expanded ones
issue use /tftboot with symbolic links with kernel and rootfs
solved issue sdcard does not see media , ??
solved dns gateway, ??
3.android - tiny android
4.stripping packages
5.pipeline -- sources,binaries,confi files,system.img,data.img,root file system
6.pipeline - - kernel
7.sipdroid
8.dolby
9.diceplayer
2.using nfs
need server side
check during boot suppress permission issues
verified kernel args for nfs
verified dhcp can be used
issue dhcp on client,nfs req on client dhcp on server
issue server needs .tar.bz2 or expanded ones
issue use /tftboot with symbolic links with kernel and rootfs
solved issue sdcard does not see media , ??
solved dns gateway, ??
3.android - tiny android
4.stripping packages
5.pipeline -- sources,binaries,confi files,system.img,data.img,root file system
6.pipeline - - kernel
7.sipdroid
8.dolby
9.diceplayer
Sunday, October 16, 2011
more on alsa v4l2 saa
1.sox is a master application used to test many sound related functions
2.alsa 1.0.19/21/24 are latest needed for nvidia gt400 pro working
3.alsa has tools that list the properties of sound card
4.aplay can play mp3s or wav
5.alsa can be compiled from source
6.saa alsa usually comes with kernel with saa dvb,tuner,radio etc , it doesnt have a separate branch outside to compile with any needed kernel
7.tuners are designed for saa specification, all analog , digital tuners are complaint
8.saa71xx is for video and saa71xx-alsa for audio
9.these are interfaced to v4l2 and alsa in the system
10.v4l2-ctl can show details of all video devices in the system
11.pinnacle pctv 310i can do sound in 2 ways , through an internal wire it can give the sound to
real sound card IN hence the sound cards LINEIN can be used as capture device
or
it can expose a sound device interface
12.issue with saa incompatibility b.w in kernel saa alsa and external updated alsa
13.v4l2 sees video devices as /dev/video0
14.saa alsa? sees devices as /dev/dsp /dev/dsp1
15.latest alsa sees devices as hw:1,0 plughw:1,0 ??
16.like alsa oss and pulse audio are independent drivers , they can run sound without alsa
17.can work parallely on different devices, on one device only one can work
18.pulse and oss have a glue layer for alsa??
19.there are sound stack for each of them independently
20.digital video devices are /dev/adapter/dvb0
21.xbmc needs plugin to show bind with vdr
22.vdr needs components from private repo to be functional
23.video with hw accel and non hw accel has different drivers, according to what driver is loaded
for the device hw accel is exposed or disabled.
24.powerful card can expose sterio functionality if old drivers are loaded for it
25.video drivers have persistant switch entries in conf files only at restart they are looked up
26.there is always way to bring up vga
27.codec stack comes on top of saa,and other alsa drivers
28.similar to alsa nvidia and other hw will have latest in place compilable oss and pulseaudio
drivers provided by vendor
29.similarly for video v4l2 ES 1/2/3 compatible drivers updated
30.codecs eat on low level v4l2 and alsa drivers
31.v4l2 and alsa provides apis to apps
32.main apps like flash will use plugins that use these apis
33.xclient startx will use these apis for remote/local sessions
34.for a 5.1 system each channel is a sound device
35.linux has a master firmeare directory used to keep latest fw of all devices
36.vpdau is a v4l2 specification ie from v4l2 to vpdau driver, ES is specification from within vpdau to real hw
37.lirc is v4l2 of ir commn
38.fm radio other radio uses tuner devices and alsa
39.tuner will have /dev/vvv alsa with /dev/aaa
40.they can use v4l2-ctl for scanning and freq
41.so tuner device , sound device, video device basics of multimedia
2.alsa 1.0.19/21/24 are latest needed for nvidia gt400 pro working
3.alsa has tools that list the properties of sound card
4.aplay can play mp3s or wav
5.alsa can be compiled from source
6.saa alsa usually comes with kernel with saa dvb,tuner,radio etc , it doesnt have a separate branch outside to compile with any needed kernel
7.tuners are designed for saa specification, all analog , digital tuners are complaint
8.saa71xx is for video and saa71xx-alsa for audio
9.these are interfaced to v4l2 and alsa in the system
10.v4l2-ctl can show details of all video devices in the system
11.pinnacle pctv 310i can do sound in 2 ways , through an internal wire it can give the sound to
real sound card IN hence the sound cards LINEIN can be used as capture device
or
it can expose a sound device interface
12.issue with saa incompatibility b.w in kernel saa alsa and external updated alsa
13.v4l2 sees video devices as /dev/video0
14.saa alsa? sees devices as /dev/dsp /dev/dsp1
15.latest alsa sees devices as hw:1,0 plughw:1,0 ??
16.like alsa oss and pulse audio are independent drivers , they can run sound without alsa
17.can work parallely on different devices, on one device only one can work
18.pulse and oss have a glue layer for alsa??
19.there are sound stack for each of them independently
20.digital video devices are /dev/adapter/dvb0
21.xbmc needs plugin to show bind with vdr
22.vdr needs components from private repo to be functional
23.video with hw accel and non hw accel has different drivers, according to what driver is loaded
for the device hw accel is exposed or disabled.
24.powerful card can expose sterio functionality if old drivers are loaded for it
25.video drivers have persistant switch entries in conf files only at restart they are looked up
26.there is always way to bring up vga
27.codec stack comes on top of saa,and other alsa drivers
28.similar to alsa nvidia and other hw will have latest in place compilable oss and pulseaudio
drivers provided by vendor
29.similarly for video v4l2 ES 1/2/3 compatible drivers updated
30.codecs eat on low level v4l2 and alsa drivers
31.v4l2 and alsa provides apis to apps
32.main apps like flash will use plugins that use these apis
33.xclient startx will use these apis for remote/local sessions
34.for a 5.1 system each channel is a sound device
35.linux has a master firmeare directory used to keep latest fw of all devices
36.vpdau is a v4l2 specification ie from v4l2 to vpdau driver, ES is specification from within vpdau to real hw
37.lirc is v4l2 of ir commn
38.fm radio other radio uses tuner devices and alsa
39.tuner will have /dev/vvv alsa with /dev/aaa
40.they can use v4l2-ctl for scanning and freq
41.so tuner device , sound device, video device basics of multimedia
Friday, October 7, 2011
android with dsp
1.issue
/etc/vold.fstab
dev_mount sdcard /mnt/sdcard 3 /devices/platform/mmci-omap-hs.0/mmc_host/mmc0
for gallery not detecting media clips
2.Ensure DSP
The DSP Link was correctly created as I can see during boot messages:
... VFS: Mounted root (ext3 filesystem) on device 179:2. Freeing init memory: 172K CMEMK module: built on Nov 23 2010 at 17:47:20 Reference Linux version 2.6.32 File /home/imc/i-tv/rowboat-froyo-dsp/external/ti-dsp/ dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages/ti/sdo/ linuxutils/cmem/src/module/cmemk.c CMEM Range Overlaps Kernel Physical - allowing overlap CMEM phys_start (0x85800000) overlaps kernel (0x80000000 -> 0x8d800000) allocated heap buffer 0xd1000000 of size 0x4be000 cmemk initialized DSPLINK Module (1.65.00.02) created on Date: Nov 23 2010 Time: 17:45:38 SDMAK module: built on Nov 23 2010 at 17:47:41 Reference Linux version 2.6.32 File /home/imc/i-tv/rowboat-froyo-dsp/external/ti-dsp/ dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages/ti/sdo/ linuxutils/sdma/src/module/sdmak.c init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery' #
3.relation of resolution and vram
try to add these option in your kernel command line: vram=XXX for example for 1280x1024MR-16@60 you should add vram=4M 1440x1050MR-16@60, vram=6M 1600x1024MR-16@60, vram=7M etc, the equation to calculate the vram value is x_res*y_rex*4
/etc/vold.fstab
dev_mount sdcard /mnt/sdcard 3 /devices/platform/mmci-omap-hs.0/mmc_host/mmc0
for gallery not detecting media clips
2.Ensure DSP
The DSP Link was correctly created as I can see during boot messages:
... VFS: Mounted root (ext3 filesystem) on device 179:2. Freeing init memory: 172K CMEMK module: built on Nov 23 2010 at 17:47:20 Reference Linux version 2.6.32 File /home/imc/i-tv/rowboat-froyo-dsp/external/ti-dsp/ dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages/ti/sdo/ linuxutils/cmem/src/module/cmemk.c CMEM Range Overlaps Kernel Physical - allowing overlap CMEM phys_start (0x85800000) overlaps kernel (0x80000000 -> 0x8d800000) allocated heap buffer 0xd1000000 of size 0x4be000 cmemk initialized DSPLINK Module (1.65.00.02) created on Date: Nov 23 2010 Time: 17:45:38 SDMAK module: built on Nov 23 2010 at 17:47:41 Reference Linux version 2.6.32 File /home/imc/i-tv/rowboat-froyo-dsp/external/ti-dsp/ dvsdk_3_01_00_10/codec_engine_2_25_05_16/cetools/packages/ti/sdo/ linuxutils/sdma/src/module/sdmak.c init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery' #
3.relation of resolution and vram
try to add these option in your kernel command line: vram=XXX for example for 1280x1024MR-16@60 you should add vram=4M 1440x1050MR-16@60, vram=6M 1600x1024MR-16@60, vram=7M etc, the equation to calculate the vram value is x_res*y_rex*4
xserver
1.xserver has a network interface and a window manager interface
2.xclient will have lower graphics hw interface and upper x server interface
3.xserver will have frame buffer abstraction
4.startx is client
5.frame buffer can be switched from local to remote x client
6.remote connection can have a compression protocol
2.xclient will have lower graphics hw interface and upper x server interface
3.xserver will have frame buffer abstraction
4.startx is client
5.frame buffer can be switched from local to remote x client
6.remote connection can have a compression protocol
Thursday, October 6, 2011
cluster
1.need for building ubuntu based clustor and expanding
2.needs 2 nics per node
2.needs 2 nics per node
Sunday, October 2, 2011
scene builder
- will have database,tomcat,webview,user account
- will have in-channel for data,requirement and rules
- will have run command
- will have run save option
- will have favourable selection criteria
- will have favourables isolation criteria
- will have favourables as start set for next run option
- generates an xml with the favourable scenes organized as nodes and options to see its predecessors
- later,will have networking option between user accounts and across physical networks
- later will have , 3 way scene building with moderator
- later will have n party scene building with moderator
- later will have archive reference for common paths
data represented in sets
as none,as one,as n-1, as n defines it
if n is represented as j,k clone or other, in programming a visitor may have life
dependency or other on another one
data as,
A B C but if some scene is not favourable its as,
A B C D, D is the marker for non favourable
lte mac
Angles:
timestamping
will have module specific in-ram traces(circular)
will have platform event traces
will have platform data structure and protocol internals dump
will have xml interface for default globals and current globals
will have hardware submodule in-ram dump
will work with plarform debugger to give a verbose snap
later, xml for default interfaces and methods and a metadata channel
derived from java model
- uses 8 timers
- transport channels
- crnti and harq
- mimo phy
- platform interface
- user interface
- platform driver states
- mac states
- phy states
- internal queues
- mdb's
- Memory tabulation
- Event path counters(will show if previous event path has been taken ,entry till return definer)
- Event path markers(shows what events are in progress now) is Event counters
- Assertions
- Multi level checks for data, datastructures
- spec version to code mapping information
- doxygen based annotation
- perl based automation tool , multithreaded
- perl tool capable of remote communication by independent channel
- perl tool capable of log generation
- scripts directory individually runnable
timestamping
will have module specific in-ram traces(circular)
will have platform event traces
will have platform data structure and protocol internals dump
will have xml interface for default globals and current globals
will have hardware submodule in-ram dump
will work with plarform debugger to give a verbose snap
later, xml for default interfaces and methods and a metadata channel
derived from java model
Saturday, October 1, 2011
graphics android,linux,windows
android uses
opengl over
TI SGX over
omap dsp
linux uses
opengl over ??
vpdau over
nvidia
windows uses
opengl over??
dxva over
nvidia
mythtv and xbmc are equivalents
http://en.wikipedia.org/wiki/XBMC
home network pending
1.getting nintendo ... windows
2.changing tv tuner to nintendo
3.getting tv working on nintendo
4.getting usbwifi for pc2
5.getting windows media centre on pc2
6.relaying streams from pc1 to pc2 using darwin and vlc client
which contains apache streaming setup
7.get hp touch screen monitor
9.installation
Monday, September 19, 2011
pico projector
http://www.youtube.com/watch?v=fROxb6WdsS0&feature=related
order of best oses for beagle
android
angstrom
beagleboardubuntu
angstrom supports mythtv
angstrom has sgx support
it can run dsp for 1080p
Wednesday, August 31, 2011
unix device files
1.they have inode entries
2.inode contains major minor number
3.do they contain driver information
4.do they have interface information
5.when filesystem is mounted , inode information is readin by disk driver and ram snapshot of
device files are made.the devices will be loaded and initialized as well??
6.every driver registers with Agent X,when device files are initialized it consults Agent X and
hooks to it.
7.makenode major,minor
8.load module major minor
9.access node,major minor, control routed
10.filesystem,disk driver runs default on nix
11.file nodes are created using those drivers
12.node is linked to filesystem and disk sectors
13.filesystem table has snapshot mbet in ram,each file has record in ram,loading a driver adds module
information into file record in file table
14.filesystem driver is different,disk driver is differrent
15.when makenode, filesystem driver add to file table in ram,disk driver add entry in disk sector
and link between them is stored in ram and sector
16.a loading module registers minor and major number, it searches the ram filetable for entry,
maps its interface to ram entry
17.major number identifies virtual address of driver code in ram
18.when a stream is opened on a driver y a context is created in driver y as well as in global driver Y
18.all stream driver has same major number??,single minor number represents single stream
19.stream head memory and resource allocation is done by stream driver,its physical link is known by the stream driver that creates it.
20.stream module is system wide known,it can be pushed into stream.
21.stream head has queue pair,mapping of process current and stream instance, ie minor number also threads
22.user mode represents stream head by fd
23.stream heads can be fused
24.how clone stream works
http://books.google.co.in/books?id=Z7qfu9NK7WQC&pg=PA600&lpg=PA600&dq=unix,stream+driver,major+number&source=bl&ots=RXliIaQO6T&sig=kiITVMAS74lZ63Lt61STl-9tnmo&hl=en&ei=qfVdTu3RFNDOrQfJi9HnDw&sa=X&oi=book_result&ct=result&resnum=2&ved=0CB8Q6AEwAQ#v=onepage&q=unix%2Cstream%20driver%2Cmajor%20number&f=false
25.the minor number stored by inode is used only after loading driver,its not persistant
2.inode contains major minor number
3.do they contain driver information
4.do they have interface information
5.when filesystem is mounted , inode information is readin by disk driver and ram snapshot of
device files are made.the devices will be loaded and initialized as well??
6.every driver registers with Agent X,when device files are initialized it consults Agent X and
hooks to it.
7.makenode major,minor
8.load module major minor
9.access node,major minor, control routed
10.filesystem,disk driver runs default on nix
11.file nodes are created using those drivers
12.node is linked to filesystem and disk sectors
13.filesystem table has snapshot mbet in ram,each file has record in ram,loading a driver adds module
information into file record in file table
14.filesystem driver is different,disk driver is differrent
15.when makenode, filesystem driver add to file table in ram,disk driver add entry in disk sector
and link between them is stored in ram and sector
16.a loading module registers minor and major number, it searches the ram filetable for entry,
maps its interface to ram entry
17.major number identifies virtual address of driver code in ram
18.when a stream is opened on a driver y a context is created in driver y as well as in global driver Y
18.all stream driver has same major number??,single minor number represents single stream
19.stream head memory and resource allocation is done by stream driver,its physical link is known by the stream driver that creates it.
20.stream module is system wide known,it can be pushed into stream.
21.stream head has queue pair,mapping of process current and stream instance, ie minor number also threads
22.user mode represents stream head by fd
23.stream heads can be fused
24.how clone stream works
http://books.google.co.in/books?id=Z7qfu9NK7WQC&pg=PA600&lpg=PA600&dq=unix,stream+driver,major+number&source=bl&ots=RXliIaQO6T&sig=kiITVMAS74lZ63Lt61STl-9tnmo&hl=en&ei=qfVdTu3RFNDOrQfJi9HnDw&sa=X&oi=book_result&ct=result&resnum=2&ved=0CB8Q6AEwAQ#v=onepage&q=unix%2Cstream%20driver%2Cmajor%20number&f=false
25.the minor number stored by inode is used only after loading driver,its not persistant
c parser
1.makeheader
2cfunctions
3.cscope -L -1|8 1=FIND IN FILE
4.cpan c::scan
2cfunctions
3.cscope -L -1|8 1=FIND IN FILE
4.cpan c::scan
Tuesday, August 30, 2011
3 phase current and home connections
1.3 phase into apartment has 3 hot wires and optional 4th neutral
2.apartment though getting 3 phase,house will use only one phase at a time OR one room one phase etc
3.3 phase equipment has seperate wall outlet than 2 phase
4.leakage current?? earthing pin
5.hot wires end up in main panel,it goes to subpanel of apartment block then it goes to
panel of (generator) comes back to subpanel of apartment block and comes into subpanel of
flat
6.circuit breakers are there bw main supply and main panel,main panel to subpanel1 ,subpanel 2 to
subpanel 1,subpanel 1 to flat panel
7.from flat panel parallel wire pair ,from hot and neutral run to rooms
8.max an apartment can consume 150 A, 2220v 3phase
9.max building can consume is
--->main-->block subpanel-->phase changeover-->meter-->generator subpanel--->source changeover-->
block subpanel-->flat subpanel-->room outlets
10.http://www.inspectapedia.com/electric/ElecAmps.htm
11.http://wiki.answers.com/Q/How_many_amps_are_in_a_breaker_panel
12.60 apartment flat may have 5000 amp,each flat using 200amp, 1/10 amp can be fatal to human
13.http://en.wikipedia.org/wiki/Industrial_and_multiphase_power_plugs_and_sockets
14.http://www.macfarlanegenerators.com.au/power-calculator.php#kvatoamp
2.apartment though getting 3 phase,house will use only one phase at a time OR one room one phase etc
3.3 phase equipment has seperate wall outlet than 2 phase
4.leakage current?? earthing pin
5.hot wires end up in main panel,it goes to subpanel of apartment block then it goes to
panel of (generator) comes back to subpanel of apartment block and comes into subpanel of
flat
6.circuit breakers are there bw main supply and main panel,main panel to subpanel1 ,subpanel 2 to
subpanel 1,subpanel 1 to flat panel
7.from flat panel parallel wire pair ,from hot and neutral run to rooms
8.max an apartment can consume 150 A, 2220v 3phase
9.max building can consume is
--->main-->block subpanel-->phase changeover-->meter-->generator subpanel--->source changeover-->
block subpanel-->flat subpanel-->room outlets
10.http://www.inspectapedia.com/electric/ElecAmps.htm
11.http://wiki.answers.com/Q/How_many_amps_are_in_a_breaker_panel
12.60 apartment flat may have 5000 amp,each flat using 200amp, 1/10 amp can be fatal to human
13.http://en.wikipedia.org/wiki/Industrial_and_multiphase_power_plugs_and_sockets
14.http://www.macfarlanegenerators.com.au/power-calculator.php#kvatoamp
Saturday, May 28, 2011
running script in bgnd
1.nohup ./dssvlc_norm.sh > $HOME/test_norm.log 2>&1 &
DSS,vlc,playlist
1.can create vlc playlist as .m3u,html etc
2.vlc can take .m3u as arg
3.playlist can repeat , --repeat
4.DSS and vlc can create sdp at /usr/local/movies
5.dss has default streamer
6.vlc can be used as streamer for DSS
7.remote systems will search for sdp in /usr/local/movies in case of vlc and default streamer
8.vlc can additionally transcode on fly for mobile
9.use http://file2hd.com for mp4 download, needs to be in same tab
10.
2.vlc can take .m3u as arg
3.playlist can repeat , --repeat
4.DSS and vlc can create sdp at /usr/local/movies
5.dss has default streamer
6.vlc can be used as streamer for DSS
7.remote systems will search for sdp in /usr/local/movies in case of vlc and default streamer
8.vlc can additionally transcode on fly for mobile
9.use http://file2hd.com for mp4 download, needs to be in same tab
10.
Friday, May 27, 2011
getting xrdp work
1.install xrdp from source .. also X11rdp needs to be installed and linked with the other
2.only works with mstsc client
2.only works with mstsc client
multimedia stack in linux
1.install gfx driver in the system , for eg nvidia
2.configure v4l2 it has driver and user components
3.configure alsa it has driver and user
4.configure gstreamer on top of v4l2
5.configure pulse audio, it has driver and user??
6.where does x server come into picture??? the gfx stack binds to x server, x has user component
7.x would talk with v4l2,gfx driver,hw
8.for remote x , ie xrdp, x talk with a remote display nwtworking module that would talk over nw
2.configure v4l2 it has driver and user components
3.configure alsa it has driver and user
4.configure gstreamer on top of v4l2
5.configure pulse audio, it has driver and user??
6.where does x server come into picture??? the gfx stack binds to x server, x has user component
7.x would talk with v4l2,gfx driver,hw
8.for remote x , ie xrdp, x talk with a remote display nwtworking module that would talk over nw
getting hdmi working
1.get the nvidia driver installed ie download source of appropriate nvidia driver,kernel headers etc compile it and install it
2.after installation of alsa suite and pulse audio suite , check the alsamixer and pulse mixer and check if all are unmute
3.while updating keep all your configuration files as it is
4.use speakertest and aplay mplay for ur testing
5.
2.after installation of alsa suite and pulse audio suite , check the alsamixer and pulse mixer and check if all are unmute
3.while updating keep all your configuration files as it is
4.use speakertest and aplay mplay for ur testing
5.
Sunday, May 22, 2011
dyndns and ddclient
1.http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch19_:_Dynamic_DNS#DDNS_Client_Software_-_Linux_DDclient
2.rm /var/cache/ddclient/ddclient.cache
3.kwrite /etc/ddclient.conf
4.ddclient -daemon=0 -query
5.ddclient -daemon=0 -debug -verbose -noquiet
6./etc/init.d/ddclient restart
7.ddclient -refresh -retry
2.rm /var/cache/ddclient/ddclient.cache
3.kwrite /etc/ddclient.conf
4.ddclient -daemon=0 -query
5.ddclient -daemon=0 -debug -verbose -noquiet
6./etc/init.d/ddclient restart
7.ddclient -refresh -retry
Sunday, May 15, 2011
essential graphics info tools
1.Everest pro/AIDA64 pro extreme
2.Opengl extensions viewer 3.0
3.dxdiag
4.graphedit
5.dxva checker
6.cpu z
7.gpu z
8.kmplayer
9.mplayer HC,mplayer standalone,
10.coreavc
11.ffdshow
vdpau === dxva
12.linux
xine
mplayer
gmplayer
ffplay
essential package
2.Opengl extensions viewer 3.0
3.dxdiag
4.graphedit
5.dxva checker
6.cpu z
7.gpu z
8.kmplayer
9.mplayer HC,mplayer standalone,
10.coreavc
11.ffdshow
vdpau === dxva
12.linux
xine
mplayer
gmplayer
ffplay
essential package
Sunday, May 8, 2011
Nvidia GT220 HDMI Audio configuration onkyo tx sr 508, got it working
==========================================================
1.aplay -l and aplay -L
should list nvidia devices
there may be multiple devices
in the form of,
2.need to download latest alsa source and compile and install it
3.check alsamixer , it should list pulse audio with all 4 input for 5.1 unmuted
4.check alsaconf it may show no pci devices
5.in bios disable on board audio
6.install kmix
7.install pulse audio suite
apt-get install asoundconf-gtk alsa-oss libasound2 libasound2-plugins padevchooser gstreamer0.10-pulseaudio ubuntu-restricted-extras
8.in application sound video, pulse audio device chooser,pulse audio volume control should come
9.in tray sound preferences, disable nvidia hdmi hardware
10.kwrite /etc/modprobe.d/alsa-base.conf --- add
update-initramfs -u
#my added
#options snd-hda-intel enable_msi=0 probe_mask=0xfff2
#options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2
options snd-hda-intel enable_msi=0 index=-2
#options snd-hda-intel enable_msi=0 index=1
11.kwrite /etc/asound.conf
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
12.kwrite /etc/pulse/daemon.conf
default-sample-channels = 6
13.aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
14.speaker-test -D plughw:1,9 -c6 /dev/urandom
15. kwrite /etc/pulse/default.pa
#myentry
#load-module module-alsa-sink device=hdmi:NVidia
load-module module-alsa-sink device=plughw:1,9
16.cat /proc/driver/nvidia/version
17.application,sound and video, alsamix gui should show nvidia,and all channels
18.http://ubuntuforums.org/archive/index.php/t-1598489.html
19.gstreamer-properties
20.tried to make it work with onkyo tx sr 508, default resolution gave problem while playing hd youtube videos.Changed resolution it started working
============================================================
apt-get install libavc1394-dev
apt-get install libraw1394-dev
apt-get install libiec61833-dev
apt-get install libiec61883-dev
vlc -vvv dv/rawdv:///dev/raw1394 --dv-caching 10000 --sout '#transcode{vcodec=WMV2,vb=512,scale=1,acodec=mp3,ab=192,channels=2,fps=25.0}:std{access=mmsh,mux=asfh,url=:8080}'
exit
apt-get install ffmpeg
exitexit
exit
apt-get update
apt-get install vlc libdvdcss2
cd work/
cd ..
cd work/
ls
exit
konqueror
sysconfig
sysinfo
apt-get install sysinfo
sysinfo
uname -r
uname -a
dmesg
lspci | vga
lspci |grep VGA
konqueror
lspci | grep VGA
lspci | grep VGA
cd work/
ls
mkdir mynvidia
cd mynvidia/
mv ../../Desktop/NVIDIA-Linux-x86-260.19.36_gt220.run .
ls
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.original
dpkg-reconfigure -phigh xserver-xorg
apt-get install build-essential linux-headers-`uname -r`
apt-get --purge remove $(dpkg -l | grep nvidia | awk '{print $2}')
cp NVIDIA-Linux-x86-260.19.36_gt220.run /usr/src
cd /usr/src/
ls
install NVIDIA-Linux-x86-260.19.36_gt220.run /usr/src
cd /home/ranjith/work/mynvidia/
ls
install NVIDIA-Linux-x86-260.19.36_gt220.run /usr/src
ln -s /usr/src/NVIDIA-Linux-x86-260.19.36_gt220.run /usr/src/nvidia-driver
/etc/init.d/gdm stop
sh /usr/src/nvidia-driver
reboot
aplay -l
find /lib/modules/`uname -r` | grep snd
lspci -v | less
nvidia-xconfig
konqueror
aplay -l
ifconfig
..konqueror
konqueror
ifconfig
mythbackend
mythsetup
mythtvsetup
myth-setup
mythtv-setup
mythbackend
mythbackend
mythbackend
mythbackend
mythbackend
mythtv-setup
mythbackend
mythtv-setup
mythtv-setup
mythtv-setup
mythbackend
mythtv-setup
mythbackend
mythtv-setup
mythbackend
mythbackend
df -h
mythtv-setup
++
mythtv-setup
mythbackend
~
mythbackend
apt-get install gpac
apt-get install darwin
apt-get install Darwin
apt-get install DSS
mplayer
apt-get update && sudo apt-get upgrade
apt-get install build-essential
addgroup -system qtss
adduser -system -no-create-home -ingroup qtss qtss
cd /usr/local/src/
mv /home/ranjith/Desktop/lstoll-dss-83615fb.tar.gz .
ls
tar -xvf lstoll-dss-83615fb.tar.gz
ls
cd lstoll-dss-83615fb
./Buildit install
cd DarwinStreamingSrvr6.0.3-L2-Linux
./Install
kwrite
apt-get install kwrite
kwrite
mv myth3gp /usr/local/bin
mkdir /home/ranjith/work/mythvid
kwrite /usr/local/bin/myth3gp
myth3gp
chmod 777 /usr/local/bin/myth3gp
myth3gp
ls /home/ranjith/work/mycabledir/
myth3gp /home/ranjith/work/mycabledir/1002_20110304231812.nuv somename
myth3gp /home/ranjith/work/mycabledir/1002_20110304231812.nuv somename
ls /home/ranjith/work/mythvid
cd work/
cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
apt-get install cvs
cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
myth3gp
myth3gp mycabledir/1002_20110304230958.nuv test
myth3gp ./mycabledir/1002_20110304230958.nuv test
myth3gp /home/ranjith/work/mycabledir/1002_20110304230958.nuv test
cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
ls
ifconfig\
ifconfig
/usr/local/sbin/DarwinStreamingServer
mythtv-setup
mythtv-setup
mythtv-setup
exit
mythtv-setup
mythtvbackend
mythbackend
mythv-setup
mythtvsetup
mythtv-setup
mythtv-setup
mythtv-setup
mythtv-setup
ps -ax
kill -all mythtv
kill 4388
kill 4422
mythtv-setup
mythtv-setup
mythbackend
mythbackend
mythbackend
mythfrontend
mythtvbackend
mythbackend
nvidia-xconfig
nvidia-xconfig
lspci
dpkg-reconfigure -phigh xserver-xorg
apt-get install build-essential linux-headers-`uname -r`
konqueror
mytv-setup
mythtv-setup
mythfrontend
nythbackend
mythbackend
mythtv-setup
exit
mythfrontend
mythtv-setup
lspci
apt-get install xawtv
scantv -c /dev/video0 -C /dev/vbi0 -o ~/.xawtv
scantv -c /dev/video0 -C /dev/vbi0 -o ~/.xawtv
xawtv
man xawtv
scantv -c /dev/video0 -C /dev/vbi0 -o ~/.xawtv
xawtv4
man scantv
scantv -c /dev/video0 -C /dev/vbi0 -a -o ~/.xawtv
xawtv
xawtv
xawtv
xawtv
man xawtv
ls ~
cp ~/.xawtv $HOME/.xawtv
kwrite ~/.xawtv
xawtv
xawtv
exit
xawtv
vlc
exit
exit
kwrite ~/.xawtv
xawtv
scantv -C /dev/vbi0
xawtv
xawtv
xawtv
arecord -l
cat /proc/asound/version
/sbin/alsa-utils stop
alsaconf
gnome-alsamixer
vlc --list | grep alsa
exit
xawtv
vlc
wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update
apt-get install ffmpeg libavcodec-extra-52
exit
kwrite myvlc.sh
ls
chmod 777 myvlc.sh
ls
./myvlc.sh
exit
apt-get install ivtv-utils
v4l2-ctl -F
v4l2-ctl -F
kwrite ./myvlc.sh
kwrite ./myvlc.sh
kwrite ./myvlc.sh
kwrite ./myvlc.sh
v4l-ctl -F
kwrite ./myvlc.sh
exit
kwrite
chmod 777 darwinssd.sh
mv darwinssd.sh /etc/rc.d/init.d/
mv darwinssd.sh /etc/init.d/
chkconfig darwinssd on
mv /etc/init.d/darwinssd.sh /etc/init.d/darwinssd
chkconfig darwinssd on
service darwinssd restart
kwrite /etc/init.d/darwinssd
service darwinssd restart
kwrite /etc/init.d/dss
chmod +x /etc/init.d/dss
update-rc.d dss defaults
konqueror
usermod -a -G root ranjith
exit
ls /usr/local/movies
ls /usr/local/movies -al
chmod 777 /usr/local/movies
ls -al /usr/local/movies
exit
konqueror
lspci | grep audio
lspci | grep Audio
alsaconfig
alsa-config
aplay -l
cat /proc/asound/version
alsaconf
/sbin/alsa-utils stop
apt-get -y install build-essential ncurses-dev gettext xmlto libasound2-dev
apt-get -y install linux-headers-`uname -r` libncursesw5-dev
cd ~
ls ~/alsa*
rm -rf ~/alsa*
rm -rf ~/.pulse*
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.23.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.23.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.23.tar.bz2
rm -rf /usr/src/alsa
mkdir -p /usr/src/alsa
cd /usr/src/alsa
cp ~/alsa* .
tar xjf alsa-driver*
tar xjf alsa-lib*
tar xjf alsa-utils*
cd alsa-driver*
./configure
make
make install
cd ../alsa-lib*
./configure
make
make install
cd alsa-utils
cd ../alsa-utils
cd ../alsa-utils*
./configure
make
make install
rm -f ~/alsa-driver*
rm -f ~/alsa-lib*
rm -f ~/alsa-utils*
cat /proc/asound/version
alsaconf
aplay -l
apt-get remove linux-backports-modules-alsa-`uname -r`
more /etc/modprobe.d/sound.conf
more /etc/modprobe.d/alsa-base.conf
cd $HOME
ls -la
alsaconf
aplay -L
aplay -l
cat /proc/asound/version
ls /dev/snd
alsaconf
lshw
speaker-test -Dhdmi -c6 -r48000 -FS16_LE
aplay -l
alsamixer
alsamixer
alsamixer
alsamixer
speaker-test -Dhdmi -c6 -r48000 -FS16_LE
alsaconf
aplay -l
nano /etc/modprobe.d/alsa-base.conf
kwrite /etc/modprobe.d/alsa-base.conf
alsaconf
alsaconf
alsamixer
alsamixer
alsactl
alsaconf
alsamixer
alsamixer
alsactl store
alsamixer
alsaconf -vvv
man alsaconf
alsaconf -L log.txt
kwrite log.txt
speaker-test -D plughw:1,7 -c 2 /dev/urandom
aplay -l
speaker-test -D plughw:1,3 -c 2 /dev/urandom
speaker-test -D plughw:1,3 -c 2 /dev/urandom
speaker-test -D hdmi:CARD=NVidia -c 2 /dev/urandom
alist -l
aplay -l
kwrite /etc/modprobe.d/alsa-base.conf
alsaconfg
alsaconf
alsamixet
alsamixer
alist -l
aplay -l
lspci | grep Audio
modprobe snd-emu10k1
cat /dev/urandom > /dev/dsp
alsaconf
aplay -L
kmix
apt-get install kmix
kmix
kwrite /etc/modprobe.d/alsa-base.conf
kwrite /etc/modprobe.d/alsa-base.conf
kwrite /etc/pulse/default.pa
aplay -l
groups
usermod -a -G audio ranjith
groups
alsaconf
alsamixer
groups
exit
kwrite /etc/asound.conf
kwrite /etc/modprobe.d/alsa-base.conf
kwrite /etc/modprobe.d/alsa-base.conf
alist -l
aplay -l
alsaconf
alsamixer
kmix
speaker-test -D plughw:1,3 -c2 /dev/urandom
aplay -l
speaker-test -D plughw:1,7 -c2 /dev/urandom
speaker-test -D plughw:1,9 -c2 /dev/urandom
speaker-test -D plughw:1,9 -c6 /dev/urandom
speaker-test -D plughw:1,9 -c6 /dev/urandom
aplay -l
speaker-test -D plughw:1,9 -c6 /dev/urandom
kwrite /etc/modprobe.d/alsa-base.conf
kwrite /etc/pulse/default.pa
alsactl store
speaker-test -D plughw:1,9 -c6 /dev/urandom
speaker-test -D plughw:1,9 -c6 /dev/urandom
kmixer
kmix
speaker-test -D plughw:1,9 -c6 /dev/urandom
gstreamer-proprties
alsa-info
alsamixer
alsamixer
groups
groups
adduser
adduser ranjith audio
adduser ranjith plugdev
chmod 777 /dev/snd/*
asoundconf
alsamixer
alsaconf
alsaconf
speaker-test -D plughw:1,9 -c6 /dev/urandom
kmix
mplayer
mplayer
kwrite /etc/modprobe.d/alsa-base.conf
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
cat /proc/driver/nvidia/version
grep eld_valid /proc/asound/NVidia/eld*
kwrite /etc/modprobe.d/alsa-base.conf
update-initramfs -u
kwrite /etc/pulse/default.pa
rm -r ~/.pulse ~/.asound* ~/.pulse-cookie
kwrite /etc/pulse/default.pa
kwrite /etc/modprobe.d/alsa-base.conf
update-initramfs -u
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -l
aplay -L
aplay -Dplughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
kwrite /etc/modprobe.d/alsa-base.conf
update-initramfs -u
aplay -l
alsaconf
kwrite /etc/modprobe.d/alsa-base.conf
update-initramfs -u
alsaconf
alsamixer
aplay -l
speaker-test -D plughw:1,3 -c6 /dev/urandom
speaker-test -D plughw:1,9 -c6 /dev/urandom
kwrite /etc/modprobe.d/alsa-base.conf
update-initramfs -u
kwrite /etc/asound.conf
aplay -l
speaker-test -D plughw:1,9 -c6 /dev/urandom
kwrite /etc/pulse/default.pa
speaker-test -D plughw:1,9 -c6 /dev/urandom
aplay -Dplughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Noise.wav
aplay /usr/share/sounds/login.wav
aplay /usr/share/sounds/gnome/default/alerts/glass.ogg
aplay /usr/share/sounds/gnome/default/alerts/glass.ogg
aplay /usr/share/sounds/gnome/default/alerts/glass.ogg
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
kwrite /etc/pulse/default.pa
kwrite /etc/asound.conf
apt-get install asoundconf-gtk alsa-oss libasound2 libasound2-plugins padevchooser gstreamer0.10-pulseaudio ubuntu-restricted-extras
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
killall pulseaudio
alsa force-reload
pulseaudio -D
exit
pulseaudio -D
pulseaudio --system -D
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Noise.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Noise.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
alsaconf
alsamixer
speaker-test -D plughw:1,9 -c6 /dev/urandom
aplay -Dplughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -l
kmix
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
speaker-test -D plughw:1,9 -c6 /dev/urandom
aplaay
aplay
speaker-test -D plughw:1,9 -c6 /dev/urandom
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
mplayer
aplay -l
kwrite /etc/pulse/daemon.conf
aplay -l
alsamixer
kmix
aplay -L
kwrite /etc/pulse/daemon.conf
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
kwrite /etc/asound.conf
kwrite /etc/modprobe.d/alsa-base.conf
alsaconf
=========================================================
sudo su
sudo su
sudo su
exit
sudo
sudo su
sudo su
sudo svn
sudo su
pwd
cd ../..
pwd
cd etc
cd ldap
pwd
ls
vi ldap.conf
vi slapd.conf
kwrite slapd.conf
vi slapd.conf
sudo su
sudo su
sudo su
vlc
sudo su
vlc
sudo su
ls /var/www
ngrep
man ngrep
cd /usr/bin
pwd
ls -ltr
exit
sudo su
exit
sudo su
exit
sudo su
exit
konqueror
sudo su
exit
sudo su
exit
sudo su
mysql -uroot -proot
exit
sudo su
dmesg
sudo su
login mythtv
su mythtv
sudo su
su mythtv
sudo su
su mythtv
sudo su
su mythtv
sudo su
ifconfig
sudo mythbackend
sudo mythtv-setup
sudo mythbackend
sudo mythtv-setup
dmesg
sudo apt-get install kino
sudo kino
dmesg
sudo kino
sudo su
gksudo
gksudo kino
sudo su
gksudo kino
sudo su
vlc -v
sudo su
cd work/
cd ..
ls
cd work/
ls
cd cd ..
cd ..
ls
cd captures/
ls
cd ../work/
ls
exit
sudo su
sudo sysinfo
sudo su
su
sudo su
sudo /etc/init.d/gdm stop
sudo sh /usr/src/nvidia-driver
sudo reboot
sudo su
vlc
mplayer /dev/video0
vlc -vvv --color v4l:///dev/video0:norm=pal:frequency=543250:size=640x480:channel=1:adev=/dev/dsp:audio=1
vlc -vvv --color v4l:///dev/video0:norm=pal:frequency=802500:size=640x480:channel=1:adev=/dev/dsp:audio=1
scantv
scantv -C /dev/vbi0
xawtv
vlc
scantv -C /dev/vbi0
kwrite ~/.xawtv
sudo su
vlc --list | grep alsa
vlc
vlc --alsa-samplerate=32000
vlc
sudo su
vlc
xawtv
killall vlc
ps -ax
vlc
sudo apt-get install ffmpeg libavcodec-extra-52
sudo su
vlc
xawtv
vlc
sudo su
ls
./myvlc.sh
dmesg
v4l2-ctl -F
apt-get install ivtv-utils
sudo su
vlc -vvv
kwrite myvlc.sh
kwrite ./myvlc.sh
sudo ./myvlc.sh
sudo su
./myvlc.sh
xawtv
./myvlc.sh
ls
cp myvlc.sh myvlc_stop.sh
mv myvlc.sh myvlc_start.sh
ls
nano myvlc_stop.sh
OA
nano myvlc_stop.sh
./myvlc_start.sh
nano myvlc_start.sh
./myvlc_start.sh
ps -ax
nano myvlc_start.sh
./myvlc_start.sh
ps -ax
ls
nano tvstream.pid
nano myvlc_stop.sh
./myvlc_stop.sh
cp myvlc_start.sh vlc_cmd_start.sh
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
nano vlc_cmd_start.sh
exit
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
nano vlc_cmd_start.sh
v4l2-ctl -f
v4l2-ctl -F
v4l2-ctl -f 823250
v4l2-ctl -f 823.250
./vlc_cmd_start.sh
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
v4l2-ctl -F
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
ps
ps -ax
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
sudo su
pwd
./dss_vlc.sh
ifconfig
vlc
vlc /usr/local/movies/sample_h264_300kbit.mp4 --sout='#transcode{soverlay,ab=48,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=512,height=288,vfilter=\"canvas{width=512,height=288,aspect=16:9}\",fps=25,vb=384,venc=x264{vbv-bufsize=200,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,qpmax=51}}:gather:rtp{mp4a-latm,dst=127.0.0.1,port-audio=20000,port-video=20002,ttl=127,sdp=file:/usr/local/movies/movie.sdp}'
vlc /usr/local/movies/sample_h264_1mbit.mp4 --sout='#transcode{soverlay,ab=48,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=512,height=288,vfilter=\"canvas{width=512,height=288,aspect=16:9}\",fps=25,vb=384,venc=x264{vbv-bufsize=200,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,qpmax=51}}:gather:rtp{mp4a-latm,dst=127.0.0.1,port-audio=20000,port-video=20002,ttl=127,sdp=file:/usr/local/movies/movie.sdp}'
cp dss_vlc.sh /usr/local/movies/
id ranjith
usermod -a -G root ranjith
sudo su
id ranjith
cp dss_vlc.sh /usr/local/movies/
id ranjith
vlc /usr/local/movies/sample_h264_1mbit.mp4 --sout='#transcode{soverlay,ab=48,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=512,height=288,vfilter=\"canvas{width=512,height=288,aspect=16:9}\",fps=25,vb=384,venc=x264{vbv-bufsize=200,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,qpmax=51}}:gather:rtp{mp4a-latm,dst=127.0.0.1,port-audio=20000,port-video=20002,ttl=127,sdp=file:/usr/local/movies/movie.sdp}'
./dss_vlc.sh
sudo ./dss_vlc.sh
./dss_vlc.sh
ls /usr/local/movies/
./dss_vlc.sh
vlc -vvv input_stream --sout '#rtp{dst=192.168.0.12,port=1234,sdp=rtsp://server.example.org:8080/test.sdp}'
vlc -vvv /usr/local/movies/sample_300kbit.mp4 --sout '#rtp{dst=192.168.1.4,port=1234,sdp=rtsp://192.168.1.13:8080/test.sdp}'
vlc -vvv /usr/local/movies/sample_h264_1mbit.mp4 --sout '#rtp{dst=192.168.1.4,port=1234,sdp=rtsp://192.168.1.13:8080/test.sdp}'
vlc -vvv /usr/local/movies/sample_50kbit.3gp --sout '#rtp{dst=192.168.1.4,port=1234,sdp=rtsp://192.168.1.13:8080/test.sdp}'
ls /usr/local/movies/
./dss_vlc.sh
xawtv
v4l2 -F
v4l2
./dss_vlc.sh
sudo su
vlc
ls /usr/local/movies/
vlc
ls /usr/local/movies/
vlc
ls /usr/local/movies/
vlc
ls /usr/local/movies/
ls /usr/local/movies/ -al
vlc
v4l2
sudo v4l2
sudo v4l2-ctl -F
sudo su
sudo alsaconf
sudo su
aplay -l
alsaconf
sudo su
sudo groups
aplay -l
sudo su
sudo killall pulseaudio
sudo su
pulseaudio -D
sudo su
==============================================
1.aplay -l and aplay -L
should list nvidia devices
there may be multiple devices
in the form of
2.need to download latest alsa source and compile and install it
3.check alsamixer , it should list pulse audio with all 4 input for 5.1 unmuted
4.check alsaconf it may show no pci devices
5.in bios disable on board audio
6.install kmix
7.install pulse audio suite
apt-get install asoundconf-gtk alsa-oss libasound2 libasound2-plugins padevchooser gstreamer0.10-pulseaudio ubuntu-restricted-extras
8.in application sound video, pulse audio device chooser,pulse audio volume control should come
9.in tray sound preferences, disable nvidia hdmi hardware
10.kwrite /etc/modprobe.d/alsa-base.conf --- add
update-initramfs -u
#my added
#options snd-hda-intel enable_msi=0 probe_mask=0xfff2
#options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2
options snd-hda-intel enable_msi=0 index=-2
#options snd-hda-intel enable_msi=0 index=1
11.kwrite /etc/asound.conf
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
12.kwrite /etc/pulse/daemon.conf
default-sample-channels = 6
13.aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
14.speaker-test -D plughw:1,9 -c6 /dev/urandom
15. kwrite /etc/pulse/default.pa
#myentry
#load-module module-alsa-sink device=hdmi:NVidia
load-module module-alsa-sink device=plughw:1,9
16.cat /proc/driver/nvidia/version
17.application,sound and video, alsamix gui should show nvidia,and all channels
18.http://ubuntuforums.org/archive/index.php/t-1598489.html
19.gstreamer-properties
20.tried to make it work with onkyo tx sr 508, default resolution gave problem while playing hd youtube videos.Changed resolution it started working
============================================================
apt-get install libavc1394-dev
apt-get install libraw1394-dev
apt-get install libiec61833-dev
apt-get install libiec61883-dev
vlc -vvv dv/rawdv:///dev/raw1394 --dv-caching 10000 --sout '#transcode{vcodec=WMV2,vb=512,scale=1,acodec=mp3,ab=192,channels=2,fps=25.0}:std{access=mmsh,mux=asfh,url=:8080}'
exit
apt-get install ffmpeg
exitexit
exit
apt-get update
apt-get install vlc libdvdcss2
cd work/
cd ..
cd work/
ls
exit
konqueror
sysconfig
sysinfo
apt-get install sysinfo
sysinfo
uname -r
uname -a
dmesg
lspci | vga
lspci |grep VGA
konqueror
lspci | grep VGA
lspci | grep VGA
cd work/
ls
mkdir mynvidia
cd mynvidia/
mv ../../Desktop/NVIDIA-Linux-x86-260.19.36_gt220.run .
ls
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.original
dpkg-reconfigure -phigh xserver-xorg
apt-get install build-essential linux-headers-`uname -r`
apt-get --purge remove $(dpkg -l | grep nvidia | awk '{print $2}')
cp NVIDIA-Linux-x86-260.19.36_gt220.run /usr/src
cd /usr/src/
ls
install NVIDIA-Linux-x86-260.19.36_gt220.run /usr/src
cd /home/ranjith/work/mynvidia/
ls
install NVIDIA-Linux-x86-260.19.36_gt220.run /usr/src
ln -s /usr/src/NVIDIA-Linux-x86-260.19.36_gt220.run /usr/src/nvidia-driver
/etc/init.d/gdm stop
sh /usr/src/nvidia-driver
reboot
aplay -l
find /lib/modules/`uname -r` | grep snd
lspci -v | less
nvidia-xconfig
konqueror
aplay -l
ifconfig
..konqueror
konqueror
ifconfig
mythbackend
mythsetup
mythtvsetup
myth-setup
mythtv-setup
mythbackend
mythbackend
mythbackend
mythbackend
mythbackend
mythtv-setup
mythbackend
mythtv-setup
mythtv-setup
mythtv-setup
mythbackend
mythtv-setup
mythbackend
mythtv-setup
mythbackend
mythbackend
df -h
mythtv-setup
++
mythtv-setup
mythbackend
~
mythbackend
apt-get install gpac
apt-get install darwin
apt-get install Darwin
apt-get install DSS
mplayer
apt-get update && sudo apt-get upgrade
apt-get install build-essential
addgroup -system qtss
adduser -system -no-create-home -ingroup qtss qtss
cd /usr/local/src/
mv /home/ranjith/Desktop/lstoll-dss-83615fb.tar.gz .
ls
tar -xvf lstoll-dss-83615fb.tar.gz
ls
cd lstoll-dss-83615fb
./Buildit install
cd DarwinStreamingSrvr6.0.3-L2-Linux
./Install
kwrite
apt-get install kwrite
kwrite
mv myth3gp /usr/local/bin
mkdir /home/ranjith/work/mythvid
kwrite /usr/local/bin/myth3gp
myth3gp
chmod 777 /usr/local/bin/myth3gp
myth3gp
ls /home/ranjith/work/mycabledir/
myth3gp /home/ranjith/work/mycabledir/1002_20110304231812.nuv somename
myth3gp /home/ranjith/work/mycabledir/1002_20110304231812.nuv somename
ls /home/ranjith/work/mythvid
cd work/
cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
apt-get install cvs
cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
myth3gp
myth3gp mycabledir/1002_20110304230958.nuv test
myth3gp ./mycabledir/1002_20110304230958.nuv test
myth3gp /home/ranjith/work/mycabledir/1002_20110304230958.nuv test
cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
ls
ifconfig\
ifconfig
/usr/local/sbin/DarwinStreamingServer
mythtv-setup
mythtv-setup
mythtv-setup
exit
mythtv-setup
mythtvbackend
mythbackend
mythv-setup
mythtvsetup
mythtv-setup
mythtv-setup
mythtv-setup
mythtv-setup
ps -ax
kill -all mythtv
kill 4388
kill 4422
mythtv-setup
mythtv-setup
mythbackend
mythbackend
mythbackend
mythfrontend
mythtvbackend
mythbackend
nvidia-xconfig
nvidia-xconfig
lspci
dpkg-reconfigure -phigh xserver-xorg
apt-get install build-essential linux-headers-`uname -r`
konqueror
mytv-setup
mythtv-setup
mythfrontend
nythbackend
mythbackend
mythtv-setup
exit
mythfrontend
mythtv-setup
lspci
apt-get install xawtv
scantv -c /dev/video0 -C /dev/vbi0 -o ~/.xawtv
scantv -c /dev/video0 -C /dev/vbi0 -o ~/.xawtv
xawtv
man xawtv
scantv -c /dev/video0 -C /dev/vbi0 -o ~/.xawtv
xawtv4
man scantv
scantv -c /dev/video0 -C /dev/vbi0 -a -o ~/.xawtv
xawtv
xawtv
xawtv
xawtv
man xawtv
ls ~
cp ~/.xawtv $HOME/.xawtv
kwrite ~/.xawtv
xawtv
xawtv
exit
xawtv
vlc
exit
exit
kwrite ~/.xawtv
xawtv
scantv -C /dev/vbi0
xawtv
xawtv
xawtv
arecord -l
cat /proc/asound/version
/sbin/alsa-utils stop
alsaconf
gnome-alsamixer
vlc --list | grep alsa
exit
xawtv
vlc
wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update
apt-get install ffmpeg libavcodec-extra-52
exit
kwrite myvlc.sh
ls
chmod 777 myvlc.sh
ls
./myvlc.sh
exit
apt-get install ivtv-utils
v4l2-ctl -F
v4l2-ctl -F
kwrite ./myvlc.sh
kwrite ./myvlc.sh
kwrite ./myvlc.sh
kwrite ./myvlc.sh
v4l-ctl -F
kwrite ./myvlc.sh
exit
kwrite
chmod 777 darwinssd.sh
mv darwinssd.sh /etc/rc.d/init.d/
mv darwinssd.sh /etc/init.d/
chkconfig darwinssd on
mv /etc/init.d/darwinssd.sh /etc/init.d/darwinssd
chkconfig darwinssd on
service darwinssd restart
kwrite /etc/init.d/darwinssd
service darwinssd restart
kwrite /etc/init.d/dss
chmod +x /etc/init.d/dss
update-rc.d dss defaults
konqueror
usermod -a -G root ranjith
exit
ls /usr/local/movies
ls /usr/local/movies -al
chmod 777 /usr/local/movies
ls -al /usr/local/movies
exit
konqueror
lspci | grep audio
lspci | grep Audio
alsaconfig
alsa-config
aplay -l
cat /proc/asound/version
alsaconf
/sbin/alsa-utils stop
apt-get -y install build-essential ncurses-dev gettext xmlto libasound2-dev
apt-get -y install linux-headers-`uname -r` libncursesw5-dev
cd ~
ls ~/alsa*
rm -rf ~/alsa*
rm -rf ~/.pulse*
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.23.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.23.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.23.tar.bz2
rm -rf /usr/src/alsa
mkdir -p /usr/src/alsa
cd /usr/src/alsa
cp ~/alsa* .
tar xjf alsa-driver*
tar xjf alsa-lib*
tar xjf alsa-utils*
cd alsa-driver*
./configure
make
make install
cd ../alsa-lib*
./configure
make
make install
cd alsa-utils
cd ../alsa-utils
cd ../alsa-utils*
./configure
make
make install
rm -f ~/alsa-driver*
rm -f ~/alsa-lib*
rm -f ~/alsa-utils*
cat /proc/asound/version
alsaconf
aplay -l
apt-get remove linux-backports-modules-alsa-`uname -r`
more /etc/modprobe.d/sound.conf
more /etc/modprobe.d/alsa-base.conf
cd $HOME
ls -la
alsaconf
aplay -L
aplay -l
cat /proc/asound/version
ls /dev/snd
alsaconf
lshw
speaker-test -Dhdmi -c6 -r48000 -FS16_LE
aplay -l
alsamixer
alsamixer
alsamixer
alsamixer
speaker-test -Dhdmi -c6 -r48000 -FS16_LE
alsaconf
aplay -l
nano /etc/modprobe.d/alsa-base.conf
kwrite /etc/modprobe.d/alsa-base.conf
alsaconf
alsaconf
alsamixer
alsamixer
alsactl
alsaconf
alsamixer
alsamixer
alsactl store
alsamixer
alsaconf -vvv
man alsaconf
alsaconf -L log.txt
kwrite log.txt
speaker-test -D plughw:1,7 -c 2 /dev/urandom
aplay -l
speaker-test -D plughw:1,3 -c 2 /dev/urandom
speaker-test -D plughw:1,3 -c 2 /dev/urandom
speaker-test -D hdmi:CARD=NVidia -c 2 /dev/urandom
alist -l
aplay -l
kwrite /etc/modprobe.d/alsa-base.conf
alsaconfg
alsaconf
alsamixet
alsamixer
alist -l
aplay -l
lspci | grep Audio
modprobe snd-emu10k1
cat /dev/urandom > /dev/dsp
alsaconf
aplay -L
kmix
apt-get install kmix
kmix
kwrite /etc/modprobe.d/alsa-base.conf
kwrite /etc/modprobe.d/alsa-base.conf
kwrite /etc/pulse/default.pa
aplay -l
groups
usermod -a -G audio ranjith
groups
alsaconf
alsamixer
groups
exit
kwrite /etc/asound.conf
kwrite /etc/modprobe.d/alsa-base.conf
kwrite /etc/modprobe.d/alsa-base.conf
alist -l
aplay -l
alsaconf
alsamixer
kmix
speaker-test -D plughw:1,3 -c2 /dev/urandom
aplay -l
speaker-test -D plughw:1,7 -c2 /dev/urandom
speaker-test -D plughw:1,9 -c2 /dev/urandom
speaker-test -D plughw:1,9 -c6 /dev/urandom
speaker-test -D plughw:1,9 -c6 /dev/urandom
aplay -l
speaker-test -D plughw:1,9 -c6 /dev/urandom
kwrite /etc/modprobe.d/alsa-base.conf
kwrite /etc/pulse/default.pa
alsactl store
speaker-test -D plughw:1,9 -c6 /dev/urandom
speaker-test -D plughw:1,9 -c6 /dev/urandom
kmixer
kmix
speaker-test -D plughw:1,9 -c6 /dev/urandom
gstreamer-proprties
alsa-info
alsamixer
alsamixer
groups
groups
adduser
adduser ranjith audio
adduser ranjith plugdev
chmod 777 /dev/snd/*
asoundconf
alsamixer
alsaconf
alsaconf
speaker-test -D plughw:1,9 -c6 /dev/urandom
kmix
mplayer
mplayer
kwrite /etc/modprobe.d/alsa-base.conf
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
cat /proc/driver/nvidia/version
grep eld_valid /proc/asound/NVidia/eld*
kwrite /etc/modprobe.d/alsa-base.conf
update-initramfs -u
kwrite /etc/pulse/default.pa
rm -r ~/.pulse ~/.asound* ~/.pulse-cookie
kwrite /etc/pulse/default.pa
kwrite /etc/modprobe.d/alsa-base.conf
update-initramfs -u
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -l
aplay -L
aplay -Dplughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
kwrite /etc/modprobe.d/alsa-base.conf
update-initramfs -u
aplay -l
alsaconf
kwrite /etc/modprobe.d/alsa-base.conf
update-initramfs -u
alsaconf
alsamixer
aplay -l
speaker-test -D plughw:1,3 -c6 /dev/urandom
speaker-test -D plughw:1,9 -c6 /dev/urandom
kwrite /etc/modprobe.d/alsa-base.conf
update-initramfs -u
kwrite /etc/asound.conf
aplay -l
speaker-test -D plughw:1,9 -c6 /dev/urandom
kwrite /etc/pulse/default.pa
speaker-test -D plughw:1,9 -c6 /dev/urandom
aplay -Dplughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Noise.wav
aplay /usr/share/sounds/login.wav
aplay /usr/share/sounds/gnome/default/alerts/glass.ogg
aplay /usr/share/sounds/gnome/default/alerts/glass.ogg
aplay /usr/share/sounds/gnome/default/alerts/glass.ogg
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
kwrite /etc/pulse/default.pa
kwrite /etc/asound.conf
apt-get install asoundconf-gtk alsa-oss libasound2 libasound2-plugins padevchooser gstreamer0.10-pulseaudio ubuntu-restricted-extras
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
killall pulseaudio
alsa force-reload
pulseaudio -D
exit
pulseaudio -D
pulseaudio --system -D
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Noise.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Noise.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
alsaconf
alsamixer
speaker-test -D plughw:1,9 -c6 /dev/urandom
aplay -Dplughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -l
kmix
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
speaker-test -D plughw:1,9 -c6 /dev/urandom
aplaay
aplay
speaker-test -D plughw:1,9 -c6 /dev/urandom
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
aplay -Dplughw:1,9 /usr/share/sounds/alsa/Front_Center.wav
mplayer
aplay -l
kwrite /etc/pulse/daemon.conf
aplay -l
alsamixer
kmix
aplay -L
kwrite /etc/pulse/daemon.conf
aplay /usr/share/sounds/KDE-Im-Phone-Ring.ogg
kwrite /etc/asound.conf
kwrite /etc/modprobe.d/alsa-base.conf
alsaconf
=========================================================
sudo su
sudo su
sudo su
exit
sudo
sudo su
sudo su
sudo svn
sudo su
pwd
cd ../..
pwd
cd etc
cd ldap
pwd
ls
vi ldap.conf
vi slapd.conf
kwrite slapd.conf
vi slapd.conf
sudo su
sudo su
sudo su
vlc
sudo su
vlc
sudo su
ls /var/www
ngrep
man ngrep
cd /usr/bin
pwd
ls -ltr
exit
sudo su
exit
sudo su
exit
sudo su
exit
konqueror
sudo su
exit
sudo su
exit
sudo su
mysql -uroot -proot
exit
sudo su
dmesg
sudo su
login mythtv
su mythtv
sudo su
su mythtv
sudo su
su mythtv
sudo su
su mythtv
sudo su
ifconfig
sudo mythbackend
sudo mythtv-setup
sudo mythbackend
sudo mythtv-setup
dmesg
sudo apt-get install kino
sudo kino
dmesg
sudo kino
sudo su
gksudo
gksudo kino
sudo su
gksudo kino
sudo su
vlc -v
sudo su
cd work/
cd ..
ls
cd work/
ls
cd cd ..
cd ..
ls
cd captures/
ls
cd ../work/
ls
exit
sudo su
sudo sysinfo
sudo su
su
sudo su
sudo /etc/init.d/gdm stop
sudo sh /usr/src/nvidia-driver
sudo reboot
sudo su
vlc
mplayer /dev/video0
vlc -vvv --color v4l:///dev/video0:norm=pal:frequency=543250:size=640x480:channel=1:adev=/dev/dsp:audio=1
vlc -vvv --color v4l:///dev/video0:norm=pal:frequency=802500:size=640x480:channel=1:adev=/dev/dsp:audio=1
scantv
scantv -C /dev/vbi0
xawtv
vlc
scantv -C /dev/vbi0
kwrite ~/.xawtv
sudo su
vlc --list | grep alsa
vlc
vlc --alsa-samplerate=32000
vlc
sudo su
vlc
xawtv
killall vlc
ps -ax
vlc
sudo apt-get install ffmpeg libavcodec-extra-52
sudo su
vlc
xawtv
vlc
sudo su
ls
./myvlc.sh
dmesg
v4l2-ctl -F
apt-get install ivtv-utils
sudo su
vlc -vvv
kwrite myvlc.sh
kwrite ./myvlc.sh
sudo ./myvlc.sh
sudo su
./myvlc.sh
xawtv
./myvlc.sh
ls
cp myvlc.sh myvlc_stop.sh
mv myvlc.sh myvlc_start.sh
ls
nano myvlc_stop.sh
OA
nano myvlc_stop.sh
./myvlc_start.sh
nano myvlc_start.sh
./myvlc_start.sh
ps -ax
nano myvlc_start.sh
./myvlc_start.sh
ps -ax
ls
nano tvstream.pid
nano myvlc_stop.sh
./myvlc_stop.sh
cp myvlc_start.sh vlc_cmd_start.sh
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
nano vlc_cmd_start.sh
exit
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
nano vlc_cmd_start.sh
v4l2-ctl -f
v4l2-ctl -F
v4l2-ctl -f 823250
v4l2-ctl -f 823.250
./vlc_cmd_start.sh
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
v4l2-ctl -F
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
ps
ps -ax
nano vlc_cmd_start.sh
./vlc_cmd_start.sh
sudo su
pwd
./dss_vlc.sh
ifconfig
vlc
vlc /usr/local/movies/sample_h264_300kbit.mp4 --sout='#transcode{soverlay,ab=48,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=512,height=288,vfilter=\"canvas{width=512,height=288,aspect=16:9}\",fps=25,vb=384,venc=x264{vbv-bufsize=200,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,qpmax=51}}:gather:rtp{mp4a-latm,dst=127.0.0.1,port-audio=20000,port-video=20002,ttl=127,sdp=file:/usr/local/movies/movie.sdp}'
vlc /usr/local/movies/sample_h264_1mbit.mp4 --sout='#transcode{soverlay,ab=48,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=512,height=288,vfilter=\"canvas{width=512,height=288,aspect=16:9}\",fps=25,vb=384,venc=x264{vbv-bufsize=200,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,qpmax=51}}:gather:rtp{mp4a-latm,dst=127.0.0.1,port-audio=20000,port-video=20002,ttl=127,sdp=file:/usr/local/movies/movie.sdp}'
cp dss_vlc.sh /usr/local/movies/
id ranjith
usermod -a -G root ranjith
sudo su
id ranjith
cp dss_vlc.sh /usr/local/movies/
id ranjith
vlc /usr/local/movies/sample_h264_1mbit.mp4 --sout='#transcode{soverlay,ab=48,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=512,height=288,vfilter=\"canvas{width=512,height=288,aspect=16:9}\",fps=25,vb=384,venc=x264{vbv-bufsize=200,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,qpmax=51}}:gather:rtp{mp4a-latm,dst=127.0.0.1,port-audio=20000,port-video=20002,ttl=127,sdp=file:/usr/local/movies/movie.sdp}'
./dss_vlc.sh
sudo ./dss_vlc.sh
./dss_vlc.sh
ls /usr/local/movies/
./dss_vlc.sh
vlc -vvv input_stream --sout '#rtp{dst=192.168.0.12,port=1234,sdp=rtsp://server.example.org:8080/test.sdp}'
vlc -vvv /usr/local/movies/sample_300kbit.mp4 --sout '#rtp{dst=192.168.1.4,port=1234,sdp=rtsp://192.168.1.13:8080/test.sdp}'
vlc -vvv /usr/local/movies/sample_h264_1mbit.mp4 --sout '#rtp{dst=192.168.1.4,port=1234,sdp=rtsp://192.168.1.13:8080/test.sdp}'
vlc -vvv /usr/local/movies/sample_50kbit.3gp --sout '#rtp{dst=192.168.1.4,port=1234,sdp=rtsp://192.168.1.13:8080/test.sdp}'
ls /usr/local/movies/
./dss_vlc.sh
xawtv
v4l2 -F
v4l2
./dss_vlc.sh
sudo su
vlc
ls /usr/local/movies/
vlc
ls /usr/local/movies/
vlc
ls /usr/local/movies/
vlc
ls /usr/local/movies/
ls /usr/local/movies/ -al
vlc
v4l2
sudo v4l2
sudo v4l2-ctl -F
sudo su
sudo alsaconf
sudo su
aplay -l
alsaconf
sudo su
sudo groups
aplay -l
sudo su
sudo killall pulseaudio
sudo su
pulseaudio -D
sudo su
==============================================
Sunday, April 24, 2011
linux gfx stack
1.Every app has a window associated with it
2.Every window can have multiple surfaces associated with it
3.Every surface has multiple objects drawn on it
4.Surface and window are abstractions provided by x system
5.Meaning the physical memory object for both are provided by x system
6.An application draws an object on its surface and tells the x
7.x does a local processing for that current window,then combines processing with all the other windows
8.x then makes it into a frame buffer
9.writes to the hardware(frame buffer may be a hw buffer, so writing will reach the hw directly)
10.above was software render
11.for hw render, each window and surface , object would have a corresponding handle, memory within the hardware memory
12.each application will have its own private memory in hw
13.every write from hw will get into hw directly, no combining operation done by x
14.the hw internally does the combining
15.mixed rendering, some app uses hw and sw surfaces
16.sw surfaces uses the first method and creates a frame buffer
17,hw surfaces writes into app private memory in hw
18.hw combines both and creates the final output
2.Every window can have multiple surfaces associated with it
3.Every surface has multiple objects drawn on it
4.Surface and window are abstractions provided by x system
5.Meaning the physical memory object for both are provided by x system
6.An application draws an object on its surface and tells the x
7.x does a local processing for that current window,then combines processing with all the other windows
8.x then makes it into a frame buffer
9.writes to the hardware(frame buffer may be a hw buffer, so writing will reach the hw directly)
10.above was software render
11.for hw render, each window and surface , object would have a corresponding handle, memory within the hardware memory
12.each application will have its own private memory in hw
13.every write from hw will get into hw directly, no combining operation done by x
14.the hw internally does the combining
15.mixed rendering, some app uses hw and sw surfaces
16.sw surfaces uses the first method and creates a frame buffer
17,hw surfaces writes into app private memory in hw
18.hw combines both and creates the final output
hw codecs
1.xine player, mplayer
2.xine has xvmc through which hardware mpeg decoders are accessed, also xine supports via gfx card
3.mplayer also supports xvmc but for nvidia gfx
4.vlc also supports somethings
5.ffmpeg contains a list of codecs
6.gstreamer is a framework
7.not only 1080p but its bit rate also matters in a playback
8.mplayer can use coreavc to decode using cpu h.264
9.apple quick time supports h264
10.linux h264
http://www.linuxjournal.com/article/9005
11.http://developer.nvidia.com/tegra/forum/support-h264-hardware-accelator-support-libavcodec
12.terminologies and interrelations
http://forum.videolan.org/viewtopic.php?t=9647
13.new flow
vlc,xine,mplayer--->ffmpeg-->libavcodec-->vaapi-->vpdau-->driver-->hw-->hwcodec
14.http://www.nvnews.net/vbulletin/showthread.php?t=131050
15.http://forums.gentoo.org/viewtopic-t-836517-start-0.html
16.http://www.linuxquestions.org/questions/slackware-14/how-to-enable-libvdpau-libva-vaapi-and-mplayer-with-nvidia-driver-855574/
17.on linux 10.10
http://www.webupd8.org/2010/10/use-mplayer-with-vaapi-support-hardware.html
18.http://www.linux.com/news/software/developer/31582-multicore-video-decoding-with-mplayer-part-2
19.http://superuser.com/questions/109388/how-do-i-get-vdpau-working-with-ubuntu-9-10
20.nvidia gt220 supports vdpau
http://phoronix.com/forums/showthread.php?20182-FFmpeg-Gains-VDPAU-MPEG-4-ASP-Acceleration
21,https://bbs.archlinux.org/viewtopic.php?id=115794
2.xine has xvmc through which hardware mpeg decoders are accessed, also xine supports via gfx card
3.mplayer also supports xvmc but for nvidia gfx
4.vlc also supports somethings
5.ffmpeg contains a list of codecs
6.gstreamer is a framework
7.not only 1080p but its bit rate also matters in a playback
8.mplayer can use coreavc to decode using cpu h.264
9.apple quick time supports h264
10.linux h264
http://www.linuxjournal.com/article/9005
11.http://developer.nvidia.com/tegra/forum/support-h264-hardware-accelator-support-libavcodec
12.terminologies and interrelations
http://forum.videolan.org/viewtopic.php?t=9647
13.new flow
vlc,xine,mplayer--->ffmpeg-->libavcodec-->vaapi-->vpdau-->driver-->hw-->hwcodec
14.http://www.nvnews.net/vbulletin/showthread.php?t=131050
15.http://forums.gentoo.org/viewtopic-t-836517-start-0.html
16.http://www.linuxquestions.org/questions/slackware-14/how-to-enable-libvdpau-libva-vaapi-and-mplayer-with-nvidia-driver-855574/
17.on linux 10.10
http://www.webupd8.org/2010/10/use-mplayer-with-vaapi-support-hardware.html
18.http://www.linux.com/news/software/developer/31582-multicore-video-decoding-with-mplayer-part-2
19.http://superuser.com/questions/109388/how-do-i-get-vdpau-working-with-ubuntu-9-10
20.nvidia gt220 supports vdpau
http://phoronix.com/forums/showthread.php?20182-FFmpeg-Gains-VDPAU-MPEG-4-ASP-Acceleration
21,https://bbs.archlinux.org/viewtopic.php?id=115794
nvidia hardware codec
1.http://en.wikipedia.org/wiki/Nvidia_PureVideo
Different generations of nvidia each have added internally hw codecs for video and audio in addition to hw rendering optimizations and features
2.The container is made and parsed in software, the contents of the container are then hooked to video/audio hw accel inside
3.http://www.guru3d.com/article/geforce-gt-430-review/4
4.geforce 4 can decode mpeg 4 in hardware
mkv
x264
h264
aac
dts
5.http://en.wikipedia.org/wiki/VDPAU
6.If VDPAU is supported on card , card can do codec and graphics accel
7.vlc has support for it, vlc has support for sw codec too
8.http://penguindreams.org/blog/nvidias-hardware-h264-1080p-codec-in-linux/
Different generations of nvidia each have added internally hw codecs for video and audio in addition to hw rendering optimizations and features
2.The container is made and parsed in software, the contents of the container are then hooked to video/audio hw accel inside
3.http://www.guru3d.com/article/geforce-gt-430-review/4
4.geforce 4 can decode mpeg 4 in hardware
mkv
x264
h264
aac
dts
5.http://en.wikipedia.org/wiki/VDPAU
6.If VDPAU is supported on card , card can do codec and graphics accel
7.vlc has support for it, vlc has support for sw codec too
8.http://penguindreams.org/blog/nvidias-hardware-h264-1080p-codec-in-linux/
Saturday, April 23, 2011
dv/hd cam movies documentaries
1.http://forums.creativecow.net/thread/162/869630
tv dimension , resolution
1.tv has the dimension x:y
2.witin x:y resol a:b can be laid out
3.as the resolution goes down, max resolution supported is redistributed to act as lower one OR a small portion of the screen will be used for it
3.the hardware might adjust the incoming resolution to fit to target resolutions
4.the graphics hw have different modes of operation
5.all must support the basic mode
6.1080p is by todays std the most precise defenition
http://www.geek.com/hdtv-buyers-guide/resolution/
7.
http://www.tomshardware.com/forum/264009-33-resolution-close-1080p
8.http://en.wikipedia.org/wiki/File:Vector_Video_Standards2.svg
2.witin x:y resol a:b can be laid out
3.as the resolution goes down, max resolution supported is redistributed to act as lower one OR a small portion of the screen will be used for it
3.the hardware might adjust the incoming resolution to fit to target resolutions
4.the graphics hw have different modes of operation
5.all must support the basic mode
6.1080p is by todays std the most precise defenition
http://www.geek.com/hdtv-buyers-guide/resolution/
7.
http://www.tomshardware.com/forum/264009-33-resolution-close-1080p
8.http://en.wikipedia.org/wiki/File:Vector_Video_Standards2.svg
ubuntu check if hw acceleration is enabled
1.http://ubuntuforums.org/showthread.php?t=205119
discussion on best hd 1080p file/stream
1.http://forum.xbmc.org/showthread.php?t=80600
2.http://www.avforums.com/forums/ps3-media-streaming/921436-best-format-stream-1080p.html
3.http://www.avforums.com/forums/tvs/480769-smallest-size-support-1080p-format.html
4.sample test videos
http://www.avsforum.com/avs-vb/showthread.php?t=1181902
2.http://www.avforums.com/forums/ps3-media-streaming/921436-best-format-stream-1080p.html
3.http://www.avforums.com/forums/tvs/480769-smallest-size-support-1080p-format.html
4.sample test videos
http://www.avsforum.com/avs-vb/showthread.php?t=1181902
vlc windows
1 logging --
vlc --extraintf=logger --verbose=2 --logfile=C:\vlc.log --logmode=text --file-logging --save-config
vlc --extraintf=logger --verbose=2 --logfile=C:\vlc.log --logmode=text --file-logging --save-config
wifi interconnect
1.mob modules forming an interconnect
2.destinations are fixed like one or two
3.based on distance from destinations cells are organized as groups of lines
4.members of lines are dynamic
5.while migrating between lines its info needs to be exchanged between others
6.together with gps, it can exactly pin point the final node at the precise point accessible
2.destinations are fixed like one or two
3.based on distance from destinations cells are organized as groups of lines
4.members of lines are dynamic
5.while migrating between lines its info needs to be exchanged between others
6.together with gps, it can exactly pin point the final node at the precise point accessible
proj - 1
1. device A worn as glass that captures what is seen by user and transmitted across with audio, rdp need not see what the user sees because it transmits a restricted area remotely
streaming and relay
1.http://soundscreen.com/streaming/relay.html
2.on a same system, vlc captures and encodes the stream
generates the sdp in a shared folder
dss takes the sdp as source of stream
-----------------src---------dst---------src---------dst-----dst
vlc----->sdp--------->dss<------------------->dss<--------------->vlc,realplayer,qtplayer
pc0------pc0---------pc0---------------------pc 1----------------pc2
3.http://www.wowzamedia.com/downloads/forums/qtss/www/README.html
4.http://helpdocs.westserver.net/v3/sitemanager/Darwin_Stream_Server.htm
5.http://forum.videolan.org/viewtopic.php?t=61587&f=2
2.on a same system, vlc captures and encodes the stream
generates the sdp in a shared folder
dss takes the sdp as source of stream
-----------------src---------dst---------src---------dst-----dst
vlc----->sdp--------->dss<------------------->dss<--------------->vlc,realplayer,qtplayer
pc0------pc0---------pc0---------------------pc 1----------------pc2
3.http://www.wowzamedia.com/downloads/forums/qtss/www/README.html
4.http://helpdocs.westserver.net/v3/sitemanager/Darwin_Stream_Server.htm
5.http://forum.videolan.org/viewtopic.php?t=61587&f=2
nexus s and android kernel
1.buy nexus s through android market place
2.follow the link http://forum.androidcentral.com/samsung-nexus-s-rooting-roms-hacks/48675-how-compile-nexus-s-kernel-source.html
2.follow the link http://forum.androidcentral.com/samsung-nexus-s-rooting-roms-hacks/48675-how-compile-nexus-s-kernel-source.html
Friday, April 22, 2011
modified setup at home
1.fm radio,tvtuner,dv cam,vcr,tape recorder,mobile phone ---> given as input capture devices to vlc
2.hdmovie data base on NAS given to Darwin( via vlc)?? darwin can stream without vlc
3.The above two redirected to pc with Nvidia Graphics card and Creative SB card
4.The 3 is redirected to Onkyo A/V receiver. via Composite,Dvi,HDMI
5.Also some in above can be directly connected to LCD tv(More the RCA,HDMI inputs on
LCD the better)
6.why all this ? well we've converged HD on INTERNET,HD on cable --> into TV ALSO HD on INET/TV will be accessible from any where on internet as well
2.hdmovie data base on NAS given to Darwin( via vlc)?? darwin can stream without vlc
3.The above two redirected to pc with Nvidia Graphics card and Creative SB card
4.The 3 is redirected to Onkyo A/V receiver. via Composite,Dvi,HDMI
5.Also some in above can be directly connected to LCD tv(More the RCA,HDMI inputs on
LCD the better)
6.why all this ? well we've converged HD on INTERNET,HD on cable --> into TV ALSO HD on INET/TV will be accessible from any where on internet as well
gstreamer and v4l , alsa
1.gstreamer defines a set of data structs, and entry point prototypes for
multimedia pipeline
2.Each component of the pipeline has its set(ds,fptrs)
3.v4l,alsa,oss etc were designed and developed independent of this pipeline
4.gstreamer wrapped the v4l/alsa calls in its interfaces and exposed to the user
5.so earlier what was like app-->v4l-->driver-->hw now became app-->gstreamer-->v4l-->gstreamer-->driver-->hw etc ...
multimedia pipeline
2.Each component of the pipeline has its set(ds,fptrs)
3.v4l,alsa,oss etc were designed and developed independent of this pipeline
4.gstreamer wrapped the v4l/alsa calls in its interfaces and exposed to the user
5.so earlier what was like app-->v4l-->driver-->hw now became app-->gstreamer-->v4l-->gstreamer-->driver-->hw etc ...
mobile streaming - 1
1.given a network speed
adjust capture
adjust transcode
adjust output
parameters to get the best performance
would involve
1.adjusting sample rate and bit rate of a/v, even resolution
2.adjusting type of encoding used
3. step 1 & 2 will be dependent, some (rate,resol) goes good with some encoding
4.choose best out if remote has facility to play all OR choose best based on remotes
capability
adjust capture
adjust transcode
adjust output
parameters to get the best performance
would involve
1.adjusting sample rate and bit rate of a/v, even resolution
2.adjusting type of encoding used
3. step 1 & 2 will be dependent, some (rate,resol) goes good with some encoding
4.choose best out if remote has facility to play all OR choose best based on remotes
capability
mobile streaming
1.command line
capture:transcode:output
2.capture
audio
======
sample rate
audio bitrate
video
=====
frame numbers
aspect ratio
video bit rate
resolution
3.transcode
audio encoder
video encoder
resolution
4.output
mode(mms,rtp,sdp,udp,http)
capture:transcode:output
2.capture
audio
======
sample rate
audio bitrate
video
=====
frame numbers
aspect ratio
video bit rate
resolution
3.transcode
audio encoder
video encoder
resolution
4.output
mode(mms,rtp,sdp,udp,http)
Sunday, April 10, 2011
vlc tips
1.for http capture pc is server, ip is any ip , client will start later connect to server
2.for rtp cature pc specifies dst ip,if client connects to dst streaming happens
3.for rtsp, capture pc needs to specify sdp = rtsp://..../test.sdp
2.for rtp cature pc specifies dst ip,if client connects to dst streaming happens
3.for rtsp, capture pc needs to specify sdp = rtsp://..../test.sdp
vlc overview
main modules and their uses in vlc
===================================
http://www.videolan.org/doc/vlc-user-guide/en/ch02.html
DirectShow(win)+ Directsound===v4l2(lin) + alsa
gstreamer defines interfaces and contexts for all components of A/V pipe
directshow does the same on windows
v4l and alsa becomes a sub component of gstreamer
vlc uses v4l2/alsa interface directly for A/V
gstreamer plugins are interfaces that wrap around v4l2/alsa apis and make them
consistant with gstreamer specifications
so if vlc was not written in adherence to gstreamer spec, vlc is not a gstreamer app
arch
====
A,B,C,D
v4l2 - C
v4l2 uses D
vlc - B
B uses C
A - gstreamer
B-->C-->D
A-->C-->D
A-->D
Wednesday, April 6, 2011
vlc and tv tuners
1.keep ready xawtv,mplayer,aplay,arecord
2.identify your video capture device like /dev/video0
3.identify your audio capture device like plughw:1,0
4.video device will be exported by v4l2
5.audio device will be exported by alsa
6.vlc needs to set width and height for proper video ... w/h should be multiple of 16
like 384x320
5.vlc needs ffmpeg for common video and audio codecs.video codecs are easily obtained.audio codecs needs to be downloaded later especially for aac.needs to do
that from 3rd party repository.follow ffmpeg link
6.in vlc->tools menu there are options to see if video/audio codecs and stats
7.xawtv can fetch channels from a list, and set it as the current for v4l2.scantv
can search for frequecies with signals
8.vlc step 1 is to set the capture device and its parameters
9.it can be tested by doing a local play
10.once local play is successful, select stream ..choose mode of streaming, type of
transcoding is selected
11.For frequency selection install ivtv-utils
12.v4l2-ctl -F
13.v4l2-ctl -f
11.vlc captures raw stream from hw,vlc transcodes it on the fly before sending over
network
2.identify your video capture device like /dev/video0
3.identify your audio capture device like plughw:1,0
4.video device will be exported by v4l2
5.audio device will be exported by alsa
6.vlc needs to set width and height for proper video ... w/h should be multiple of 16
like 384x320
5.vlc needs ffmpeg for common video and audio codecs.video codecs are easily obtained.audio codecs needs to be downloaded later especially for aac.needs to do
that from 3rd party repository.follow ffmpeg link
6.in vlc->tools menu there are options to see if video/audio codecs and stats
7.xawtv can fetch channels from a list, and set it as the current for v4l2.scantv
can search for frequecies with signals
8.vlc step 1 is to set the capture device and its parameters
9.it can be tested by doing a local play
10.once local play is successful, select stream ..choose mode of streaming, type of
transcoding is selected
11.For frequency selection install ivtv-utils
12.v4l2-ctl -F
13.v4l2-ctl -f
11.vlc captures raw stream from hw,vlc transcodes it on the fly before sending over
network
Friday, March 4, 2011
mythtv news
1.mythtv + vlc + transcoding --> on lan streaming
2.mythtv + vlc-http + transcoding --> live web streaming
3.mythtv + ffmpeg + vlc-http --> deferred live
3.mythtv + mythweb --> recording selection over web
5.http://www.mythtvtalk.com/live-tv-via-web-browser-13053/
2.mythtv + vlc-http + transcoding --> live web streaming
3.mythtv + ffmpeg + vlc-http --> deferred live
3.mythtv + mythweb --> recording selection over web
5.http://www.mythtvtalk.com/live-tv-via-web-browser-13053/
Wednesday, March 2, 2011
Android pending work
1.hal components, compilable with source independently using Ant
2.shared library to interface with audioflinger
3.shared library to interface with surfaceflinger
4.MIO components, encoder and decoder
5.MIO bridges with DSP
6.interface components with opencore
7.interface components with mediaframework
8.interface components with pvplayer
9.fb emulation to use with sf
10.alsa emulation to use with af
2.shared library to interface with audioflinger
3.shared library to interface with surfaceflinger
4.MIO components, encoder and decoder
5.MIO bridges with DSP
6.interface components with opencore
7.interface components with mediaframework
8.interface components with pvplayer
9.fb emulation to use with sf
10.alsa emulation to use with af
av receivers
1.av recvr TX SR 608 with hdmi input (1.4a)
2.mediaplayer with lan and hdmi, the hdmi connected to av switch
3.mediaplayer - streaming video on lan redirected to hdmi(1.3a) and hence to tv, netgear eva2000 (LAN)
http://www.iboum.com/pr/net2000live.php
3.remove item 3 above, go with normal pc with pci hdmi adapter,
nvidia GT220,hdmiv1.3a,1080p
4.bridging DG834Gv3_WDS_ WGR614V9.pdf, WGR has 4 lan port
5.DG834v3 needs fw upgrade
6.wireless keyboard logitech k350 -- together with boxee for linux
7.price
wgr614 - 2000
eva2000 - 6000 x
hdmi pci - 2000
recvr - 20000
hdmi cable - 2000
k350 - 2000
2.mediaplayer with lan and hdmi, the hdmi connected to av switch
3.mediaplayer - streaming video on lan redirected to hdmi(1.3a) and hence to tv, netgear eva2000 (LAN)
http://www.iboum.com/pr/net2000live.php
3.remove item 3 above, go with normal pc with pci hdmi adapter,
nvidia GT220,hdmiv1.3a,1080p
4.bridging DG834Gv3_WDS_ WGR614V9.pdf, WGR has 4 lan port
5.DG834v3 needs fw upgrade
6.wireless keyboard logitech k350 -- together with boxee for linux
7.price
wgr614 - 2000
eva2000 - 6000 x
hdmi pci - 2000
recvr - 20000
hdmi cable - 2000
k350 - 2000
entry week
week 1
======
1.non technical configuration
1.1 use for development pc virtualization or not
2.technical tools configuration, mail, svn, bugtracker, editor, compiler, debugger dry run
man pages, online help links
week 2
======
3.technical work overview
4.technical current project architecture, source walkthrough
5.walk time assertions, prints, reentrancy, software state machine, hardware state machine
6.technical current project dry run under debugger
6.1 method of testing, types of servers
week 3
======
7.technical feature addition requirements
8.task breakdown
9.module binaries, directories,files,interfaces,data structures, functions
or
10. from scratch design
week 4
======
10.work
======
1.non technical configuration
1.1 use for development pc virtualization or not
2.technical tools configuration, mail, svn, bugtracker, editor, compiler, debugger dry run
man pages, online help links
week 2
======
3.technical work overview
4.technical current project architecture, source walkthrough
5.walk time assertions, prints, reentrancy, software state machine, hardware state machine
6.technical current project dry run under debugger
6.1 method of testing, types of servers
week 3
======
7.technical feature addition requirements
8.task breakdown
9.module binaries, directories,files,interfaces,data structures, functions
or
10. from scratch design
week 4
======
10.work
Tuesday, January 11, 2011
windows dispatcher, irql, paged
1.miniport state
http://msdn.microsoft.com/en-us/library/ms810029.aspx
http://msdn.microsoft.com/en-us/library/ff543701(v=vs.85).aspx
2.pnp state
http://www.phdcc.com/wdmarticle.html
http://msdn.microsoft.com/en-us/library/ms810029.aspx
http://msdn.microsoft.com/en-us/library/ff543701(v=vs.85).aspx
2.pnp state
http://www.phdcc.com/wdmarticle.html
Saturday, January 8, 2011
windows stack function
1.a calling function pushes the arguments,stores the return address,previous esp value,jumps to
called function
2.called function stores stores the current stack frame ptr in esp and stores local variables in stack
3.when called function returns it invalidates local variables, uses stored ebp value and jumps to return address after invalidating arguments
called function
2.called function stores stores the current stack frame ptr in esp and stores local variables in stack
3.when called function returns it invalidates local variables, uses stored ebp value and jumps to return address after invalidating arguments
Friday, January 7, 2011
windows dma another take
http://msdn.microsoft.com/en-us/library/ff540590(v=vs.85).aspx
1.wdm dma
uses IoGetDmaAdapter
DeviceDescription parameter in this determines map buffer or scatter gather method
2.map buffer dma
AllocateAdapterChannel uses user mode mdl request
it checks preallocated map registers
when dma is possible for the adapter, adapter routine is called
from adapter routine, map transfer for mdl,length is done.it returned the device logical address
the device logical address is programmed into the hardware
return deallocate adapter
for scatter gather simulation call maptransfer continuously,each map transfer is 1 map register,1 sge,maximum of num of map register for which maptransfer can be called depends on IoGetDmaAdapter
The above step is for single irp, and sequential processing
3.scatter gather dma
for a single irp driver calls getscattergatherlist,which invokes adapterlistcontrol routine
adapterlistcontrol has gets sgl,mapregisterbase
after a dma for current fdo is finished ,its map registers should be freed so that another fdo
in the system can do a allocateadapterchannel adaptercontrol callback
so dma hops from one fdo to another like isr searching entire system.
Also we can allocate a commonbuffer and skip adaptercontrol and do the dma directly.this is
because for common buffer we already get the device logical address(phy address),in former we
had to wait for the adapter control to get the map register and then call maptransfer to get the
device logical address
In get/setscattergatherlist method we can parallelly issue multiple getscattergatherlist and
then adapterlistcontrolgets called async,we process the sgl input and program the device
2.ndis dma
NdisMInitializescattergatherlist() if called uses get/setscattergatherlist method above.
otherwise, the first method is used.
A serialized nic uses NdisMAllocateMapRegisters
A deserialized one uses other
the first method allocates shared memory,copy data into shared memory,get map register using
NdisMStartBufferPhysicalMapping the resultant device logical address is programmed,maybe shared
memory address is directly used,output is similar to sgl but for single mdl
maptransfer gives output single mapregister entry with length.this can be multiple contiguous
physical page.the length of output is given in one of the parameters.
max dma size lso - 64k
max dma offld - 1mb
1.wdm dma
uses IoGetDmaAdapter
DeviceDescription parameter in this determines map buffer or scatter gather method
2.map buffer dma
AllocateAdapterChannel uses user mode mdl request
it checks preallocated map registers
when dma is possible for the adapter, adapter routine is called
from adapter routine, map transfer for mdl,length is done.it returned the device logical address
the device logical address is programmed into the hardware
return deallocate adapter
for scatter gather simulation call maptransfer continuously,each map transfer is 1 map register,1 sge,maximum of num of map register for which maptransfer can be called depends on IoGetDmaAdapter
The above step is for single irp, and sequential processing
3.scatter gather dma
for a single irp driver calls getscattergatherlist,which invokes adapterlistcontrol routine
adapterlistcontrol has gets sgl,mapregisterbase
after a dma for current fdo is finished ,its map registers should be freed so that another fdo
in the system can do a allocateadapterchannel adaptercontrol callback
so dma hops from one fdo to another like isr searching entire system.
Also we can allocate a commonbuffer and skip adaptercontrol and do the dma directly.this is
because for common buffer we already get the device logical address(phy address),in former we
had to wait for the adapter control to get the map register and then call maptransfer to get the
device logical address
In get/setscattergatherlist method we can parallelly issue multiple getscattergatherlist and
then adapterlistcontrolgets called async,we process the sgl input and program the device
2.ndis dma
NdisMInitializescattergatherlist() if called uses get/setscattergatherlist method above.
otherwise, the first method is used.
A serialized nic uses NdisMAllocateMapRegisters
A deserialized one uses other
the first method allocates shared memory,copy data into shared memory,get map register using
NdisMStartBufferPhysicalMapping the resultant device logical address is programmed,maybe shared
memory address is directly used,output is similar to sgl but for single mdl
maptransfer gives output single mapregister entry with length.this can be multiple contiguous
physical page.the length of output is given in one of the parameters.
max dma size lso - 64k
max dma offld - 1mb
common windbg commands
1.!analyze -v
2.lm
3.!sym noisy
4..reload /n
5.bl,bp,bc
6.ld
7.x
8.http://windbg.info/doc/1-common-cmds.html#7_symbols
9.lm vm module -- timestamp
10.http://blogs.technet.com/b/marcelofartura/archive/2008/06/18/kernel-dump-analysis-bugcheck-1e-kmode-exception-not-handled.aspx
11.http://www.wd-3.com/archive/registercontext.htm
12.
At the start of called function:
1.push ebp ; Save the old stack base
2.mov ebp, esp ; Stack base becomes the current top of the stack
3.sub esp, 0xc ; Save space for local variables
4.mov eax, [ebp+8] ; example reference to one of the parameters
==========================================
1.http://www.technochakra.com/assembly-and-the-art-of-debugging/
==========================================
2.lm
3.!sym noisy
4..reload /n
5.bl,bp,bc
6.ld
7.x
8.http://windbg.info/doc/1-common-cmds.html#7_symbols
9.lm vm module -- timestamp
10.http://blogs.technet.com/b/marcelofartura/archive/2008/06/18/kernel-dump-analysis-bugcheck-1e-kmode-exception-not-handled.aspx
11.http://www.wd-3.com/archive/registercontext.htm
12.
At the start of called function:
1.push ebp ; Save the old stack base
2.mov ebp, esp ; Stack base becomes the current top of the stack
3.sub esp, 0xc ; Save space for local variables
4.mov eax, [ebp+8] ; example reference to one of the parameters
==========================================
1.http://www.technochakra.com/assembly-and-the-art-of-debugging/
==========================================
windows qos application
1.DSMark is supported only from vista
http://blogs.msdn.com/b/wndp/rss.aspx?Tags=QoS
2.DSMark in 2003
http://technet.microsoft.com/en-us/library/cc737728(WS.10).aspx
3.reflection in driver
http://blogs.msdn.com/b/wndp/archive/2007/09/07/detecting-802-1p-priority-tags.aspx
4.http://blogs.msdn.com/b/wndp/archive/tags/qos/
5.code for checking dscp and 802.1Q
http://read.pudn.com/downloads118/sourcecode/hack/501599/Priority_Inspection_LWF/src/filter/filter.c__.htm
6.Flow control snippet
http://blogs.msdn.com/b/wndp/rss.aspx
7.http://msdn.microsoft.com/en-us/library/aa374094(v=VS.85).aspx
http://blogs.msdn.com/b/wndp/rss.aspx?Tags=QoS
2.DSMark in 2003
http://technet.microsoft.com/en-us/library/cc737728(WS.10).aspx
3.reflection in driver
http://blogs.msdn.com/b/wndp/archive/2007/09/07/detecting-802-1p-priority-tags.aspx
4.http://blogs.msdn.com/b/wndp/archive/tags/qos/
5.code for checking dscp and 802.1Q
http://read.pudn.com/downloads118/sourcecode/hack/501599/Priority_Inspection_LWF/src/filter/filter.c__.htm
6.Flow control snippet
http://blogs.msdn.com/b/wndp/rss.aspx
7.http://msdn.microsoft.com/en-us/library/aa374094(v=VS.85).aspx
Thursday, January 6, 2011
windows paging
1.http://www.winvistatips.com/difference-between-pageable-memory-and-nonpageable-memory-t184356.html
skb usage
1.http://vger.kernel.org/~davem/skb_data.html
2.http://book.chinaunix.net/special/ebook/oreilly/Understanding_Linux_Network_Internals/0596002556/understandlni-CHP-2-SECT-1.html
2.http://book.chinaunix.net/special/ebook/oreilly/Understanding_Linux_Network_Internals/0596002556/understandlni-CHP-2-SECT-1.html
kernel stack size
1. windows kernel
http://www.microsoft.com/whdc/driver/tips/kmstack.mspx
2.linux kernel
http://www.linuxquestions.org/questions/programming-9/does-the-linux-kernel-stack-size-fixed-417388/
3.wince
8k?
http://www.microsoft.com/whdc/driver/tips/kmstack.mspx
2.linux kernel
http://www.linuxquestions.org/questions/programming-9/does-the-linux-kernel-stack-size-fixed-417388/
3.wince
8k?
tap and tun in linux
1.http://backreference.org/2010/03/26/tuntap-interface-tutorial/
Wednesday, January 5, 2011
windows dma
1.http://blogs.msdn.com/b/peterwie/archive/2006/03/02/542517.aspx
2.http://blogs.msdn.com/b/peterwie/archive/2006/03/21/556624.aspx
3.http://www.osronline.com/article.cfm?article=539
2.http://blogs.msdn.com/b/peterwie/archive/2006/03/21/556624.aspx
3.http://www.osronline.com/article.cfm?article=539
windows self modifying code
1.http://support.microsoft.com/kb/127904
2.wbinvd - http://f.osdev.org/viewtopic.php?f=1&p=185436
3.cache prefetch - http://msdn.microsoft.com/en-us/library/ms684826(v=vs.85).aspx
4.Intel prefetch - http://lkml.indiana.edu/hypermail/linux/kernel/0109.3/0972.html
5.cache instructions pentium - http://flylib.com/books/en/2.630.1.134/1/
6.How cachegrind works
7.what cache instructios mean w.r.t code execution
we can insert a cache instruction anywhere between a piece of code.If the argument to cache instruction actually loads the next probable code or data beforehand its useful.
8.After a dma is completed to a buffer,it is only gurenteed that the data is present in the RAM.It might need to be brought to cache for processing.Its a good idea to bring its first cacheline to L2/L1 if we anticipate its processing.Assigning the pointer of that buffer to any local variable doesnt gurentee the above.
9.to understand the use of cache prefetches, imagine a while loop that uses a variable.whenever any member of that variable is used there are three possiblilities.the value is in ram,l2 or l1.so each access of the variable can have variable time of execution.if we are absolutely sure of the access pattern we can prefetch that variable into l1 cache if those values will be used immediately and into l2 cache if there can be a deferred use for eg: when a dpc is executed only that variables values are used(confirm this)
2.wbinvd - http://f.osdev.org/viewtopic.php?f=1&p=185436
3.cache prefetch - http://msdn.microsoft.com/en-us/library/ms684826(v=vs.85).aspx
4.Intel prefetch - http://lkml.indiana.edu/hypermail/linux/kernel/0109.3/0972.html
5.cache instructions pentium - http://flylib.com/books/en/2.630.1.134/1/
6.How cachegrind works
7.what cache instructios mean w.r.t code execution
we can insert a cache instruction anywhere between a piece of code.If the argument to cache instruction actually loads the next probable code or data beforehand its useful.
8.After a dma is completed to a buffer,it is only gurenteed that the data is present in the RAM.It might need to be brought to cache for processing.Its a good idea to bring its first cacheline to L2/L1 if we anticipate its processing.Assigning the pointer of that buffer to any local variable doesnt gurentee the above.
9.to understand the use of cache prefetches, imagine a while loop that uses a variable.whenever any member of that variable is used there are three possiblilities.the value is in ram,l2 or l1.so each access of the variable can have variable time of execution.if we are absolutely sure of the access pattern we can prefetch that variable into l1 cache if those values will be used immediately and into l2 cache if there can be a deferred use for eg: when a dpc is executed only that variables values are used(confirm this)
Tuesday, January 4, 2011
wince dma
0.http://blog.csdn.net/hugohong/archive/2009/05/28/4222880.aspx
1.http://support.microsoft.com/kb/299355
2.http://groups.google.com/group/microsoft.public.windowsce.platbuilder/browse_frm/thread/90975e5dd0887119/1e5539324ae5ad71?lnk=st&q&rnum=40&pli=1
3.cache routines in ce
http://msdn.microsoft.com/en-us/library/ms901761.aspx
4.http://us.generation-nt.com/arm-cache-flush-cache-invalidate-help-65004682.html
5.http://www.tech-archive.net/Archive/WindowsCE/microsoft.public.windowsce.embedded/2004-05/0175.html
1.http://support.microsoft.com/kb/299355
2.http://groups.google.com/group/microsoft.public.windowsce.platbuilder/browse_frm/thread/90975e5dd0887119/1e5539324ae5ad71?lnk=st&q&rnum=40&pli=1
3.cache routines in ce
http://msdn.microsoft.com/en-us/library/ms901761.aspx
4.http://us.generation-nt.com/arm-cache-flush-cache-invalidate-help-65004682.html
5.http://www.tech-archive.net/Archive/WindowsCE/microsoft.public.windowsce.embedded/2004-05/0175.html
Saturday, January 1, 2011
software development - what can go wrong
1.redundencies - essential data structures are repeated at many places.But sometimes it becomes necessary to keep redundency for eg in protocol development an upper layer will need to maintain the states of the lower layer.The idea here is not optimization but necessity to physically isolate a layer that can even go into hardware from software space.
2.Incomplete understanding of system environment in which the software runs.for eg
multithreaded nature of entry points,semantics of the return values of entry points,presumption of a concept to be same as a similar one.eg tdi interface works only in synchronous mode,trying to use it as async.
3.function redundencies
4.trying to create monolithic design,need to create binaries that work together,clearly separated interfaces and datastructures
5.not caring about the dont do's of sw development
6.non focussed approach
7.not having roadmap
8.not packaging
9.not having test cases
2.Incomplete understanding of system environment in which the software runs.for eg
multithreaded nature of entry points,semantics of the return values of entry points,presumption of a concept to be same as a similar one.eg tdi interface works only in synchronous mode,trying to use it as async.
3.function redundencies
4.trying to create monolithic design,need to create binaries that work together,clearly separated interfaces and datastructures
5.not caring about the dont do's of sw development
6.non focussed approach
7.not having roadmap
8.not packaging
9.not having test cases
top down and bottom up development
1.Top down - within a period of time, minimal demoable product is made.After each successive period more and more features is added.So at each interval demoable
product is present.Progress is measurable at each interval.Design changes doesnt waste effort too much.
2.Bottom up - First demoable product takes time.multiple units work parallelly to
develop all the features.Integration and testing takes time.After the first stage things will be fast.The design has to be perfect from start otherwise the work done
will be void.
3.For TD approach, first interval will have the framework ready with few features.
Rest of the system development will fall into placeholders of the framework.
4.For time estimation - When deciding to add a feature or modify a feature,find how many .c files .h files will be affected,how many functions will be affected, if it
spans across 5 files and 5 functions it will defenitely take 1 day cycle of modification,review,testing.If its a new feature addition again idea has to be gathered for its imapact on the number of .c and .h files and code addition,review,testing cycle,again for (5,5) it will take around 2 days(because of white space filling code addition).
5.types of modification - no data structure addition/deletion with code changes,data structure addition/deletion with code changes
product is present.Progress is measurable at each interval.Design changes doesnt waste effort too much.
2.Bottom up - First demoable product takes time.multiple units work parallelly to
develop all the features.Integration and testing takes time.After the first stage things will be fast.The design has to be perfect from start otherwise the work done
will be void.
3.For TD approach, first interval will have the framework ready with few features.
Rest of the system development will fall into placeholders of the framework.
4.For time estimation - When deciding to add a feature or modify a feature,find how many .c files .h files will be affected,how many functions will be affected, if it
spans across 5 files and 5 functions it will defenitely take 1 day cycle of modification,review,testing.If its a new feature addition again idea has to be gathered for its imapact on the number of .c and .h files and code addition,review,testing cycle,again for (5,5) it will take around 2 days(because of white space filling code addition).
5.types of modification - no data structure addition/deletion with code changes,data structure addition/deletion with code changes
Subscribe to:
Posts (Atom)