Friday, April 22, 2011

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 ...

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

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)

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

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

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/