You can use MPlatform objects in external application (for example, Flash Media Live Encoder) or in DirectShow graphs. To do it you should use the ObjectVirtualSourceCreate method.
For example, to create a virtual object you should call:
m_objPlaylist.ObjectVirtualSourceCreate(1, "", "");All properties of virtual object are in system registry:
HKEY_CURRENT_USER\Software\Medialooks\MFormats\MFSink\MSource
| Name | Default value | Description |
| audio | true | indicates whether virtual device has audio. |
| video | true | indicates whether virtual device has video. |
| virtual_camera.convert_to_yuy2 | true for named virtual video cameras |
Controls automatic YUY2 conversion for named DirectShow virtual video cameras created with either MPlatform or MFormats. With this option enabled, the camera initially selects YUY2 output for YV12 and YV16 input with a positive even width. The receiving application can negotiate another supported output media type; frames are converted to that negotiated type. To disable this conversion, pass
This option does not change |
| auto_connect | true | indicates whether connection to the virtual device is automatically |
| dynamic_reconnect | 0 | indicates whether reconnection to the virtual device is dynamically |
| rate_control | 0 | rate control of virtual device |
| deinterlace | false | indicates whether virtual device is deinterlaced |
| scaling_quality | 2 | scaling quality of virtual device |
| am_filter_misc_flags | 0 | misc flags of audio mixer filter |
| am_push_source | 1 | audio mixer push source |
| output.video_format | "" | video format ofo virtual device |
| output.video_info_2 | auto | additional video information |
| output.fixed_size | 0 | When 1, a requested video size must match the virtual camera's selected output width and absolute height. Requests with a different size are rejected. |
Still have questions?
Tell us what didn’t work or what you’d like clarified.