how to create C# web service for mpeg 4 streaming? - c#

I want to create a C# web service for audio steaming (upload n download) to iPhone.
any help would be greatly appreciated.

Your question is somewhat vague, But I'll assume that you're trying to stream multiple mp4 audio files.
Here are some possible solutions:
Use an already existing solution: like IceCast or ShoutCast. With that, you'll be able to stream easily. But it's not in "C#".
You can just serve directly the mp4 via a direct URL to the iPhone, and your service just tell the the URL where to get it. If you're making an iPhone application, you can ask the next song in queue to your service and be able to queue it. (pseudo streaming)
If you're into making a full fledged streamer, I would suggest you to look at the ".pls" format. It's not a simple task and may require a lot of time to achieve.

Related

How can I save a webcam-recorded mp4 with audio in Visual C#?

I'm two days into researching this so I thought I'd post here. It looks like video recording software is usually written in C++ but my project requires C#. It's a WPF application and I just need it to save an mp4 locally. I don't need to upload to a server, I don't need to let the user pick a file location, I don't even need it to display the webcam feed as it's recording. All I need it to do is start/stop recording audio and video from a webcam/microphone and save it in a location that's determined by the code. I understand this may be broken down into steps like connecting to a webcam, connecting to a microphone, synchronizing them, encoding a video file, and saving it on the hard drive.
Are there any .NET classes that can help me with this? If not, can anyone recommend some libraries/frameworks/etc. that handle this sort of thing? I appreciate any help regarding how to do this. Thank you.

Where to begin for writing a video streaming application in C#?

I want to make an application where I could contact the server (computer hosting a mp4 video file) and then it would stream and play the video. The streaming and video playing would take place in the same application.
I have no idea where to begin. What technologies would I need to know to start implementing this? Any sort of direction would be useful.
I found this blog article which seems like it's what you're looking for. In his example, he streams the video from his local computer but streaming from a server should be along the same lines.

Playing a video file in server through WPF

I have a video file at my Server and the path to which resembles like "10.151.98.82/Medias/New/Videos/001.dat".
(Actually a video file but the extension is in .dat)
I have already built a WPF application which allows my users to enter the above Server URL and then let them to download it and then play it.
But my guess is that they need not wait till the entire file gets downloaded; just watch the files on the fly.
I have googled on video streaming but could not get a solid material to proceed on with.
[Sorry, if the question is naive or needs modification, i will be happy to do that or move to a relevant forum.]
Any pointers on how to do this is much appreciated.
Edit: This question talks about WCF service and WPF application. But, I dont' use a WCF Service. The video file has to be streamed from the server.
First try to play your file using VLC Player. it also have many advance streaming and Trans-coding Options. you can play, save and trans code simultaneously. Once you are able to Play your file in VLC Player than i would recommend to use VlcDotNet for wpf application. Tutorial for hosting VlcDotNet is available in downloads

Best way to convert a video while uploading - ASP.NET C#

It´s simple. I have a page where the user can upload a video that will be stored in a directory inside the application.
But, as we know, the user can upload a 2mb video or 700mb video. What I need to do is convert the video while uploading or after upload (I don´t know which is the best way), in order to avoid large videos stored on the server.
I´m not sure but I think Youtube do the same thing.
OBS: I pretend to use the HTML5 video player.
Thanks very much for your reply! =)
As with all video questions, the answer is: It depends.
Some containers are designed for streaming (flv, mpeg-ts) and others are designed for random access (mp4, mkv). Some random access containers can be used for pseudo-streaming where the client can perform byte-range to performing random access over http.
If you have a user upload an flv, you can convert it as it streams up to you. If you have a user upload an mp4 with the moov atom at the end, you need to cache the entire file before you can do a conversion. if the moov atom is at the beginning, you can convert as it streams.

Live OGG streaming

I'm creating an iOS application in Xamarin.iOS (MonoTouch) and would like to connect to an OGG live stream and play it.
I've found the NVorbis library, but as far as I can see it doesn't support reading a live stream. And I'm also not really sure if this library is supported for Xamarin.iOS.
Same for the csvorbis code, it doesn't seem to support live streaming.
I don't mind to change or create code to add support for live-streaming, but I'm not exactly sure how to do this. Do I then to download portions of the stream and then play it, and doing this with every portion I download?
Of course I prefer an existing solution :)
Tim,
NVorbis is my project. While it doesn't currently support real-time protocols (RTSP & such), you might be able to use a NetworkStream instance with it successfully. The decoder handles pages / packets as-needed, so it should work pretty well.
Please note, I haven't tested the forward-only Ogg reader logic in a long time, so there may be bugs...

Categories