Skip to main content

chn 15 exp (1)

Page 1


15. Experiment:

Video Transfer from Smartphone to Internet-Connected Desktop via IP-Based Streaming

Aim:

To perform video transfer from a smartphone to an internetconnected desktop using IP-based streaming protocols (e.g., RTSP, HTTP, or WebRTC).

Materials Required:

1. Smartphone (Android or iOS)

2. Desktop Computer (connected to the internet)

3. Streaming software (e.g., OBS Studio, VLC, or dedicated Smartphone apps like IP Webcam for Android)

4. Wi-Fi or mobile data connection (both devices must be on the same network or accessible over the internet)

5. Web browser or media player (for the desktop)

6. Streaming server (optional, for more control over the video stream)

7. IP camera software (if using smartphone as an IP camera)

Setup:

1. Install Streaming Apps:

For Smartphone (Android Example): Install an IP webcam or video streaming app (e.g., "IP Webcam" on Android).

For Desktop: Install VLC, OBS Studio, or a compatible media player capable of receiving IP streams.

2. Connect Devices to Same Network:

Ensure both the smart phone and desktop are connected to the same Wi-Fi network or configure port forwarding for remote streaming.

3. Configure Streaming on Smartphone:

Open the streaming app (e.g., IP Webcam).

Start the video capture on the smart phone camera (choose the resolution and video format).

Start the video streaming and note the IP address and port provided by the app (e.g., http://192.168.1.5:8080).

4. Set Up Desktop for Video Reception:

Open VLC Media Player or OBS Studio on the desktop.

In VLC, go to Media > Open Network Stream and enter the IP address and port from the smartphone.

For OBS, configure a source using the "Media Source" option and set the source URL to the Smartphone’s stream URL.

5. Streaming Through RTSP (Optional):

If using RTSP, ensure both devices are capable of RTSP. On the smartphone, set the stream type to RTSP.

Use VLC or OBS to receive the RTSP stream (e.g., rtsp://192.168.1.5:554/live.sdp).

Procedure:

1. Start Video Capture on Smartphone: Launch the chosen streaming app on the smartphone.

Begin capturing video from the smartphone camera. The app should generate an IP address and port number that can be accessed via the local network or the internet.

2. Access Stream on Desktop:

On the desktop, open VLC or OBS.

For VLC, select Media > Open Network Stream, input the stream URL (e.g., http://192.168.1.5:8080), and click Play.

For OBS, create a new “Media Source” and paste the URL of the stream in the settings.

3. Monitor the Video Stream:

You should now see the live video from the smartphone streaming on your desktop. The video feed can be viewed in real-time on the desktop’s media player or OBS window.

4. Check for Lag/Latency:

Measure the latency between the smartphone camera and the desktop display. For this, you can use a stopwatch or timesyncing methods.

Any noticeable delay can be attributed to network speed, app configurations, or encoding/decoding processes.

5. Streaming Over the Internet (Optional):

If you wish to stream over the internet, you can use port forwarding (if applicable) or cloud-based streaming services like YouTube Live or dedicated IP streaming servers.

On the desktop, set up a cloud-based stream (e.g., via YouTube) or use a media server (e.g., Wowza Streaming Engine, or Nginx with RTMP) to facilitate the transfer.

6. Stop the Stream:

When done, stop the video capture on the smartphone.

Close the media player or streaming software on the desktop.

Results:

A live video stream should be visible on the desktop, transmitted over the internet or local network, from the smartphone camera.

The video quality will depend on the network connection, resolution settings, and streaming software.

Turn static files into dynamic content formats.

Create a flipbook