473,412 Members | 3,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Video streaming with c#

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
8 65771
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
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

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
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

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
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

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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: alaune | last post by:
Hi, we are trying to create a Java video Streaming server. We use the (Java Media FrameWork) JAVA JMF API. We succeed in sending data from the server, and reading them on the client side....
0
by: Simon Guertin | last post by:
Hi, I would like to know some hints about how to or where to look about video streaming. I want to be able the capture live video from a video cam on my iPAQ and broadcast the video using wifi...
2
by: mpaliath | last post by:
Hi guys I am currently involved in a project which requires me to recieve and play streaming video as well as send it. In Visual C++ is there any free library which helps me do this as...
4
by: chix23 | last post by:
Could you give sample codes or suggestions on how to build a web application with live video streaming? Thanks!!!
1
by: varunvijayayvargiya | last post by:
help on video streaming i m coding an app for video conferencing i m using RTP. can sum1 tell me how 2 go abt it in C#
2
by: Asif | last post by:
Hi all, Can any one help me out about how to do live video streaming in asp.net page similar to YouTube.com? Thanks a lot Asif
2
by: EricFowler | last post by:
I am starting a video streaming app and have some technical questions that are narrowly focused on video/audio file formats, codecs, etc. Where do I find the watering hole with the nerd-herd that...
1
by: romcab | last post by:
Hi guys, Just want to ask your idea on how to do video streaming using C#. I want to create an application that can play video file. Is there an existing classes that I can reuse? Hope you can...
5
by: gaya3 | last post by:
Hi All, can anyone please say me 1. what is video streaming? 2. smooth streaming 3. How video streaming is done in IIS to integrate with iphone 4. version of IIS that supports video...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.