- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a saved stream from a logitech C920 camera (which encodes to h264 on-board). The stream displays properly as color via other software (the other software is not Intel media SDK based). When I decode it using the Media SDK it gives me frames that are monochrome. Can you think of a possible explanation for this?
Link Copied
14 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is there a way you can make sure that chroma components are copied properly out of MSDK decoder? MSDK produces YV12. it looks like only Y frames got copied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply. The U and V components all come back as zero.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am having trouble contacting premium support regarding this - could someone from intel please reply on this thread?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
The Media SDK is free API and doesnt have a Premium Support service, just these forums. Sorry weve overlooked this post. We try to do our best to help everybody. That being said, can I ask that you share your stream (or a piece of it) so we can take a look?
Thanks
-Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By the way I have tried this with Media SDK 2012 (software) and with an older version (software and sandy bridge).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Paul,
I took the *.264 file that you posted and decoded it using 2012 Gold to a YUV file. That file was then imported into Elecard YUV viewer, and I dont see any issue with the color planes.
Can you elaborate on how you are viewing the YUV file? You want to make sure you have the YUV player set to IYUV format. If you open it with YV12, the color planes are reversed and the picture looks black & white (actually more blue).
-Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Eric,
I am viewing the YUV by using our own code that converts YUV to RGB and displays in a Windows bitmap. This code works fine for streams that were encoded with Media SDK.
Also, I have looked at the data and have seen that the UV plane contains 0's only. (The Y plane is fine).
Perhaps it's to do with the way we are calling the Media SDK methods? (Although the same code works fine with H.264 streams encoded with Media SDK).
I've attached a cut-down version of the code.
Regards,
Paul
I am viewing the YUV by using our own code that converts YUV to RGB and displays in a Windows bitmap. This code works fine for streams that were encoded with Media SDK.
Also, I have looked at the data and have seen that the UV plane contains 0's only. (The Y plane is fine).
Perhaps it's to do with the way we are calling the Media SDK methods? (Although the same code works fine with H.264 streams encoded with Media SDK).
I've attached a cut-down version of the code.
Regards,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Eric,
What did you use to decode the .h264 file to YUV? In other words, did you use packaged software that calls the Media SDK, or do you have a program with source code that calls the Media SDK?
If you have a program with source code, perhaps you can share with me some of the code so that I can see what might be different between it and my source code? This might be quicker for you than looking at my code.
Regards,
Paul
What did you use to decode the .h264 file to YUV? In other words, did you use packaged software that calls the Media SDK, or do you have a program with source code that calls the Media SDK?
If you have a program with source code, perhaps you can share with me some of the code so that I can see what might be different between it and my source code? This might be quicker for you than looking at my code.
Regards,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Paul,
I used sample_decode from the Media SDK 2012 download package. You can render the file as well - use the "-r" funcation. Pretty fast with only 1 frame though :)
-Eric
I used sample_decode from the Media SDK 2012 download package. You can render the file as well - use the "-r" funcation. Pretty fast with only 1 frame though :)
-Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have the same issue (monochrome YUV420 at output).
What was the solution?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You both seem to encounter an empty UV plane.
Please try the Media SDK provided sample_decode that Eric referred to using the "-r" option to render the decoded frames. If you still see B/W then my guess is that the actual stream may have been encoded as B/W.
Regards,
You both seem to encounter an empty UV plane.
Please try the Media SDK provided sample_decode that Eric referred to using the "-r" option to render the decoded frames. If you still see B/W then my guess is that the actual stream may have been encoded as B/W.
Regards,
Petter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does the MediaSDK muxer accept FORMAT_VideoInfo on the C920 H.264 pin?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Unfortunately the Media SDK binary muxer component does not work with that input. The muxer component (and the other binary only filters part of the SDK) has not been designed or validated for such usage. The intent of the binary only filters is to provide rapid ability to test the SDK, not to deliver full featured functionality.
If you need a muxer filter with extended functionality to support this use case, I suggest you look for commercial or open solutions from a 3rd party.
Regards,
Petter
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page