[PD] pdgst + Gem + pix_pix2gst yuv , pb streaming a webcam to an icecast server

Benjamin ~ 01xy benjah at free.fr
Mon Feb 4 02:17:26 CET 2013


Hello,

I'm trying to stream a webcam to an icecast server with pdgst and Gem 
with the attached patch
I managed to stream to icecast using [v4l2src] object, so without 
pix_pix2gst
pix2gst.pd example works
I managed to stream to icecast out of Pd using this command :
# gst-launch v4l2src ! video/x-raw-yuv,width=320,height=240 ! 
ffmpegcolorspace ! theoraenc quality=16 ! oggmux ! shout2send 
ip=labomedia.org port=8000 password=**** mount=live.ogv

but I can't create [video/x-raw-yuv] ("video/x-raw-yuv ... couldn't 
create) and [audio/x-raw-float channels=2] neither

and when I try without it with the attached patch, no error but no stream

tried with PD-extended 0.43.4, GEM: ver: 0.93.3 compiled: Jan 28 2013, 
Gstreamer 0.10.36-1 on linux mint debian (wheezy)

Does pix_pix2gst only works to "Loads in a movie with the videoIO 
framework" as written in the source code or with the pix_snap object ?
I also tried to stream the webcam using Pix_snap to feed pix_pix2gst 
with no success.
Did anybody already managed to use pdgst for video streaming ?

thanks for any tips
++Benjamin

PS : I can give the pwd of the icecast server in a private e-mail so as 
to prevent this pwd to be archived with the mailing list

== Pd log (4) ==
setting property 'ip'
setting property 'port'
setting property 'password'
setting property 'mount'
info:theora: __gst connect theoraenc1
info:ogg: __gst connect oggmux1
info:shout2send: __gst connect shout2send1
info:vorbis: __gst connect vorbisenc1
info:ogg: __gst connect oggmux1
info:shout2send: __gst connect shout2send1
info:ogg: __gst connect oggmux1
info:shout2send: __gst connect shout2send1
GEM: Only using 8 color bits
GEM: Direct Rendering enabled!
GEM: GLEW version 1.5.4
GEM: Start rendering
info: proplist numread 11
....
v4l2: GEM: pix_video: Opened video connection 0x16
info:theora: __gst connect theoraenc1
info:ogg: __gst connect oggmux1
info:shout2send: __gst connect shout2send1
info:vorbis: __gst connect vorbisenc1
info:ogg: __gst connect oggmux1
info:shout2send: __gst connect shout2send1
info:ogg: __gst connect oggmux1
info:shout2send: __gst connect shout2send1
info:pix2gst: stream_status 0 audiotestsrc1
info:pix2gst: stream_status 1 audiotestsrc1
info:pix2gst: stream_status 0 appsrc0
info:pix2gst: stream_status 1 appsrc0

-------------- next part --------------
#N canvas 601 157 1062 807 10;
#X obj -78 75 pdgst;
#X obj -60 51 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X msg -78 24 bang;
#X msg 544 80 \; pd dsp 1;
#X text -24 17 initialize;
#X text -21 51 ON / OFF;
#X obj -80 184 gemwin;
#X msg 5 184 destroy;
#X obj 289 357 ffmpegcolorspace;
#X msg -59 154 lighting \$1;
#X obj -59 135 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 357 321 infoprint pix2gst;
#X msg 244 267 is-live 1;
#X obj 273 102 print info;
#X obj 222 54 pix_video;
#X obj 222 391 pix_texture;
#X msg -80 107 dimen 640 480 \, create \, 1;
#X obj 414 501 oggmux;
#X obj 360 430 theoraenc;
#X obj 487 434 vorbisenc;
#X obj 414 658 shout2send;
#X obj 503 579 loadbang;
#X obj 414 687 infoprint shout2send;
#X obj 271 600 infoprint theora;
#X obj 436 530 infoprint ogg;
#X obj 503 457 infoprint vorbis;
#X obj 487 353 audioconvert;
#X obj 487 299 audiotestsrc;
#X obj 222 433 rectangle 5 4;
#X obj 222 16 gemhead 3;
#X obj 222 138 pix_resize 640 480;
#X floatatom 286 242 4 0 0 1 width - -;
#X floatatom 296 224 4 0 0 1 height - -;
#X floatatom 306 206 4 0 0 1 bytes/pixel - -;
#X floatatom 316 189 5 0 0 1 coulorspace - -;
#X obj 276 168 pix_info . . . .;
#X obj 222 289 pix_pix2gst yuv 640 480;
#X obj 222 194 pix_yuv;
#X obj 544 49 loadbang;
#X obj 289 325 typefind;
#X msg 503 605 ip labomedia.org \, port 8000 \, password **** \, mount
test.ogg;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 7 0 6 0;
#X connect 8 0 18 0;
#X connect 9 0 6 0;
#X connect 10 0 9 0;
#X connect 12 0 36 0;
#X connect 14 0 30 0;
#X connect 14 1 13 0;
#X connect 15 0 28 0;
#X connect 16 0 6 0;
#X connect 17 0 24 0;
#X connect 17 0 20 0;
#X connect 18 0 23 0;
#X connect 18 0 17 0;
#X connect 19 0 25 0;
#X connect 19 0 17 0;
#X connect 20 0 22 0;
#X connect 21 0 40 0;
#X connect 26 0 19 0;
#X connect 27 0 26 0;
#X connect 29 0 14 0;
#X connect 30 0 35 0;
#X connect 30 0 37 0;
#X connect 35 1 31 0;
#X connect 35 2 32 0;
#X connect 35 3 33 0;
#X connect 35 4 34 0;
#X connect 36 0 15 0;
#X connect 36 1 39 0;
#X connect 36 2 11 0;
#X connect 37 0 36 0;
#X connect 38 0 3 0;
#X connect 39 0 8 0;
#X connect 40 0 20 0;


More information about the Pd-list mailing list