Tuesday, November 1, 2011

Presence now has »picture in picture (PiP)« mode.


The next branch of presence gained PiP support, this allows the parallel view of "secondary" streams besdes the primary one. Some refactoring needs to be done, before it lands in master.
Another thing on the todo list are more convenient dialogs. Maybe someone has some styling ideas?
If you wonder how I got Big Buck Bunny into presence, just continue reading.

# Encode big buck bunny:
$ gst-launch \
    filesrc location=big_buck_bunny_720p_stereo.ogg \
      ! decodebin2 ! progressreport \
      ! queue ! tee name=src   \
    oggmux name=mux \
      ! filesink location=big_buck_bunny_720p_stereo.dirac.ogv \
    src. ! queue \
      ! videoscale ! videorate \
      ! video/x-raw-yuv,width=640,height=360,framerate=12/1 \
      ! queue \
      ! schroenc force-profile=vc2_simple quality=8 queue-depth=5 \
      ! mux.    \
    src. ! queue \
      ! theoraenc ! queue \
      ! mux.

Use the gst-rtsp-server example test-launch and seed it (modify it to listen on port 8555 using server_set_service (...)!):

$ ./test-launch " \
   (filesrc location=big_buck_bunny_720p_stereo.dirac.ogv \
     ! oggdemux ! queue ! tee name=src   \
   src. ! queue ! rtpgstpay name=pay0 pt=96    \
   src. ! queue ! rtpgstpay name=pay1 pt=97 )"

And finally publish it:

$ avahi-publish-service presence2 _rtsp._tcp 8555 test

A new entry should appear in presences peers dialog, just connect to it.

No comments:

Post a Comment