isikkaya

Hi,
I want to play a video which is only contains some frames range those I before specified. For example:

A video has 200 frames and I just want to play video between 35 frame and 170 frame range. So, I dont want to serve this video completely 200 frames. I just want stream video specified range frames, not all video frames.

I dont want to seperate my video, according to frames (e.g. 1 to 35 frames a video file,35 to 170 frames a video file and 170 to 200 frame a video file). Cause of storage problem and the frame ranges are not static, the user decide frame range.

I googling streaming subject but I can not find playing video at specified frame range.

Which technology should I use How can I solve this problem

Thanks.


Re: Media Foundation Development play only specified frames

Becky Weiss - MSFT

Media Foundation is able to do accurate seeking like what you're requesting, but I'm guessing from your question that you're looking for a higher-level solution (like you don't want to write the player application yourself).

So you might want to try this question on the Windows Media Server newsgroup (http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.server&lang=en&cr=US) if you're going to be serving the video, or Windows Media Player (http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.player&lang=en&cr=US) on the playback side.

If I'm wrong and you are indeed looking to write a Media Foundation application to do this, let me know and I'll give you some pointers.






Re: Media Foundation Development play only specified frames

isikkaya

Thank you for your reply, I research these links according to my need and I found some answers.

I want to write a simple frame cutter server for video files with c#. I add "wmp.dll" library to my project and can handle video files. But there is a problem,in this library there is WMPLib.IWMPControls3.currentPositionTimecode method. This method only work if a video is encoded with time stamp, if my searches are correct. I use Super software as encoder but there is not any option to add time stamp to videos. Now I need that, which encode types are support time stamp and which softwares can I use for this





Re: Media Foundation Development play only specified frames

Becky Weiss - MSFT

I think you mean timecodes, not timestamps (WMV files always have timestamps). I believe that the Windows Media Encoder has an option to write SMPTE timecodes to your files, but I don't know if it's limited only to certain scenarios. Here's the newsgroup for that: http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.encoder&lang=en&cr=US




Re: Media Foundation Development play only specified frames

isikkaya

thank you.