demuxing .mp4 video stream and remuxing with subtitles

Windows Media


  • 1. Interlacing and decoder DMO
    Hello, I feed the "WMVideo Advanced Decoder DMO" with interlaced video, and i set flag dwTypeSpecificFlags to AM_VIDEO_FLAG_FIELD1FIRST : HRESULT hr; AM_SAMPLE2_PROPERTIES* Prop = new AM_SAMPLE2_PROPERTIES; IMediaSample2* pSample2; hr = pSample->QueryInterface (__uuidof(IMediaSample2), (void**) &pSample2); hr = pSample2->GetProperties (sizeof(AM_SAMPLE2_PROPERTIES ), (BYTE*)Prop); Prop->dwTypeSpecificFlags = AM_VIDEO_FLAG_FIELD1FIRST; hr = pSample2->SetProperties (sizeof(AM_SAMPLE2_PROPERTIES ), (BYTE*)Prop); pSample2->Release(); DeliverToDMO(pSample) But if I spy the uncompressed sample on DMO output pin, this flag is now set to 0. How to tell the DMO to keep my interlacing flag? Best regards
  • 2. Saving a Windows Media Player Stream
    I have an application where I place a Windows Media Player object on a form so that the user can connect to another instance of my application, which is broadcasting Windows Media Encoder data, and play that Encoder video stream directly within the application. I would like to add the feature for the user to be able to right-click the playing video stream at any time and choose to save the stream as a file on their local hard disk. What's the best way to accomplish this? Alternately, I might simply place an option in a menu or something to save the stream, but that can be decided once I figure out the best way to save incoming data to a Windows Media Player object as a file on a local hard disk. Thanks,
  • 3. Enable logging on a new pub point
    I'm creating new broadcast points on a server, and managing to create a logging profile fine. However logging on the new publishing point is still disabled by default, how can this be enabled programmatically? thx [Create pub point and sets logging ok but in disabled state] PubPoint = PubPoints.Add(name, type, path) Plugin = PubPoint.EventHandlers.Item("WMS Client Logging") LogAdmin = Plugin.CustomInterface LogAdmin.Template = "e:\LogFiles\WMS\TEST\WMS_<Y><m><d>.log" LogAdmin.V4Compat = True LogAdmin.CycleNow()

demuxing .mp4 video stream and remuxing with subtitles

Postby aGVjYXRl » Sun, 14 Aug 2005 02:37:03 GMT

I was wondering if any of the windows media sdk's have the ability of getting 
a streaming .mp4 video input, then demuxing it and remuxing it with a 
subtitle file(.srt or .sub) and streaming this new video container over a 
network in realtime?

i've been playing around with other opensource programs like "vlc" and 
"mp4box" and someone in a forum there mentioned they might have seen this 
functionality with the windows media sdk

Re: demuxing .mp4 video stream and remuxing with subtitles

Postby Alessandro Angeli [MVP::DigitalMedia] » Sun, 14 Aug 2005 03:10:39 GMT

The WindowsMediaFormat SDK only supports the WindowsMedia 
format (hence the name I guess :-)) and very little else, no 
MP4. No MS product after the MS- and ISO-MPEG4 video codecs 
years ago supports MPEG4 to date and I doubt any will be 
released in the near, or even distant, future.

// Alessandro Angeli
// MVP :: DigitalMedia
// a dot angeli at psynet dot net

Re: demuxing .mp4 video stream and remuxing with subtitles

Postby aGVjYXRl » Sun, 14 Aug 2005 04:11:08 GMT

thanks for the info


Similar Threads:

1.mpeg2demux for demuxing raw transport stream

2.Divx Subtitles with Media Streaming

I recently installed a Divx plug-in software and the DirectVobSub media 
codec in order to watch Divx&MKV movies as well as display .srt subtitles 
with my WMP11 which works very fine.
I have also enabled WMP11 to serve as the media centre for the Playstation 3 
across my wired home LAN however yet I could not make WMP11 show the .srt 
filename subtitles whilst streaming the Divx&MKV media on my PS3 !? ... Dont 
know why but there should be a way, I guess ..  


3.MP4 stream from server

OK... I apologize if this is not the correct group for this post. If so, 
please tell me the name of an appropriate group. Thanks!

I'm running Windows 2003 Server Enterprise Edition.
I have a client who wants to feature an MP4 video file on his web site for 
I'm getting a "request file not found..." error in my browser when I point 
to the html page that has the following script in it:

<embed type="video/quicktime" src="reel.mp4" width="320" height="256" 

I have verified the path and file name are correct.

The same video plays fine off of another person's server when browser is 
pointed there using same script.

I've gone into my MIME settings on the 2003 Server and added ".mp4" as 
"video/quicktime". No difference in results. Any other ideas?


4.Stream/Convert MP4

We need to convert 1000's of MP4s to WMV files.  OR stream the MP4s via WMS9
and an on-demand publishing point.   Is there a method to do either of
these?  Can i use WM9 Encoder to convert the MP4 to wmv? or is there a
plug-in that i can use to stream the mp4?


5.Streaming mp4 to xbox 360

on my old xp computer i had some mp4 videos that i could stream to my hdtv 
but since upgrading to vista when i try to stream the vidoes vista doesnt 
find them. to test if it was my machine i tried getting a movie that was wmv 
and mp4. it streamed the wmv file fine but didnt stream the other mp4 one.  
just wondering if someone could help me cuz i have got loads of mp4 files i 
dont wanna have to convert them into wmv for me to be able to stream them. 
thanks in advance

6. Converting WM stream to video stream

7. streaming video not so streaming ?

Return to Windows Media


Who is online

Users browsing this forum: No registered users and 85 guest