ekumenlabs / AndroidStreamingClient

Library that receives UDP packets wrapped into RTP and coded in H264, decodes the corresponding frames and plays the resulting stream in an Android SurfaceView
Apache License 2.0
129 stars 45 forks source link

About the example program #57

Closed ZhengzhongSun closed 8 years ago

ZhengzhongSun commented 8 years ago

Hi! It's very helpful for me. I'm a little confused about the example program. Where is the input video of the example program? I run the example program, but there isn't a video in surface view. And I can't find an input in the code, how can I add an input video to the program? Thank you!

Best wishes! Dobbie

ZhengzhongSun commented 8 years ago

oh! I need to use Libstreaming as the input?

adamantivm commented 8 years ago

Hi @ZhengzhongSun. AndroidStreamingClient is only a client: it can only play back video. We have used different tools for producing and streaming the video: libstreaming is one, but you can also try with VLC or mencoder if you wish. Does that make sense? Best, Julian

ZhengzhongSun commented 8 years ago

But I didn't find that where should I put the uri of my video to the program?

adamantivm commented 8 years ago

It's been very long since I used this last but if I remember correct, on RTP you don't specify the URI on the client, instead you need to specify the target on the sender (i.e.: tell the broadcaster to which URI to broadcast to).

adamantivm commented 8 years ago

If you look in the readme, on the instructions on how to use libstreaming, it says where to configure the client IP address for libstreaming to stream to it.

kjcxlab commented 8 years ago

Client

  1. I compiled the example in Androidstudio,and run it on my phone(meilan not2:android5.0);
  2. Conneted to router.
  3. IP:192.168.0.112

Server:

  1. Then using the ffmpeg to stream a file named sintel.h264 to my client;
  2. The cmd line:ffmpeg -re -i Sintel.h264 -vcodec copy -f rtp rtp://192.168.0.112:5006
adamantivm commented 8 years ago

Please feel free to send PR with any recommendations or additions to the readme instructions, samples or library in order to make it better! Also note we are going to rename the organization today. It shouldn't affect your work, but just letting you know so that you're aware.

adamantivm commented 8 years ago

Closing the issue since it doesn't seem to have questions (particularly concrete bug reports) pending.