Tuesday, July 5, 2016

Stream video from Raspberry Pi 3 + Camera Module V2, play in Windows 10/VLC Media Player and Android/VideoView.

I have old posts of "Stream Raspberry Pi Camera Module video using raspivid and vlc" and "Play stream video (from Raspberry Pi) on Android VideoView". Somebody reported problem, so I re-test on Raspberry Pi 3 + Camera Module V2 NoIR + Raspbian Jessie, play in Windows 10 + VLC Media Player and Android App with VideoView.

The steps and Android example code refer to the original post listed above.

Stream video from Raspberry Pi 3 + Camera V2, play in Windows 10/VLC Media Player:



Stream video from Raspberry Pi 3 + Camera V2, play in Android/VideoView:



Download APK HERE to test on Android devices.

Remark:
- Sometimes the video cannot be played on Windows VLC Media Player/Android VideoView. It seem that it is caused by Raspberry Pi/vlc, i have no idea currently.
- It have few seconds delay in the stream video.





11 comments:

Suman Alishetty said...

Hi friend ,i have raspberry pi 3, i want to stream video from raspberry pi camera to iPad can anyone guide me how can i do this? i have seen this website here you using the command cat runvlc.sh what does this command mean?and other command ./runvlc.sh and how you have entered into streamworks can you tell me how are you doing? And one morething you have used an app in mobile phone what is that i cannot see clearly.Do we need to install any android app in iphoen or ipad?Please give me some guidance as iam new to raspberry pi Thank You...

周心平 said...

Hi, Could you please make a tutorial of how to make such apps?

Andr.oid Eric said...

Please check the link on the text:
I have old posts of "Stream Raspberry Pi Camera Module video using raspivid and vlc" and "Play stream video (from Raspberry Pi) on Android VideoView".

Muddassir Ghoorun said...

Do you know how can i add some other features to control arduino pins using android studio via the internet? Thanks for the blog..It is very helpful information..

joanna kazzandra said...

Hi. From what I have seen, the video stream is quite plausible. May I know the FPS?

Andr.oid Eric said...

hello joanna kazzandra,

please check the link: http://helloraspberrypi.blogspot.com/2015/05/stream-raspberry-pi-camera-module-video.html

Juan Sánchez said...

What would it be like to stream from a webcam connected by USB? In my case it is in /dev/video0

Văn Tâm Nguyễn said...

Hi guy, i want to stream video from Raspberry pi with command line "raspivid" to CPU of raspberry pi. Can you help me?

JasonAkon said...

This tutorial cant work, please follow my step and thank me later:

Run this commands:
1) sudo apt-get install vlc
2) raspivid -o - -t 0 -hf -w 800 -h 400 -fps 24 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8160}' :demux=h264

Noted*: your streaming address will be (http://(your pi address):8160)
Stream your video using VLC player in Android or windows

The android cant work , please fix it PLEASE !!!!!

Aisya Farhana said...

Hi .. everything works well with the code for Android app but when i try to connect to the rasp pi url .. the video cant be play

Mine&Yukihana Yukina said...

How to install streamWorks?