Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Re: Streaming Large video

Any body there plsease help me for video streaming..

Developer
Posts: 114
Registered: ‎04-28-2010
My Device: Storm 9530
My Carrier: Telus

Re: Streaming Large video

There are several variables at play here when it comes to stream videos through a device.

 

File Server:

Do you own a server?

      If so is it local or remote?

              If its local, how good is your ISP?

              If its remote, how well known is the server provider?

 

Transfer Speeds:

2G -> 150kbits

3G -> 2Mbits

WiFi -> 54Mbits

   *Although these speeds look pretty fast, they aren't really this fast.

 

Architecture of Phone:

The Operating System has a networking policy. These policys will determine your ability to stream and how well. Its possible that different phones and OS versions have different network priorities. 

 

 

A 320x240 movies with 15 frames per second needs to be compressed to about 39.7K of data per second. Doubling image size (320x240 to 640x480) requires a 4X (not 2X) increase in data rate.

  • Data Rate = (fps) X (width) X (height) divided by (video quality)

Go google "optimizing video stream" "video compression" "streaming media"

 

Essientially what im asking is:

  • Where are the videos stored?
  • How fast is your server ISP connection?
  • What devices and OS versions are you developing for?
  • How large are these files?
  • How many people do you expect to stream to?
  • What type of format are these videos?

 

Developer
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Re: Streaming Large video

Thanks for your reply m-romanuik,

 

1. Where are the videos stored?

    My video stored my web server.

 

2. How fast is your server ISP connection?

    1Mb per second

 

3.  What devices and OS versions are you developing for?

     i'm developing an application for 5.0 OS verzion

 

4. How large are these files?

    More than 30MB

 

5. How many people do you expect to stream to?

     100's of people will stream

 

6. What type of format are these videos?

    I'm trying to stream 3gp,mp4 and m4v

 

 

These are my server and video files details can you please share your idea..

 

I can able to stream upto 5MB more than that i cant please help me...

 

 

Thanks in advance,

Packiaraj M

Developer
Posts: 114
Registered: ‎04-28-2010
My Device: Storm 9530
My Carrier: Telus

Re: Streaming Large video

You could implement a prefetch input queue (PIQ). Essentially you would be designing a networking cache manager of your video(s).

 

http://docs.blackberry.com/en/developers/deliverables/11942/Buffer_and_play_streamed_media_740033_11...

 

Highlighted
Contributor
Posts: 41
Registered: ‎07-28-2010
My Device: Not Specified

Re: Streaming Large video

Regular Contributor
Posts: 59
Registered: ‎07-05-2010
My Device: Blackberry 9800
My Carrier: Airtel

Re: Streaming Large video

Thanks for the nice project.

 

I have few problems playing my streaming content.

 

I have RTSP link with SDP content. http://www.ietf.org/proceedings/67/slides/mmusic-9.pdf

I changed the url in "SelectionScreen" with my link.

 

What would be the content type for this kind of stream for StreamingPlayer constructor??

-Shankar
Regular Contributor
Posts: 59
Registered: ‎07-05-2010
My Device: Blackberry 9800
My Carrier: Airtel

Re: Streaming Large video

[ Edited ]

It seems that Streaming player doesn't supports RTSP playback.

It's written to throw exception if the stream is not from HTTP or HTTPS.

 

 

private void setConnectionType(String locator) {
		this.locator = locator;
		if(locator.toLowerCase().startsWith("http://")){
			connectionType = CONNECTION_HTTP;
			log(0, "setConnectionType: HTTP"); 
		}
		else if(locator.toLowerCase().startsWith("https://")){
			connectionType = CONNECTION_HTTPS;
			log(0, "setConnectionType: HTTPS");
		}
		else if(locator.toLowerCase().startsWith("file:///")){
			connectionType = CONNECTION_FILE;
			log(0, "setConnectionType: FILE");
		}
		else{
			locator = null;
			throw new IllegalArgumentException("Locator is not valid.");
		}			
	}

 

 

-Shankar
Developer
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Re: Streaming Large video

Thanks for reply guys, I have tried mjrusso code from https://github.com/mjrusso/videostreaming-blackberry it works fine but i'm facing the same problem i can't stream more than 5MB video file.. i have also tried this code by changing buffer capacity value but no use it gets freeze.. i think we cant stream very large video files in blackberry.. But in the same way i have one application called "Mobiscope - video from webcam" in this application they did live streaming from the webcam how it is possible... Can any one please help me to stream large video files... Thanks, Packiaraj M