you can start with something like this, to just show the cam in the
current screen :

gst-launch v4l2src ! ffmpegcolorspace ! xvimagesink


but gstlaunch (there is also a python binding : pygst ) is capable of
doing lots of unsuspected works...

here are some exemple of gstreamer queues I use to stream toward an
icecast server
( also thanks to Ptr /: http://www.l45.be/voidpointer/doku.php?id=pygst )

for a sound only queue :

gst-launch-0.10 alsasrc ! audio/x-raw-int,rate=44100,channels=2,depth=16
! queue ! audioconvert ! vorbisenc quality=0.8 ! oggmux ! tee name=tt !
queue ! filesink location=artsbirthday-day3-$datenum.ogg tt. ! queue !
shout2send ip=x.x.x.x port=8000 password=mypass mount=mount.ogg

for a firewirevideo :

gst-launch-0.10 videomixer name=mix ! ffmpegcolorspace ! video/x-raw-yuv
! queue ! theoraenc quality=32 name=venc \
oggmux name=mux ! tee name=tt ! queue ! filesink location=streamfile.ogg \
tt. ! queue ! shout2send mount=/stream.ogg port=8000 password=xxx ip=xxx \
alsasrc ! queue ! audioconvert ! vorbisenc name=aenc aenc. ! mux. \
venc. ! mux. \
dv1394src do-timestamp=true typefind=true ! queue ! dvdemux ! dvdec !
queue ! videorate ! videoscale ! ffmpegcolorspace ! video/x-raw-yuv,
width=352, height=288,framerate=15/1 ! videobox left=0 top=0
border-alpha=0 ! mix.

this blog post is quite what you want for the v4l2 cam control, simple
and all :

http://noraisin.net/~jan/diary/?p=40

...

this is a strange language but it become to make sense by using it ...

it's the most stable way I found out there, pd or orther have often an
instability on different machines / os / release ... gstlaunch is
working on a standard ubuntu live cd, so it's easy to hack a computer on
site ;)

Ol.
okno.be


Rob Canning wrote:
> Loz said :
>   
>> Hey,
>>
>> I've got a liveshow coming up in a few months, and writing an entirely
>> new set for it. I am hardware based, and currently only use p:d to run
>> seq24 for sequencing. I've got this idea, however, to have 2 webcams
>> at different positions next to my setup, so I can display their feed
>> to a projection behind me, just to add something a bit different to
>> it. If I can record it, that'd be even better.
>>
>> Does anyone know any software for p:d that will allow me to do this?
>>     
>
> gstreamer is very flexible for this kind of thing you could script somehtning 
> using the gst-launch command but you will have to get your hands dirty and 
> loose 
> a few days figuring out how it works if you are not famliar with it
> i bet there is a much easier solution using puredata and pidip or gem or 
> processing -
> or even easier with two instanves of vlc or something... depends on how dirty 
> and lost in learning you want to get :)
> rob
>
>   
>> Cheers,
>> Loz
>>
>> ---
>> [email protected]
>> http://identi.ca/group/puredyne
>> irc://irc.goto10.org/puredyne
>>
>>     
> --------------
> [email protected]
> rob.goto10.org
> --------------
>
> ---
> [email protected]
> http://identi.ca/group/puredyne
> irc://irc.goto10.org/puredyne
>
>   


---
[email protected]
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne

Reply via email to