Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: WMV file created by IWMWriter not playing properly in wmp 11

HTVi
TV Discussion Newsgroups

WMV file created by IWMWriter not playing properly in wmp 11
David 12/16/2008 6:03:01 PM
My application converts a proprietary video file format to wmv file (using
Windows Media Video 9 codec). Playing the WMV file using Windows Media
Player 9 all seems to work fine, but if the same file is opened using WMP 11
seeking using the slide bar causes the video to hang, the slide bar resets to
the beginning and starts moving forward. Once the slide bar reaches location
dragged to video begins moving again, and all seems to work properly.
Obviously, I am missing something when creating wmv file that WMP 9 didn’t
have issue with. Does anyone have ideas or direction?
Using “Windows Media Stream Editor” I can create a file from the same wmv
file that works fine in WMP 11.

My app links to Windows Media Format 9.5 SDK.
Visual C++ 2005

--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford
Re: WMV file created by IWMWriter not playing properly in wmp 11
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 12/16/2008 6:12:58 PM
From: "David"

[Quoted Text]
> My application converts a proprietary video file format
> to wmv file (using Windows Media Video 9 codec). Playing
> the WMV file using Windows Media Player 9 all seems to
> work fine, but if the same file is opened using WMP 11
> seeking using the slide bar causes the video to hang, the
> slide bar resets to the beginning and starts moving
> forward. Once the slide bar reaches location dragged to
> video begins moving again, and all seems to work
> properly. Obviously, I am missing something when creating
> wmv file that WMP 9 didn't have issue with. Does anyone
> have ideas or direction?
> Using "Windows Media Stream Editor" I can create a file
> from the same wmv file that works fine in WMP 11.

Are you setting the clean point flags? You can look at the
differences between your ASF and the one remuxed by the WMSE
using the free ASFViewer tool from MS.



--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: WMV file created by IWMWriter not playing properly in wmp 11
David 12/16/2008 8:41:26 PM
[Quoted Text]
> Are you setting the clean point flags?

Each time my application finds a Keyframe it sets WM_SF_CLEANPOINT flag.

>You can look at the differences between your ASF and the one remuxed by the WMSE using the free ASFViewer tool from MS.

I down loaded ASFViewer as you suggested. And I am overwhelmed by all the
information :). There are differences, but which difference is significant is
the question?
Having the file name selected in the left window panel for each file has the
following differences:
1. ASF File (*.wmv)
a. Some differences (non seem significant)
2. File Properties Object (104 bytes)
a. Some differences (non seem significant)
3. Data Object
a. Some differences (non seem significant)
4. Stream Properties Object [1]
a. These are different.
i. In the original file this is Video_Media
ii. In the file created by WMSE this is Audio_Media
5. All stream properties are out of order
6. The last sections in the right window panel are
a. Header Object
b. Header Extension Object
c. Compatibility Object
d. The original file has an extra section named “Index Parameters Object”

Object ID D6E229DF-35DA-11D1-9034-00A0C90349BE
Object Size 42 ( 0x2A )

Interval 00:01.000
Index Specifier Count 3
Index Parameters
Stream Number Index Type Index Type Name
3 3 WMT_IT_NEAREST_CLEAN_POINT
1 3 WMT_IT_NEAREST_CLEAN_POINT
2 3 WMT_IT_NEAREST_CLEAN_POINT



Also, on the left window panel
Original file
• Simple Index Object (1634 bytes)
o Stream [1] (263 seek points)
 …

File created by WMSE
• Simple Index Object (1634 bytes)
o Stream [2] (263 seek points)
 …

I am not intentionally being coy with my code or wmv file. I’m unsure on
what information to give so that help can be given to me. Any help or
direction you can give will help.

--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford


RE: WMV file created by IWMWriter not playing properly in wmp 11
David 12/17/2008 4:03:00 PM
I believe I understand what the problem is, but I’m unsure how to fix it.

Our proprietary file contains multiple audio and video streams. These
streams represent a video conference. I have logic that will combine the
video streams into one stream that works well. The audio streams, on the
other hand, are not combined. I created a prx file with multiple audio
streams and one Video stream. WMP plays all audio streams and everything
stays in sync with video. The multiple audio streams seemed to work ok with
WMP 9, but with WMP 11 it prevents seeking. Other than seeking Audio and
Video work in a manner desired.

As hinted to above I am using a custom profile and WMCreateWriter & IWMWrite
to produce the wmv file. How can I combine multiple audio stream into one
stream using this schema? Currently I manually edit a prx file created by
Windows Media Profile Editor, and add the number of audio streams required.
And I have logic in my code to use defined audio streams for each audio
stream in our propriatery file.

I tried writing all streams to 1 audio stream, and as I’m sure you can guess
it caused a destored noise that is not acceptable. But, on the bright side I
was able to seek successfully. This test is what brings me to a conclusion
that the WMP requires only one audio stream to operate successfully.


Please advise a direction of how to fix my problem.

--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford


RE: WMV file created by IWMWriter not playing properly in wmp 11
David 12/17/2008 7:26:01 PM
I found a post "Two audio streams in ASF" which talks about this issue.



--
Best Regards

"Failure is the opportunity to begin again more intelligently" – Henry Ford


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen