Media Foundation:Playback using Raw Data Bytes Frame by Frame

I have a stream of bytes encoded by H264.Now
I want to playback using Media Foundation I have the frames as raw data without container and I receive it frame by frame.does any
one have any idea how can I do that?

You should be able to decode it with the MF H264 decoder, but you should get the codec private data from the encoder in order to configure the decoder (MF_MT_USER_DATA). Anyway, more info on this would probably help other people in providing useful answers.
Once you have decoded frames you could render them with the EVR or DXVA.

Similar Messages

  • How can an image be displayed by using raw data read from the serial port?

    Hi there,
    I am using an embedded camera to take photos. To operate it i send commands to it via the serial interface. I have received all of the image data back through the serial port and can view it as hex data in a string. The image data is 16bit colour RAW data at 160x120 resolution meaning i have 38400 bytes of data (160x120 = 19200. 19200*16 = 307200. 307200/8 = 38400). I want to be able to display this data as a picture, but cannot figure out how to do it. Can someone please point me in the right direction? i have been fiddling about with lots of the pixmap functions but no luck. Do i need to put this data in to a 2D array first?

    Yes, first convert it into a 2D array of pixel values. From there you can convert it into an image to display it in a picture control.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Add ability to use raw data in the Histogram and clipping indicators

    I have posted this as an ACR and Lightroom Feature Request at the Photoshop Family site.
    http://feedback.photoshop.com/photoshop_family/topics/raw_data_histogram_display_lightroom _and_adobe_camera_raw?rfm=1
    It was suggested I also post it here to for more visibility.
    "The current Histogram display in Lightroom and Adobe Camera Raw accurately display the file image data for JPEG, PNG, PSD, TIFF file types, but not for raw files.
    When a raw file is demosaiced and a camera profile applied it is no longer possible to determine the actual R-G-B-G2 raw data clipping levels. This is useful for determining best exposure settings (ETTR) when shooting tethered, evaluating exposure bracketed images, or for simply determining your camera's exposure metering accuracy.
    This can be added as a user-selectable option button in the current Histogram to allow viewing of the camera file's R-G-B-G2 raw data values."
    This has been requested in the past, but there appears to be mixed feelings and some confusion as to its benefits:
    http://forums.adobe.com/message/3967184#3967184
    The sole objective of  using the raw image file data in the Histogram is to determine if the image file contains clipped pixels. The actual raw data preview image is of no value other than to "accurately" display those pixels using the Highlight and Shadow clipping indicators. A good example of this implementation is the RawDigger application available for download here:
    http://www.rawdigger.com/

    Yes but it can be problematic in so far as some users find it can slow down their system. When you first switch it on it can take a while for all your files to be updated. If you're in the habit of making edits and adjustments to multiple selected images this too can slow things down. Anyway, to activate the it you'll, need to open
    Catalog Settings from the
    File menu, then set the
    Metadata: Automatically write changes into XMP to On - see attached screenshot.

  • What does 'media.windows-media-foundation.enabled' do?

    I disabled media.windows-media-foundation.enabled in order to get .mp3/mp4 to stop playing in firefox, but rather prompt me to open/save as. It works fine. However, the place where I found this solution said it was going to break some embedded playback functionality.. or something.
    Vimeo still works, HTML5 Youtube still works, Vine still works. I'm not sure what is supposed to break, and I *KNOW* I'm going to find it eventually and completely forget that I ever did this. Can anyone explain what is supposed to stop working?
    Thanks! :)

    Media Foundation is used to decode MPEG media, such as MP3 and MP4. Many sites that feature HTML5 are using alternative formats such as WebM that are not patented.
    I think you might occasionally have a problem on some sites. For example, the site might only offer MPEG media in its HTML5 player and use a script that doesn't test carefully and provide an alternative (e.g., Flash player media) for browsers that do not support MPEG media. But... hopefully not too many sites.

  • Creating BI Publisher report with raw data XML

    Hi Guys,
    Can anyone please point me to a link or tutorial where we can do reporting using raw data XML as a datasource and defining the Parameters for filters.
    Thanks,
    Aash

    Thanks for your reply.
    I'm just add a new data set from BI Analysis, I select the Analysis and press OK, pop-up closed and in the data set I see the box with the message... nothing else.
    If I try to use a simple Analysis, the new data set works.

  • Using RAW in Jave Bean to store data in Oracle 8i database

    I have a question about using RAW in java program to read write data in Oracle database. Is there any sample with key information for me to refer to? Your help will be appreciated.
    Jane

    I have a question about using RAW in java program to read write data in Oracle database. Is there any sample with key information for me to refer to? Your help will be appreciated.
    Jane Jane,
    here is a code snippet provided by our QA team
    hope it helps
    Kuassi
    1. Create the table:
    "CREATE TABLE rawtable (key VARCHAR2(30), rawcol RAW(2000), longrawcol
    LONG RAW, moredata VARCHAR2(100))"
    2. Write the data:
    byte x[] = {1,2,3,4,5};
    byte y[]= {6,7,8,9,10};
    PreparedStatement pstmtR =
    conn.prepareStatement("INSERT INTO rawtable (key, rawcol,
    longrawcol, moredata) VALUES (?, ?)");
    pstmtR.setString(1, "rawcol data");
    pstmtR.setBytes(2, x);
    pstmtR.setNull(3, Types.LONGVARBINARY);
    pstmtR.setString(4, "Here's some more data!");
    pstmtR.execute();
    pstmtR.setString(1, "longrawcol data");
    pstmtR.setNull(2, Types.BINARY);
    pstmtR.setBytes(3, y);
    pstmtR.setString(4, "Here's some more data!");
    pstmtR.execute();
    pstmtR.setRAW(1, RAW_obj) can be used to insert the RAW data.
    You can also use setBinaryStream to insert RAW data:
    CallableStatement cstmt =
    conn.prepareCall ("begin insert into rawtab values (?,?); end;");
    cstmt.setBinaryStream (1, (java.io.InputStream) new
    ByteArrayInputStream(rawbuf), rawbuf.length);
    cstmt.setBinaryStream (2, (java.io.InputStream) new
    ByteArrayInputStream(lrawbuf), lrawbuf.length);
    3. Read the data:
    InputStream is = null;
    byte rawbuf [];
    byte lrawbuf [];
    ResultSet rset = stmt.executeQuery("SELECT rawcol, longrawcol FROM
    rawtable");
    // You can retrieve the data with the following methods
    rawbuf = rset.getBytes(1);
    lrawbuf = rset.getBytes(2);
    RAW raw1 = rset.getRAW(1);
    is = rset.getBinaryStream(column);
    is = rset.getAsciiStream(column);
    is = rset.getUnicodeStream(column);
    When using CallableStatement:
    ((OracleCallableStatement)cstmt).registerOutParameter(1,
    OracleTypes.RAW);

  • Problem loading PostgreSQL Bytea data type to Oracle Raw data type

    We are migrating our database from PostgreSQL to Oracle. First, we convert the BYTEA data type in PostgreSQL to Oracle RAW. The BYTEA data type is variable bytes array. How can we load the BYTEA data type to Oracle RAW data type? Or I have to convert to different data type. thanks.
    Peter,

    hi,
    Instead of 'interval day to second' in method declaration use internal datatype 'DSINTERVAL_UNCONSTRAINED'.
    There are more unconstrained types in oracle.
    Bartek

  • Firefox's Media Foundation support breaks music playback and turning it off doesn't do anything.

    A friend sent me an MP3 link about a month ago, and I was confused when Firefox told me the file was corrupt. I figured it was just the server it was on.
    Then, I stopped being able to listen to music posted through Tumblr. I figured they just updated their player and broke something.
    Then I tried listening directly to an MP3 on another site tonight, and again, Firefox told me "Video can't be played because the file is corrupt." I dashed around to a handful of other sites and every single one of them told me the same thing when I tried to play an MP3 file.
    After doing some investigation, I learned that the Firefox team has tried to implement their own internal music playback system that either can't find a codec or isn't detecting these files as music properly. Now, a long time ago, I got pretty used to all these files playing through Quicktime, to the point where I would specifically install Quicktime with each version of Windows just to restore this functionality. But now Firefox is overriding that functionality for some reason.
    The culprit seemed to be the option "media.windows-media-foundation.enabled", which I promptly disabled. Didn't help. Firefox is still insisting that these files are corrupt instead of letting Quicktime handle them.
    This site also suggested turning plugins.load_appdir_plugins to true, but that didn't help, either.
    It would seem Firefox is intentionally relying on a part of Windows that I don't have, because I'm still stuck on Windows XP (video capture hardware I depend on doesn't have drivers for Vista on up). The annoying part is that I can't seem to change it back to the way it was, and I'm pretty angry because this has broken a significant portion of the internet for me.

    That seems to have done the trick! Thanks a million.

  • Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera'

    Is it wise to keep the Nikon camera files "DSC's"  after downloading them and converting to DNG files via Adobe converter for lightroom use. In other words do the DNG files have all the raw data I would ever need in processing or should I save the camera's DSC files?

    DNG files do not contain some metadata supplied by the camera, which can be used by the manufacturer's software. Thus, if you don't keep the original Raw photo, you will lose this information.
    If your 1000% sure you're never going to use the manufacturer's software, then this isn't a problem. But who can be sure what software you will be using 10 years from now?

  • Use Cellular Data to playback podcast

    I download all my podcasts over wi-fi at home.  When I try and play them back I get a message asking me "Use Cellular Data - Would you like to temporarily turn on Cellular Data in order to play back this streaming episode?"  The only option to play the podcast is "Turn On", regardless of whether there is a wi-fi connection or not.  In Settings/Podcasts I've set Use Cellular Data to OFF. 
    Why if the podcast is already donwloaded would cellular data be required to playback a streaming episode - there's no need to stream if its already downloaded.
    This has never been a problem before but has been the case ever since I used ceelular to download a podcast on the bus as a once-off.  Podcasts Version is 1.2.1 (331)

    Are you just syncing content? Or are you doing an update on the phone?
    Syncing content doesn't use any data; not sure if updating a phone requires it to communicate with Apple's servers afterwards so that may use data.
    ~Lyssa

  • How do I add Channel names to my raw data using a plugin?

    I have a Campbell Scientific datalogger which outputs raw data (no headers, etc.)  I need to add channel names and units to this data for display in DIAQdem.  I know there's a way to do it, but I haven't had the class yet (coming to the base soon) and don't have a lot of time to try and figure it out for myself.  I'd appreciate any help that I can get.
    I've generated a script using the Data Plugin Wizard, but as expected, it's very long and verbose... most likely has WAY more information in it than I need.

    Hi NavyJack
    I answered a similar question a while back.  If you just want to add a list of static channel names, then try this approach with your existing DataPlugin that you got from the ASCII DataPlugin Wizard:
    http://forums.ni.com/ni/board/message?board.id=60&message.id=8232&query.id=66481#M8232
    You are of course absolutely correct that the boiler plate code you get from the ASCII DataPlugin Wizard is way more complicated than you need for your data file.  If you are able to send me a sample data file, I could probably send you back a very simple DataPlugin which would be much easier to tweak for channel names, channel units, etc.
    What DIAdem version are you using?
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How can I convert from Modbus raw data to engineering units using a formula?

    Within Lookout, I have several Modbus numerical input types that do not have a linear corespondence to the Engineering values they represent.  How can I display these values accurately using a formula to convert from the raw data to an engineering value?

    I don't quite understand your reply.  I'm using Lookout 6.0.2, logged in as Administrator, in Edit Mode.  The Modbus object is named RTU06_SAV.  The Active member is 30002 with an alias of SAVfmSMT_RSL.
    Following your instructions, I opened Object Explorer and right-clicked on RTU06_SAV. 
    This opened a menu containing:  Refresh, Cut, Copy, Rename, Delete, Edit connections..., Edit Data Member Configuration, Configure Network Security and Properties.
    I assumed that I should select Edit Data Member Configuration, but maybe I'm wrong. 
    Within Data Member Configuration I can set up Linear Scaling between Raw data and Engineering data.  I know how to do that, but what I need to know is how to convert Raw data to Engineering data using a formula representing a non-linear transformation (such as a converion to a logarithmic value or perhaps a formula derived by fitting the formula to a curve on a calibration chart).
    Once I have this my Engineering data can be represented on a control panel as both a numeric value AND as a correctly reading Gauge.  It can also be properly represented on a HyperTrend graph.
    What do you suggest?

  • Take photo from image stream using capture engine technique in media foundation

    Hi,
    I am beginner for media foundation.I have to develop Win32 desktop application using capture engine technique in media foundation.
    I have to implement the following features:1)Show video streaming 2)Capture video 3)Capture photo from still-image stream.These features are implemented in capture engine.
    I am able to take photo from video stream not from image stream.I tried to configure the image stream index in Addstream() api,but its giving MF_CAPTURE_ENGINE_ERROR error.
    To trigger the still pin,use
    the IAMVideoControl::SetMode method
    in directshow. How do i implement this feature using capture engine technique in MF?My question
    is-is it possible do it in Media foundtion??I have searched many sites but no luck.
    Here the sample code which i used to capture an image.
    HRESULT TakePhoto()
    HRESULT hr = m_pEngine->GetSink(MF_CAPTURE_ENGINE_SINK_TYPE_PHOTO, &pSink);
    if (FAILED(hr))
    goto done;
    hr = pSink->QueryInterface(IID_PPV_ARGS(&pPhoto));
    if (FAILED(hr))
    goto done;
    hr = m_pEngine->GetSource(&pSource);
    if (FAILED(hr))
    goto done;
    hr = pSource->GetCurrentDeviceMediaType(1, &pMediaType); // 1 is Image stream index.I will get current image stream media type here.
    if (FAILED(hr))
    goto done;
    //Configure the photo format
    hr = CreatePhotoMediaType(pMediaType, &pMediaType2,GUID_ContainerFormatBmp);
    if (FAILED(hr))
    goto done;
    hr = pPhoto->RemoveAllStreams();
    if (FAILED(hr))
    goto done;
    DWORD dwSinkStreamIndex;
    // Try to connect the first still image stream to the photo sink
    if(bHasPhotoStream)
    hr = pPhoto->AddStream((DWORD)MF_CAPTURE_ENGINE_PREFERRED_SOURCE_STREAM_FOR_PHOTO, pMediaType2, NULL, &dwSinkStreamIndex); //Instead of MF_CAPTURE_ENGINE_PREFERRED_SOURCE_STREAM_FOR_PHOTO,i gave index as 1.i am getting error
    if(FAILED(hr))
    goto done;
    hr = pPhoto->SetOutputFileName(pszFileName);
    if (FAILED(hr))
    goto done;
    hr = m_pEngine->TakePhoto();
    if (FAILED(hr))
    goto done;
    return hr;
    HRESULT OnCaptureEvent(WPARAM wParam, LPARAM lParam)
    GUID guidType;
    HRESULT hrStatus;
    IMFMediaEvent *pEvent = reinterpret_cast<IMFMediaEvent*>(wParam);
    hr = pEvent->GetExtendedType(&guidType);
    if (SUCCEEDED(hr))
    if (guidType == MF_CAPTURE_ENGINE_ERROR) //i got this error if i give dwSourceStreamIndex as '1' in Addstresm api
    DestroyCaptureEngine();
    pEvent->Release();
    return hrStatus;
    Please help me to solve this problem.Past one week,I am working on this issue and i couldnt find the solution.Please give me a some idea or some sample code to solve this problem.
    Thanks in advance.
    Regards,
    Ambika

    Hi Everyone,
    Any help will be appreciated.
    Regards
    Ambika

  • Is it possible to run Go URL SQL and return raw data using Java?

    Hi All,
    I just got GO URL SQL working in HTML, when i type the following URL on to the address bar.
    https://odsau.oraclecorp.com/analytics/saw.dll?Go&SQL=select+"MFG Serial Number"."Job Name","MFG Serial Number".Item+from+"Supply Chain Management"
    It prints out a table with all the data that query from the database in a HTML page. However, I want to be able to manipulate these data in a JAVA script.
    Is there a similar function i can use in Java script and return raw data so i can store them into a variable for data manipulation?
    Or is there a work around that someone has already done ?
    Thanks
    John Lau

    You can excute SQL statemetns throught JDBC, but that doesn't have a facility to read those statements from a file. You'd have to write code to read the file and create and execute statements through JDBC. That should be pretty straightforward though.
    It's conceivable that there's a third party library out there that does it, if you know what to look for.
    If you're not familiar with JDBC, check out http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/

  • How can I use FRF function after i have collected the raw data?

    I have collected a set of raw data from a vibrational test. I didn't save the FRF results. I was wondering if i can do a FRF post data analysis. Maby by using a modified verison of the FRF (SVXMPL_Baseband FRF (Simulated).vi found in the NI example finder with sound and vibration toolkit) to read my data (two columns: Stimulus, Response) knowing that i have saved the settings (i.e. sine wave, sample rate, frequency resolution....). This example porgram from NI generates the signal on its own and doesn't allow me to import data.
    thank you
    cheers
    Wafa
    PS. the test cannot be repeated, i have modified my program that it can now save the FRF results.

    I figured it out...removed the data generator in the stimulation and used my saved data (after lots of modification) into the program...works perfectly now...

Maybe you are looking for

  • I can't create a security copy into iCloud

    When I upgraded to iOS 5, I enabled iCloud backup. The first security backup was created succesfully but it almost used all the available space. The next day, when the iPad tried to create the iCloud backup, it warned me that there was not enough spa

  • How to get Transaction code for SAP standard report painter in FI

    Hi All -    Please let me know, How to get the transaction code for Standard SAP report painter / report writer in FI module. These report painters are created thru GR51... Thanks, Kannan

  • Iframe Injection Attack in Coldfusion

    Hi, Recently one of my sites have been hit with an iframe injection: <iframe scrolling="no" frameborder="0" src="the source changes but normally htttp://collegefun4u.com/" width="0" height="1"></iframe> It happens at random times and gets inserted in

  • Stucking trackpad movement

    Hello everyone. I just recognised some issues with my trackpad on my MacBook Pro (8.1). The mouse movement is sporadically not very fluent and stops at certain points. Additionally the two finger scrolling shows the same symptoms. My MacBook is not c

  • After reseting Firefox my profile has gone missing. How do I fix it?

    Profile Missing pops up with message "your Firefox profile cannot be loaded. It may be missing or inaccessible." I have reset Firefox before without a problem. This is about the third time.