domingo, 6 de marzo de 2011

Grabar desde webcam con gstreamer

Ejemplo 1:
gst-launch-0.10 v4l2src ! capsfilter ! tee ! queue ! xvidenc ! avimux ! filesink location = prueba

Ejemplo 2:
gst-launch v4l2src! video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace! ffenc_mpeg4 ! avimux! filesink location=1.mp4

Ejemplo 3:
gst-launch v4l2src ! "video/x-raw-yuv,width=640,height=480,framerate=30/1" ! queue ! videorate ! "video/x-raw-yuv,framerate=30/1" ! theoraenc! queue ! oggmux ! filesink location =miarchivo.ogg

Ejemplo 4:
gst-launch v4l2src ! 'video/x-raw-yuv,width=320,height=240, framerate=30/1' ! ffmpegcolorspace ! x264enc ! avimux ! filesink location=record.avi

Ejemplo video + audio:
gst-launch v4l2src ! queue ! ffmpegcolorspace! theoraenc ! queue ! oggmux name=mux alsasrc ! queue ! audioconvert ! vorbisenc ! queue ! mux. mux. ! queue ! filesink location = prueba.ogg

No hay comentarios:

Publicar un comentario