Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fast uploading video and play without buffering video from URL

In my Application I'm capturing 10 second of video and upload to server by FTP and Other user can watch this video by URL(s) from web service response.

As per my question I want to capture video with good quality with small size so It easy to upload video by FTP. Right now I'm using .mp4 video formate to upload video if anybody know best video formation that can increase uploading speed then guide me.

Second I'm getting all those uploaded video in the response of web service as a URL(s). In response there are many URLs so I need to play video in queue means one-by-one and end user can do swipe left to move on NEXT video and swipe RIGHT to previous video. You can see my code here.

Every thing is working good but problem is take much time to upload and play (buffering time) video.

Please guide me on this points.

COMMENT : Get success in the compress video 20 MB to 1.6 MB so uploading speed bit increase and Right now working with AVQueuePlayer for play video in queue but some time stuck video to playing.

like image 327
iPatel Avatar asked Sep 08 '16 06:09

iPatel


People also ask

Why is website buffering?

Buffering refers to downloading a certain amount of data before starting to play the video. Two common reasons for buffering are 1) your internet connection is too slow to stream a video in real time, and 2) the speed at which your router sends the video to all your internet-connected devices is too slow.

Does video quality affect buffering?

Video Quality Related to the “Internet Speed” bullet–if you don't have the bandwidth to easily stream in super HD (or even regular HD!)) that will create video buffering problems. Think about it like trying to flow too much water through too small a pipe; there is bound to be a backup.

What does it mean when a video is buffering?

Possibly the most common form of buffering occurs when your internet speed is too slow to download the amount of data needed. In this scenario, your device will buffer the data for the video and then begin playing it when there is enough data downloaded to prevent lag in the stream.


2 Answers

Yes, May you upload video using chunk data in base64 format. This is faster then FTP video upload & also useful when your internet connection is lost same time when you upload video in sequence.

like image 76
saraman Avatar answered Oct 01 '22 19:10

saraman


You can upload your files via SFTP, it is speed than FTP I think. Also your videos may bad performance with plays on http protocol.

You should follow this lines, I hope it will help you;

  • Upload video via SFTP or Amazon S3
  • Install to your server a stream engine like Wowza or Red5
  • Transcode video for mobile (Usually wowza makes auto)
  • Stream your videos over rtsp for android, hls (http) for ios

That its!

Good luck

like image 28
Phd. Burak Öztürk Avatar answered Oct 01 '22 21:10

Phd. Burak Öztürk