By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,375 Members | 1,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,375 IT Pros & Developers. It's quick & easy.

Video streaming with c#

P: n/a
Hi i am writing a application where i want to browse video file and copy data
into stream and send that stream over network...I have develop P2P windows
application where i successfully transfer text message to each other but now
i want to send video file and play that file on other end...I know the code
how to send the stream over the network but basic problem is how open that
file as a stream.

Thanks
Dec 4 '06 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Hello amjad,

Have u tried this http://groups.google.com/groups/sear...y+stream+video
?

aHi i am writing a application where i want to browse video file and
acopy data into stream and send that stream over network...I have
adevelop P2P windows application where i successfully transfer text
amessage to each other but now i want to send video file and play that
afile on other end...I know the code how to send the stream over the
anetwork but basic problem is how open that file as a stream.
a>
aThanks
a>
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Dec 4 '06 #2

P: n/a
Yah but did find any things.
I need some sample code how to stream vedio file using c# code not any third
party code....
"Michael Nemtsev" wrote:
Hello amjad,

Have u tried this http://groups.google.com/groups/sear...y+stream+video
?

aHi i am writing a application where i want to browse video file and
acopy data into stream and send that stream over network...I have
adevelop P2P windows application where i successfully transfer text
amessage to each other but now i want to send video file and play that
afile on other end...I know the code how to send the stream over the
anetwork but basic problem is how open that file as a stream.
a>
aThanks
a>
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Dec 4 '06 #3

P: n/a

It'd help to mention what type of video you're talking about. Some
videos use different formats for file storage and streaming and some
use multiple sockets for streaming.

Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Mon, 4 Dec 2006 08:41:00 -0800, Amjad
<Am***@discussions.microsoft.comwrote:
>Hi i am writing a application where i want to browse video file and copy data
into stream and send that stream over network...I have develop P2P windows
application where i successfully transfer text message to each other but now
i want to send video file and play that file on other end...I know the code
how to send the stream over the network but basic problem is how open that
file as a stream.

Thanks
Dec 4 '06 #4

P: n/a
any format i would like to try .....

I am using System.IO.Stream class object to send data across the network....

Can i use StreamReader to read the video file or i have to use special video
classess.

thanks

"Samuel R. Neff" wrote:
>
It'd help to mention what type of video you're talking about. Some
videos use different formats for file storage and streaming and some
use multiple sockets for streaming.

Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Mon, 4 Dec 2006 08:41:00 -0800, Amjad
<Am***@discussions.microsoft.comwrote:
Hi i am writing a application where i want to browse video file and copy data
into stream and send that stream over network...I have develop P2P windows
application where i successfully transfer text message to each other but now
i want to send video file and play that file on other end...I know the code
how to send the stream over the network but basic problem is how open that
file as a stream.

Thanks

Dec 5 '06 #5

P: n/a

No, you can't use StreamReader. xxxReader classes are for text data,
videos are almost always binary.

What is the goal, just to transfer the file from one computer to
another or do you actually want to be able to stream out the video so
someone can pull it up in a viewer like quicktime or windows media or
vlc?

Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Tue, 5 Dec 2006 04:48:01 -0800, Amjad
<Am***@discussions.microsoft.comwrote:
>any format i would like to try .....

I am using System.IO.Stream class object to send data across the network....

Can i use StreamReader to read the video file or i have to use special video
classess.

thanks
Dec 5 '06 #6

P: n/a
Yeah i want to stream out video ...so some body can pull up in windows media
player.

"Samuel R. Neff" wrote:
>
No, you can't use StreamReader. xxxReader classes are for text data,
videos are almost always binary.

What is the goal, just to transfer the file from one computer to
another or do you actually want to be able to stream out the video so
someone can pull it up in a viewer like quicktime or windows media or
vlc?

Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Tue, 5 Dec 2006 04:48:01 -0800, Amjad
<Am***@discussions.microsoft.comwrote:
any format i would like to try .....

I am using System.IO.Stream class object to send data across the network....

Can i use StreamReader to read the video file or i have to use special video
classess.

thanks

Dec 6 '06 #7

P: n/a

Then you'll need to implement RTSP, RTP, SDP and a host of other
standards. It's not as easy as which class do I use--it's a huge
undertaking. You will be better off looking into freely available
existing streaming servers instead of trying to build your own.

www.videolan.org

or

http://developer.apple.com/opensourc...ing/index.html

You could also host your videos on a web server and then they can be
accessed via HTTP which would provide "progressive download" access to
the videos (but not true streaming).

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Wed, 6 Dec 2006 03:18:00 -0800, Amjad
<Am***@discussions.microsoft.comwrote:
>Yeah i want to stream out video ...so some body can pull up in windows media
player.

"Samuel R. Neff" wrote:
>>
No, you can't use StreamReader. xxxReader classes are for text data,
videos are almost always binary.

What is the goal, just to transfer the file from one computer to
another or do you actually want to be able to stream out the video so
someone can pull it up in a viewer like quicktime or windows media or
vlc?

Sam

Dec 6 '06 #8

P: n/a

I'm not saying use their code, I'm saying use their product. Run
their streaming server on your host computer.

Even in peer-to-peer you can set up a web server or video streaming
server on one of the "peers" and have th eother "peer" hit that. If
you need two way streaming then set up the servers on both peers.

BTW, are these peers in the same lan? You could save a ton of trouble
by just using a windows file share and opening the files directly in
windows media player.

Good luck,

Sam

On Wed, 6 Dec 2006 07:38:00 -0800, Amjad
<Am***@discussions.microsoft.comwrote:
>One more question, the code available is in c++, do you know any code which
is available in c#. Do i have to create COM objects first and then have to
access through c# or any c# libraries on net doing same job thanks

"Samuel R. Neff" wrote:
>>
Then you'll need to implement RTSP, RTP, SDP and a host of other
standards. It's not as easy as which class do I use--it's a huge
undertaking. You will be better off looking into freely available
existing streaming servers instead of trying to build your own.

www.videolan.org

or

http://developer.apple.com/opensourc...ing/index.html

You could also host your videos on a web server and then they can be
accessed via HTTP which would provide "progressive download" access to
the videos (but not true streaming).

HTH,

Sam
------------------------------------------------------------
We're hiring! B-Line Medical is seeking Mid/Sr. .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
Dec 6 '06 #9

This discussion thread is closed

Replies have been disabled for this discussion.