Vp8 for Video Conferencing Sample Code / Demo

559 views
Skip to first unread message

Jim Bankoski

unread,
Oct 15, 2010, 8:34:07 PM10/15/10
to WebM Discussion
We just put up a new project holding sample code showing vp8. Find it
here:

http://www.webmproject.org/code/#udpsample_sample_code

FROM THE README:
===================

This sample illustrates using vp8 for a live video transmission over
lossy
UDP with a back channel.

It includes two sample console based subprograms:

GrabCompressAndSend
upon receipt of session initiation requests from
ReceiveDecompressAndPlay,
captures live video from an installed direct show camera, compresses
it,
packetizes it, adds forward error correction (if specified) and then
sends
the data across a port using UDP. Upon any receipt of a request for
recovery
or for a packet resend it responds appropriately.

ReceiveDecompressAndPlay
initiates a session with GrabCompressAndSend sending parameters
regarding
forward error correction, simulated packetloss, datarate, frame size,
etc.
The program then awaits arrival of packets from GrabCompressAndSend
and uses
them to reassemble frames, which it then decompress and plays for the
user.
Any lost packets that can be rebuilt using forward error correction
are
rebuilt. If a packet is lost and can't be rebuilt, packet resend
requests
are sent. If there is still not a timely response or a large number
of
packets are lost the program requests a recovery frame.

Build requirements :

Linux -> 64-bit, libsdl and libvpx must be installed and in your
paths.
MacOSX -> libsdk, libvpx and libvidcap must be installed and in your
paths.
Windows -> VS2005, PlatformSDK ( + DirectShow Baseclasses ) in include
and lib
path, DirectX in include and libpath

DISCLAIMER: This sample code has only been tested on a very limited
set of
machines - we can use your help to expand and make it work on a wider
range
of platforms.

Amar

unread,
Oct 16, 2010, 12:04:28 PM10/16/10
to WebM Discussion
hello Jim.
I tried running the code.
I an using ubuntu lucid.
I am having libvpx installed in my system.
I got following error

g++ -m64 -o grabcompressandsend ./grabcompressandsend.o time.o
vpx_network.o -lvpx -lpthread -lrt
g++ -m64 -o "grabcompressandsend" ./grabcompressandsend.o time.o
vpx_network.o -lvpx -lpthread -lrt
/usr/bin/ld: skipping incompatible /usr/local/lib/libvpx.a when
searching for -lvpx
/usr/bin/ld: cannot find -lvpx
collect2: ld returned 1 exit status
make: *** [grabcompressandsend] Error 1

why its saying like "incompatible /usr/local/lib/libvpx.a"...??.or
some other issue is there.
regards.

Jim Bankoski

unread,
Oct 16, 2010, 7:28:02 PM10/16/10
to WebM Discussion
Did you build your libvpx with target: x86_64-linux-gcc? If not that
might be the problem.

If you can't try removing -m64 from the makefile for this project. I
only tried this on a couple of machines I had available. I suspect
it might work on systems I didn't try.

If you get it to work please feel free to check in your updates!

Thanks for giving this a go!

jim

nandan amar

unread,
Oct 17, 2010, 6:04:46 AM10/17/10
to webm-d...@webmproject.org
Hello Jim.
I am working on 32 bit Linux machine.
As u said the error was in make file.
compiled and running  now....
regards....
:)

--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To post to this group, send email to webm-d...@webmproject.org.
To unsubscribe from this group, send email to webm-discuss...@webmproject.org.
For more options, visit this group at http://groups.google.com/a/webmproject.org/group/webm-discuss/?hl=en.




--
Amar Kumar Nandan
MS by Research
IIIT-Bangalore
Karnataka ,India , 560100
http://aknandan.co.nr

nandan amar

unread,
Oct 17, 2010, 6:54:49 AM10/17/10
to webm-d...@webmproject.org
I am running grabcompressandsend and receivedecompressandplay on same machine in different windows.
I am able to see some random pixels on the screen.
i have attached a web cam also.
But not no display from camera.
Is some support for camera is missing..??
How r u capturing video from camera for sending to Player side.
regards.


On 17 October 2010 04:58, Jim Bankoski <jimba...@google.com> wrote:
--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To post to this group, send email to webm-d...@webmproject.org.
To unsubscribe from this group, send email to webm-discuss...@webmproject.org.
For more options, visit this group at http://groups.google.com/a/webmproject.org/group/webm-discuss/?hl=en.

Jim Bankoski

unread,
Oct 17, 2010, 12:36:54 PM10/17/10
to WebM Discussion
V4L2 on the linux side and its expecting uyvy video ( I was using a
logitech 9000 camera). Maybe you'd have some more luck if you switch
to libvidcap? The code is there its just ifdef'ed with mac or
something like that.

I think there is also some code that will store the raw result to a
file.

lanc...@gmail.com

unread,
Nov 20, 2013, 8:57:14 PM11/20/13
to webm-d...@webmproject.org
Anyone run this sample success?
I use Ubuntu 12.04 X64, with apt-get install libvpx-dev and libsdl-dev.
Build success, but run segmentation fault on receivedecompressandplay and no response on grabcompressandsend.
GDB trace shows receivedecompressandplay crash in vpx_codec_control(line 1192).
What's wrong?.

Jim Bankoski於 2010年10月18日星期一UTC+8上午12時36分54秒寫道:

baja...@gmail.com

unread,
Dec 5, 2013, 12:26:20 AM12/5/13
to webm-d...@webmproject.org
The reason may be the decoder is not initialized successfully. Check the return parameter of vpx_codec_dec_init, if it is failing change the flag parameter of the vpx_codec_dec_init function to 0. This should work.

Regards,
Anil Bajaj

Mike Ke

unread,
Dec 5, 2013, 7:53:34 PM12/5/13
to webm-d...@webmproject.org
Yes, vpx_codec_dec_init did not return 0, and I change dec_flags from "VPX_CODEC_USE_ERROR_CONCEALMENT|VPX_CODEC_USE_POSTPROC" to "0" it runs success.
Thank you for reply.


2013/12/5 <baja...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webm-discuss...@webmproject.org.

To post to this group, send email to webm-d...@webmproject.org.
Reply all
Reply to author
Forward
0 new messages