Hi Yuri,
The documentation you send me was not really helpful regarding this issue, but it helped me with another issues. Thanks!
My main issue was with getting the stream to work or in very details how to encrypt/decrypt/use the right caps, so it works.
I was able to do streaming and saving from RIoT to RIoT with the following options:
Sender:
gst-launch-0.10 v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=1024,height=768' ! ffmpegcolorspace ! vpuenc codec=5 ! rtph263pay ! udpsink host=192.168.1.104 port=5200
Receiver:
gst-launch-0.10 udpsrc port=5200 ! application/x-rtp, media=video, payload=96 ! rtph263depay ! vpudec ! matroskamux ! filesink location=video3.mkv
Quite strange was that if I use avimux instead of matroskamux the video plays back on 5x speed. No idea why, but it doesn't matter at this point. Moreover, these options will not work from a RIoTboard to a PC, just because there is no vpudec option in Ubuntu (or at least don't how to add it). Maybe using different way to decrypt the H.263 will work.
This stream works with different options for vpuenc (codec=0 MPEG4, 5 H.263 and 6 H.264). You have to change also rtp___(de)pay with mp4v (for MPEG4), h263 (for H.263) and h264 (for H.264).
Thanks for the help anyways!