There is a large time stamp gap in a media file, how can i support it in my media source?
now it doesn't move when play to the gap, but the media source is still deliver samples.
haha
There is a large time stamp gap in a media file, how can i support it in my media source?
now it doesn't move when play to the gap, but the media source is still deliver samples.
haha
I just made a video, and I'm trying to get Windows movie Maker send it to It's asking me what Hosting Provider i want to use, and it has two choices. One is Neptune Mediashare, and the other is Mydeo. How do I go about finding them so I can open an account on one?
Thank you for any help you can give me.
MsCavalier01
I hope this is the right place to post this:
My old Vista 32 computer CORE2@DUO (Gateway) was getting slow so I upgraded to a new Win 7 64 bit machine CORE4XEON (Dell). I have been using my YAMAHA RX-A2000 home theater receiver to stream music from an internal slave drive on the Vista machine to the receiver. I copied the contents of the slave drive t a internal slave drive on the new machine. Exact same setup. The Vista machine still works fine for streaming but I need to put it to sleep - permanently. The CORE4XEON shows up on my receiver, and when I click on it it displays 4 folders: music, videos. pictures, playlists. When I click on the videos folder it populates, So does the Pictures folder and the Playlist shows All Playlists and Folders (both are empty).
But when I click in Music or All Playlists or Folders it says "no content". I have checked on the Yamaha site and others are experiencing similar problems.
Both computers are hardwired.
Again, The Vista machine still works and is set up exactly the same. And I can select the YAMAHA device and push play from the Win 7 computer and make the YAMAHA play what ever I want from there. Weird huh?
Get's weirder:
I have a Win 7 64 bit laptop. It shows up also after I enable streaming. But only has about 10 music files on it. When I click on the music folder, it lists the music files. If I click play it plays the WRONG FILE! Randomly every time.
I would really appreciate an update to fix this. Any helpful suggestions are welcome. I am not a programmer by trade and do not want to play with my registry on a new machine - nor should I need to. Its' very frustrating having people suggest I buy 3rd party software like Twonky that they say works when I paid for this already (twice - both win 7 64 bit machines have problems.
I checked the music folder permissions and t says WMP.
I changing the streaming setting to allow all (which I should NOT have to do) and still no love from WMP.
Hi,
We're using WMPLib as an embedded player in our C# application but this issue occurs also in Windows Media Player.
Our server streams audio and has streaming with offset enabled. Given URL:
http://ourserver.com/playback?id=400 which returns an octet or x-wave stream (both does not work).
The WMP starts buffering and playing the 2 mins long wave file from given URL (everything works fine) but when I grab and drop the track slider to something about 90% of its length, the playback is cut off and WMP displays general audio error (c00d11b1). When I drop the slider closer (10-20% further) the playback continues without any errors and is played with offset properly. I'm using Windows 7 Home Premium 64 bit.
When I'm using the same URL in other media player applications (VLC), no error occurs.
What causes such issue?
TCP packets from this situation:
WMP->Server = get the wave
GET http://ourserver.com/playback?id=400
Cache-Control: no-cache
Connection: Keep-Alive
Pragma: getIfoFileURI.dlna.org
Accept: */*
Cookie: PHPSESSID=7e5156ec44280a9210570158c5d31475
User-Agent: NSPlayer/12.00.7601.17514 WMFSDK/12.00.7601.17514
GetContentFeatures.DLNA.ORG: 1
Host: 192.168.0.5
Server->WMP - return file
HTTP/1.1 200 OK
X-Powered-By: PHP/5.3.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Content-Description: File Transfer
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-Dis; filename="sound.wav"
Content-Length: 833658
Accept-Ranges: bytes
Date: Tue, 02 Apr 2013 10:46:01 GMT
Server: lighttpd/1.4.28
The sound is played, we move the slider...
WMP->Server - get the sound with offset (set in range)
GET http://ourserver.com/playback?id=400
Cache-Control: no-cache
Connection: Keep-Alive
Pragma: getIfoFileURI.dlna.org
Accept: */*
Cookie: PHPSESSID=7e5156ec44280a9210570158c5d31475
Range: bytes=733184-833657
User-Agent: NSPlayer/12.00.7601.17514 WMFSDK/12.00.7601.17514
GetContentFeatures.DLNA.ORG: 1
Host: 192.168.0.5
Server->WMP - returns sound
HTTP/1.1 206 Partial Content
X-Powered-By: PHP/5.3.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Content-Range: bytes 733184-833657/
Cache-Control: no-cache
Pragma: no-cache
Content-Description: File Transfer
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-Dis; filename="sound.wav"
Content-Length: 833658
Accept-Ranges: bytes
Date: Tue, 02 Apr 2013 10:46:10 GMT
Server: lighttpd/1.4.28
The stream continues but WMP cuts off playback and shows error.
How can we fix this?
Thanks for any help.
Hi
I want to encode a fixed size raw pixels frames into MPEG on windows 7. I am trying to use media foundaiton transofrmation to do this. But media fondation is not supporting transforming raw frames to MPEG directly. Instead, I have to use media sink to transform raw pizel buffers to WMV3 format and then transform WMV to MPEG using transcode topology.
Is there a way media foundation supports direct transforming frame buffers into MEPG?
Also while doing this I am running into trouble of transcode framework not able to convert the single frame WMV video to MEPG. Dont know why but it results in creating empty MPEG file when single frame WMV is fed.
best regards
GT
P.S. I dont intend to implement filter graphs for direct show to do this. As per media foundaiton documentaiton, it should provide all facilities which direct show provides.
Hello,I have the following code:
WMPLib.IWMPMedia media = player.newMedia("http://tmp.mp3.stream.nixcdn.com/e5f4554262f6d79d25514bd2149c09b9/51623906/NhacCuaTui105/SarangEhJiChyutDaNgayThoTuoi19_pypv.mp3");
file is played by player but there are no atribute on media. How to get these atributes.
Hello,
I am trying to decode h.264 frames in my application using the Microsoft H.264 Video Decoder on Win7 by providing it input from a file containing the encoded H.264 bitstream. I created this input file by running the x264 encoder on a sample .yuv file to generate a .264 file.
The decoder provides the output media types IYUV, NV12, YUY2, YV12 after I set the input media type to MFMediaType_Video & MFVideoFormat_H264. I setYV12 as the output type. After this I started providing it chunks of data usingProcessInput. However even after feeding it the entire file (> 250 frames),GetInputStatus still returns MFT_INPUT_STATUS_ACCEPT_DATA, and ProcessOutput too indicates that the decoder needs more input.
Any ideas on what might be going wrong? I have tried setting more attributes of the input media type, like frame rate, resolution, interlace mode etc. as suggested here: - http://msdn.microsoft.com/en-us/library/windows/desktop/dd797815(v=vs.85).aspx
To rule out problems with the input, I encoded the same source .yuv file into .mp4 format using x264 encoder, and when I tried to play that using graphedit, I saw it was accepted by the Microsoft decoder and was played properly.
I also tried using the decoder with one of the h264 files from here:- ftp://ftp.ldv.ei.tum.de/videolab/public/TUM_1080p25_Data_Set/LC/ but I got the same behaviour as before.
Please let me know if you had suggestions...Thanks
Hello,
I'm learning about Windows Media Player Object Model Reference. I want to manage folder on library by IWMPFolderMonitorServices but I don't know how to calling QueryInterface through IWMPPlayer to create an object of it.hope your help.
Hi,
I have an application that uses IMFSourceReader to read data from video files. Inspecting the file that is resulting in this error using the MediaInfo utility
provided the following information:
GeneralI am using MFCreateSourceReaderFromURL to create the source reader using the code snippet below:
CComPtr<IMFAttributes> attributes;
hr = MFCreateAttributes(&attributes, 1)
CComPtr<IMFSourceReader> srcReader = NULL;
HRESULT hr = attributes->SetUINT32(MF_SOURCE_READER_ENABLE_VIDEO_PROCESSING, 1); // Setting/un-setting this has no effect
throwIf(hr, "Error setting source enabled property" );
// Create the source reader.
throwIf(MFCreateSourceReaderFromURL(fileName, attributes, &srcReader), "Error Creating Source Reader"); // Error 0xC00D36C4 (MF_E_UNSUPPORTED_BYTESTREAM_TYPE )
I tried inspecting the same file using MFMediaPropDump and received the following error:
MediaPropDump.exe failed, hr=0xC00D36C4, MF_E_UNSUPPORTED_BYTESTREAM_TYPE
I am able to play this file using Windows Media Player and also render it using GraphEdit (DirectShow). Am I missing something? Is this a bug?
Regards,
Dinesh
After getting the Microsoft H.264 MFT decoder to output data, I am trying to get the MPEG-4 decoder to do the same, but so far no luck. I am using the same framework, initializing the CLSID_CMpeg4sDecMFT decoder, and passing bitstream data in. However, nothing comes back out, so clearly there is something wrong with the initialization or format of my input bitstream chunks. The documentation is sparse. Does anyone know any special requirements to the bitstream format being passed in? (for instance, the H.264 decoder required Annex B bitstreams, and not MPEG-4 style)..
I am setting the Subtype to MFVideoFormat_MP4V.
The documentation says:
The MPEG4 Part 2 Video decoder accepts the following formats.
What does this mean? How should the IMFSamples be created to one of these formats?
I am having trouble configuring MFT decoders. I think the reason is that I have not been able to figure out how to configure or send "extradata" (sequence header, extended format data) to the decoders. For Directshow, this is usually just added after the FORMAT_VideoInfo or FORMAT_VIDEOINFO2 data and setting the cbSequenceHeader to indicate the size of the sequence header data.
For example, the documentation for the MPEG4 Part 2 Video decoder says the decoder accepts the following formats: VIDEOINFOHEADER, VIDEOINFOHEADER2 etc, but not how to configure the coder with any of these..
The MSDN documentation for Configuring MFT Inputs and Inputs, says " Without the extended format data, you cannot decode the compressed content", but again, not how to send the ext. format data to the decoder.
Any advice ?
While trying to SetInputMediaType to MFAudioFormat_Float on Win8 it fails with invalidmediatype. How do I correct this?
ComPtr<IMFMediaType> _spTypeOut;
CHK(MFCreateMediaType(&_spTypeOut));
CHK(_spTypeOut->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Audio));
CHK(_spTypeOut->SetGUID(MF_MT_SUBTYPE, MFAudioFormat_MP3));
CHK(_spTypeOut->SetUINT32(MF_MT_AUDIO_SAMPLES_PER_SECOND, 44100));
CHK(_spTypeOut->SetUINT32(MF_MT_AUDIO_AVG_BYTES_PER_SECOND, 16000));
CHK(_spTypeOut->SetUINT32(MF_MT_AUDIO_NUM_CHANNELS, 2));
CHK(_spTypeOut->SetUINT32(MF_MT_AUDIO_BITS_PER_SAMPLE, 16));
CHK(_spTypeOut->SetUINT32(MF_MT_AUDIO_BLOCK_ALIGNMENT, 1));
CHK(_spTypeOut->SetUINT32(MF_MT_AUDIO_PREFER_WAVEFORMATEX, 1));
// Add a stream of mediatype mp3 to the writer
CHK(_spSinkWriter->AddStream(_spTypeOut.Get(), &_OutputStreamIndex));
// Create a common input type for the sinkwriter
ComPtr<IMFMediaType> _spMFTypeIn;
CHK(MFCreateMediaType(&_spMFTypeIn));
CHK(_spMFTypeIn->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Audio));
CHK(_spMFTypeIn->SetGUID(MF_MT_SUBTYPE, MFAudioFormat_Float));
//CHK(_spMFTypeIn->SetUINT32(MF_MT_AUDIO_SAMPLES_PER_SECOND, 44100));
//CHK(_spMFTypeIn->SetUINT32(MF_MT_AUDIO_AVG_BYTES_PER_SECOND, 16000));
//CHK(_spMFTypeIn->SetUINT32(MF_MT_AUDIO_NUM_CHANNELS, 2));
//CHK(_spMFTypeIn->SetUINT32(MF_MT_AUDIO_BITS_PER_SAMPLE, 16));
//CHK(_spMFTypeIn->SetUINT32(MF_MT_AUDIO_BLOCK_ALIGNMENT, 1));
//CHK(_spMFTypeIn->SetUINT32(MF_MT_AUDIO_PREFER_WAVEFORMATEX, 1));
hr = _spSinkWriter->SetInputMediaType( _OutputStreamIndex, _spMFTypeIn.Get(), NULL ) ;
Hello,
I have created M4A files containing zero amplitude audio using Media Foundation on Windows 7. I am able to read this file back into my application on Windows 7 successfully. Even Windows Media Player is able to read this file successfully.
However, when I attempt to read this data into my application on Windows 8, I receive a MF_E_UNSUPPORTED_BYTESTREAM_TYPE error when using MFCreateSourceReaderFromURL. The code I use to create the source reader is below:
HRESULT hr = S_OK; CComPtr<IMFAttributes> attributes; hr = MFCreateAttributes(&attributes,1); // hr returned is S_OK hr = attributes->SetUINT32(MF_READWRITE_DISABLE_CONVERTERS, FALSE); //h returned is S_OK // Open the file for reading and setup the source reader hr = MFCreateSourceReaderFromURL(fileName, attributes, &_sourceReader); // hr returned is 0xC00D36C4
When I attempted to use MFMediaPropDump to parse this file, I again received an MF_E_UNSUPPORTED_BYTESTREAM_TYPE error. Even Windows Media Player was unable to open the file.
I observed the same behaviour when I attempted to write out a zero-amplitude AAC file on Windows 8 and read it back in using my application.
I also created a zero-amplitude MPEG-4 AAC file using AVFoundation on Mac OS X 10.7. This file could be successfully read on Windows 8. One curious thing was the sizes of the files obtained on these platforms:
Windows 7 - File size = 0.75K
Windows 8 - File size = 0.76K
Mac OS X 10.7 - File size = 56.05K
Is this a bug?
I will be happy to provide the MFTrace output of my application. Not pasting it as it is very large.
I am trying to use the MFTrace tool to get an idea of what my loaded topology looks like. I intend to use a hardware H.264 encoder available on my machine. The application runs fine in the debugger and normally from Explorer, with the hardware encoder working its magic. However, when I run my application under MFTrace, I run into an Access Violation exception. It appears that this happens when I try to resolve a partial topology created by MFCreateTranscodeTopology with IMFTopoLoader::Load. The part of the trace that is logged before the exception shows a call to ActivateObject and subsequently MFGetMFTMerit.
I tried isolating the exception and found that I could cause it to happen when I simply enumerate the hardware encoder and try to activate it. Same trace output.
It seems to me that there may be a bug in how MFTrace hooks itself into all the MF libraries. Or could there be something wrong with the hardware encoder - I am using Intel's QuickSync H.264 encoder provided with Sandy Bridge chips (on a Core i7 3rd gen processor)?
I am writing an app on top media foundation under win 7, I use IMFMediaSource to query the cameras interfaces to get frames and other properties. its weird but I cant find a way to change resolution. it seems that if I used IMFCaptureSource i could use SetCurrentDeviceMediaType to change resolution but its only supported in Windows 8. so we cant change resolution under win 7 using media foundation?? is there a why to use direct show with IMFMediaSource to change resolution?? if so, can anyone help with some code sample?
thanks!
I want to play some videos seamless with the evrpresenter.
so i use the Playlist sample and the evrpresenter sample.
because the playlist sample only play audios. so i add some code in the Playlist to support the video.
some of the code:
hr = MFCreateVideoRendererActivate(m_hWndVideo, &m_pVideoRendererActivate);
hr = m_pVideoRendererActivate->SetGUID(MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_CLSID, CLSID_CustomEVRPresenter)
There is no error, but when i close the app, memory leaks. I trace it and I found the EVRCustomPresenter doesnot release, the refCount = 1 when last close the app.
Then I try the MFPlay sample with the evrpresenter.There is no problem.
Coudle you tell me why using sequencer source with evrpresenter, the EVRCustomPresenter didnot release when close app.
the debug info:
“MF_SeqSrc_Playback.exe”: 已加载“E:\mywork\Playlist\Debug\MF_SeqSrc_Playback.exe”,已加载符号。when i run the media foundation samples.
SimplePlay sample.
MfPlayer sample.
Mfplayer2 sample.
the app is normal but in the debug output window there is a similar error info:
SimplePlay.exe 中的 0x76c8b727 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0233fb08 处的 bad_hresult。
MFPlayer.exe 中的 0x000007fefd1faa7d 处最可能的异常: Microsoft C++ 异常: 内存位置 0x01fff6d8 处的 bad_hresult。
MFPlayer.exe 中的 0x76c8b727 处最可能的异常: Microsoft C++ 异常: 内存位置 0x0382fb08 处的 bad_hresult。
what the bad_hresult mean.
Hi,
I am facing issue with getting value of windows media player volume.
I hope from volume mixer we get volume of media player.
could you please help me .
Thanks
Premanand Radhakrishnan
Is there not a WM Video 7 and 8 (WMV1 WMV2) MFT decoder? There is one for "Windows Media MPEG4 V1/V2 Decoder", whatever that may mean, and a different one for "Windows Media MPEG-4 V3". These are probably different, but not very common formats in the wild.
There is a "Windows Media Video 7/8 Encoder", but no corresponding decoder as far as I can find.