the phrygian cap


luisbg

@luisbg

luis@debethencourt.com



Ohloh profile for Luis de Bethencourt
Blogalia




<Junio 2019
Lu Ma Mi Ju Vi Sa Do
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
             

Creative Commons License


planet gnome
planet ubuntu
alberto ruiz
andy wingo
jeff fortin
slomo's blog
jan schmidt
vincent's random waffle



"all religions, arts and sciences are branches of the same tree. all these aspirations are directed toward ennobling man's life, lifting it from the sphere of mere physical existence and leading the individual towards freedom." albert einstein

just shoot me








gstreamer is a very powerful and fun framework. just think about it as the reinvention of the unix pipeline, and an inmense library of multimedia elements to play with. you can even prototype a pipeline without needing to code, directly from the command line, use the gst-launch command to create a stream from element to element very quickly... which means pure hacky entertainment.

as you probably already know:
gst-launch v4l2src ! ffmpegcolorspace ! xvimagesink

will grab your webcam output, convert it to a format your xv understands, and show it in your screen. nice and simple, but most of you won't be able to avoid to look at the the screen with funny faces shortly.

awesome, but now you want to save those funny faces to a file, because eternity has the right to know about your facial muscles sillyness control. easy:

gst-launch v4l2src ! ffmpegcolorspace ! theoraenc ! oggmux ! filesink location=file.ogv

this grabs your webcam output, passes it to the format conversion that the theora encoder is happy with, and the ogg stream manipulator feeds it to an element that dumps it to a file with the desired location. play the video file with totem (which uses gstreamer). (btw... just for those of you starting with gstreamer; gst-inspect [element] is the command to learn anything about any element)

so the command line is great for prototyping, but now you want to code it. no problem! gstreamer has great python bindings. jono wrote a great simple first guide to getting started with gstreamer using the excellent python bindings.

v4l2src to file in python:
import pygst, gst, time

pipeline = gst.Pipeline()

v4l = gst.element_factory_make("v4l2src", "v4l")
colorspace = gst.element_factory_make("ffmpegcolorspace", "colorspace")
enc = gst.element_factory_make("theoraenc", "enc")
mux = gst.element_factory_make("oggmux", "mux")
sink = gst.element_factory_make("filesink", "sink")
sink.set_property("location", "file.ogv")

pipeline.add(v4l, colorspace, enc, mux, sink)

v4l.link(colorspace)
colorspace.link(enc)
enc.link(mux)
mux.link(sink)

pipeline.set_state(gst.STATE_PLAYING)
time.sleep(7)


straight-foward, isn'it? :)

so wouldn't it be nice if this could be automated so it would grab a few seconds of video every minute or few minutes? a videolog of what you do and what happens infront of your computer. going back to when you were laughing at that silly "leave britney alone" video, when you were frustrated with that job task, your kid being a kid when you arent around... or for example from my log:

9th of February 2009 @12:04:
[youtube video]

planet people watch the video here


Jan Schmidt being silly, his by default mode, while explaining/teaching me something. thanks!

you can download and check out the python code of selfshooter.py. named after how scared i am if myspace teenagers get a hold of gstreamer and this code :P

./selfshooter.py -s [seconds between cycle]

13 Comentarios


Referencias (TrackBacks)

URL de trackback de esta historia http://luisbg.blogalia.com//trackbacks/61887

Comentarios

1
De: Laura Fecha: 2009-02-11 16:05

Nice post and easy to follow if i ever decide to go play and break things



2
De: Bruce Cowan Fecha: 2009-02-11 18:28

I'm a nitpicker, but the extension of Ogg/Theora video should be ogv. The second gst-launch-0.10 command uses avi.



3
De: ethana2 Fecha: 2009-02-11 21:16

MySpace is for Windows users. Thanks! An awesome new video for my facebook!



4
De: ethana2 Fecha: 2009-02-11 21:18

By the way, Bruce, that's not correct. ogg is the Free codec container. Alternate extensions only confuse proprietary software and hardware, and extensions aren't needed by decent OSes in the first place.

I remember having to hunt down why in frick Ubuntu was saving ogg audio as .oga and use batch rename to get the files so they could play on my sister's Sansa and having to change that extension with gconf-editor on every machine in my family. ogg. That's it.



5
De: luisbg Fecha: 2009-02-11 21:39

from http://en.wikipedia.org/wiki/Ogg :

The term ‘Ogg’ is commonly used to refer to audio file format Ogg Vorbis, that is, Vorbis-encoded audio in the Ogg container. Previously, the .ogg file extension was used for any content distributed within Ogg, but as of 2007, the Xiph.Org Foundation requests that .ogg be used only for Vorbis due to backward compatibility concerns. The Xiph.Org Foundation decided to create a new set of file extensions and media types to describe different types of content such as .oga for audio only files, .ogv for video with or without sound (including Theora), and .ogx for applications



6
De: Onkar Fecha: 2009-02-12 08:26

Is it possible to replace the theora elements with dirac (schroedinger) elements? Do you have any sample tested pipeline using which I can convert webcam input to dirac video?



7
De: luisbg Fecha: 2009-02-12 14:36

onkar:

gst-launch v4l2src ! ffmpegcolorspace ! schroenc ! filesink location=file.drc

:)



8
De: Ishaan Lorelai Fecha: 2018-05-08 20:29

This is an awesome motivating article.I am practically satisfied with your great work.You put truly extremely accommodating data. Keep it up. Continue blogging. Hoping to perusing your next post. avocat succession



9
De: Rohit Sharma Fecha: 2018-09-04 09:38

Very usefull article thanks ... keep writing such articles :)
I'm so happy bcoz you are write this post for everyone thnxx a lot


Good night messages for girlfriend

Good Morning messages for girlfriend

Good night love SMS | Romantic Night SMS

Rohit sharma Accountant | Blogger

Good Night Messages For Her

Girlfriend Impress Images and Wallpapaer

I love u messages for girlfriend

Good Night Messages for mother

Good Night Images HD Wallpaper

Happy Diwali Wishes For Girlfriend

Diwali Wishes 2018

Good night messages wishes and quotes

Raksha Bandhan Wishes For Sister *Raksha Bandhan Wishes*

#50 Sweet Good Night Messages For Wife: Romantic Night Quotes For Wife

#50 *Girlfriend Propose Messages* Heart Touching

Good Morning Messages For Wife

Good Morning Messages For Friends

Happy New Year Wishes 2019: Best New Year Messages

I love u Messages for wife

i love u messages for dad

i love u messages for son

i love u messages for mother

good night messages for uncle and aunt

good night images for girlfriend

good night images for whatsapp and facebook

good night quotes messages , wishes, for husband

Good Morning Messages For Friends

Raksha Bandhan Images Brother and Sister

Love Shayari -Love Romantic Shayari

Best Whatsapp Status

Love Attitude Status For Girls & Boys




good night
good morning
happy birthday
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good night
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
good morning
Good night Messages
Good night Messages
Good night Messages
Good night Messages
Good night Messages
Good night Messages
Good night Messages
Good night Messages
Good night Messages
Good night Messages
Good night Messages
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night quotes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Good night wishes
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari/a>
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
best whatsapp status
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
Diwali Messages
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
good night messages for girlfriend
Night Text Messages For Her
Night Text Messages For Her
Night Text Messages For Her
Night Text Messages For Her
Night Text Messages For Her
Night Text Messages For Her

Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Girlfriend Collection
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Good Night Messages For Her
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Whatsapp Status | Romantic And Sad
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari
Love Shayari



10
De: web development company in patna Fecha: 2019-02-28 17:42

Web Ocean Design is the best IT services provider for complete mobile and web application development. The young development company based in Bihar, India, owned and managed by Vicky who have a good amount of experience in Information Technology, Management and other related fields. We provide technical and creative services ranging from Internet Marketing to Communication maneuver. We are also skilled in website development which includes brand promotion, web designing and software development.

||website design company in patna||
||website development company in patna||
||website development in patna||

||web design company in patna||
||web development company in patna||
||website design in patna||

||website design patna||
||seo company in patna||
||seo company in bihar||

||best seo company in patna||
||digital marketing company in patna||
||best website design company in patna l,||

||affordable seo service in patna||
||website optimization in patna||
||educational internet marketing company patna||

||social media marketing company patna||
||real estate seo company in patna||
||ecommerce seo company patna||



11
De: jaipur call girls Fecha: 2019-03-14 12:31

===========
sehzadi
===========
||Jaipur Escorts||
||Jaipur Call girls||
||Escort service in Jaipur||

===========
sweeti sinha
===========
||Jaipur Escorts||
||Escorts in Jaipur||
||Escort Services in Jaipur||

===========
saumyaa
===========

||Call girls in Jaipur||
||Jaipur Call girls||
||Jaipur escorts||

===========================================================================================================================

===========
sehzadi
===========
||Independent escorts in Jaipur
||Escort services in Jaipur
||Escorts in Jaipur

===========
sweeti sinha
===========
||Jaipur Escort||
||Escort in Jaipur||
||Escort service in Jaipur||

===========
saumyaa
===========
||Jaipur escort||
||Escorts in Jaipur||
||College escorts in Jaipur||

===========================================================================================================================
===========
sehzadi
===========
||College call girls in Jaipur||
||Call girls in Jaipur||
||Jaipur Escorts||
===========
sweeti sinha
===========
||Jaipur Call girls||
||Call Girls in Jaipur||
||Jaipur escorts||
===========
saumyaa
===========
||Bollywood escorts in Jaipur||
||Celebrity Escorts in Jaipur||
||Air hostess escorts in Jaipur||

===========================================================================================================================

==============
Jaipur escorts
==============

||College escorts in Jaipur
||Escort services in jaipur
||Escorts in jaipur

||Escort service in Jaipur
||Escorts in Jaipur
||Jaipur Escort service


||Call girls in Jaipur||
||Jaipur escorts||
||Call girl in Jaipur||

===============================================================================================================
===========
shreya-singh
===========
||Jaipur escorts||
||Escort service in Jaipur||
||Russian escorts in Jaipur||

||Jaipur call girl||
||Jaipur escorts||
||Model escorts in Jaipur||

||Air hostess escorts in Jaipur||
||Housewife escorts in Jaipur||
||College call girls in Jaipur||



===========
shreya-singh
===========
||Escorts in Jaipur||
||Jaipur call girls||
||Escort service in Jaipur||

||Call girls in Jaipur||
||Celebrity escorts in Jaipur||
||Call girl in Jaipur||



12
De: faridabad Escorts Fecha: 2019-03-14 12:32

||Call girls in Faridabad||
||escorts in Faridabad||
||Faridabad escorts||

||Faridabad escorts service||
||escort service in Faridabad||
||call girl Faridabad||

||Faridabad call girls||
||Faridabad escort service||
||independent escorts in Faridabad||

||independent call girls in Faridabad||
||high profile call girls in Faridabad||
||Russian escorts in Faridabad||

||college call girls in Faridabad||
||college escorts in Faridabad||
||air hostess escorts in Faridabad||

||escort agency in Faridabad||
||vip russian escorts in faridabad||
|| vip escorts services in faridabad||



13
De: event planner in delhi Fecha: 2019-03-26 12:52

manpowers in delhi
event planner in delhi
promoters in delhi

crew members in delhi
event planner company in delhi
event managers in delhi

manpower provider in delhi
best manpower provider in delhi
marriage event planner in delhi

===========================================

wedding planner in delhi
birthday planner in delhi
manpower resourses in delhi

auto expo 2019
manpower in delhi
Fabrication in delhi

decors in delhi
events in delhi
manpower resourses in delhi

===========================================
promoters in delhi
part time jobs in delhi
artist in delhi

dance troups in delhi
hostess in delhi
promoters in delhi

hotographers in delhi
images of auto expo 2019
stage events in delhi



Nombre
Correo-e
URL
Dirección IP: 54.85.162.213 (c7cd78f6fe)
Comentario
¿Cuánto es: diez mil + uno?

©2007-2015 luis de bethencourt guimera
powered by Blogalia