The properties are stored in the system registry:
[HKEY_CURRENT_USER\SOFTWARE\Medialooks\MPlatform\MWriter]
and can be set with the PropsSet method. Please refer to this article about prefixes for properties.
| Name | Default value | Description |
|---|---|---|
| statistics.extended | stat | Sets a prefix for gathering statistics of an MLive object after all the conversion and changes. |
| rate_control | 0 | Once set to "1", the MWriter object controls playback rate (playback doesn't continue until the MWriter doesn't return an event that a frame has been encoded). |
| max_duration | 0.0 | Maximum duration of one file, in seconds. When the recorded audio (video, if there is no audio) reaches it, the writer continues in a new file with the same name and a number: clip.mp4, then clip_0001.mp4, clip_0002.mp4 and so on. 0 disables splitting. See Control of encoding process. |
| max_duration.continuous_timecode | false | With true, each file after a max_duration split continues the timecode of the previous file. With false, every file starts again at the start_timecode of the encoding configuration.Works only with an explicit start_timecode in the configuration passed to WriterNameSet (for example start_timecode='10:00:00:00'), the legacy writer (not writer.engine=xmedia), buffered recording (writer.buffers greater than 0; some formats are always written directly) and one source. Set it before ObjectStart.The next file starts at the previous start plus the number of video frames written, so keep the input and output frame rates equal and constant. Example at 25 fps with max_duration=60 and start 00:00:00:00: the first file ends at 00:00:59:24, the second starts at 00:01:00:00. The frames field counts every frame of a second, so at 50 fps it goes from 00 to 49. Drop-frame timecode (the . separator, or ; with a 29.97 or 59.94 fps video format) continues only at 29.97 and 59.94 fps. |
| external_process | true | Once enabled, the encoding happens in an external MServer.exe process. Can be set only by registry. Must be set to false when writer.engine is xmedia. |
| external_process.wait_time | 10000 | MServer startup timeout (ms) |
| force_conversion | false | Force video conversion, even if the selected format is the same as the original format |
| config.path | user_config.xml | Sets a path to a user configuration XML file. |
| audio_channels | Default audio channels configuration. See audio management for details. | |
| audio_gain | Default audio gain configuration. See audio management for details. | |
| config.unicode | dword:00000000 | Once set to "1", a configuration uses Unicode symbols. |
| config.load | false | Once enabled, an MWriter object loads a previous configuration from "config.path" file. |
| config.save | true | Once enabled, an MWriter object saves the last configuration to "config.path" file. |
| play_while_rec | true | Enables Play-while-Rec feature by default. In this mode, you can playback files with external applications (based on Medialooks products) while they are recorded. |
| pull_mode | true | Sets pull-mode for MWriter object |
| video.buffers | 30 | Sets the maximal size of the buffer for input frames. |
| video.drop_frames | false | Once enabled, MWriter can drop frames if encoding takes a long time. |
| writer.buffers | 100 | Sets maximum encoding buffer size. |
| writer.buffers_min | 1 | Sets minimum encoding buffer size. |
| writer.async_start | false | Once enabled, MWriter object starts asynchronously. |
| on_frame.sync | false | Makes OnFrame and OnFrameSafe events synchronous, so frame grabbing process won't continue until OnFrame event isn't over. |
| on_frame.data | false | Enables objects of OnFrame and OnFrameSafe events to contain MFrame data. |
| on_event.sync | false | Makes OnEvent and OnEventSafe events synchronous, so frame grabbing process won't continue until OnFrame event isn't over. |
| events.use_window | true | Use events (OnFrame, OnEvent, OnEventSafe and OnFrameSafe) in the thread of your application. If you use a service or an application without windows, then disable this mode. |
| anc_capture.tags | Default custom ANC tags. See more for details. | |
| scaling_quality | auto |
Sets scaling quality for video.
|
| overlay_rms | false | Enables RMS overlay. |
| overlay_rms.pos | 0.13 | Specifies the relative vertical position of the RMS overlay. Available values are from 0.00 to 1.00. |
| overlay_rms.color | red |
Specifies RMS overlay color. Possible values:
|
| overlay_waveform | false | Enables waveform overlay. |
| overlay_waveform.pos | 0.3 | Specifies the waveform overlay position relative to the center. |
| overlay_waveform.color | Specifies the waveform overlay color. | |
| register_object | true | Once enabled, the MWriter object is registered to the system to gather statistics. |
| object_name | MWriter |
Default name of the object. If you need to change it, use the following approach: m_objWriter.PropsSet("object_name", "new_name"); m_objWriter.ObjectNameSet("new_name"); Note, that it's possible to change the name only before the object is started. If the object is running, stop it, and only then rename the object. |
| dvb.rate_control | true | Enables rate control by MWriter object for DVB streaming |
| experimental.breaks_correct_msec_max | 0 | corrects the input breaks for MWriter (set e.g. 100 msec for breaks correction) |
| format.set_default_pixelformat | true | Uses the original pixel format if a video conversion is used |
| mfcodecs.enabled | true | Enables a new encoding implementation |
| encoder::subtitle.init_without_data | true |
FFmpeg writer backend property. Allows audio/video startup when subtitle data is absent in the subtitle packet-copy workflow. It does not reserve a DVB subtitle PID by itself. After |
| mfcodecs.gpu_frame_encoding | false | Forces GPU-powered video encoding in case of the GPU-pipeline mode |
| writer.sync_switch | false | closes current encoder before switching to next |
| writer.engine | legacy | Selects the recording backend: legacy or xmedia (since version 2.12.0.15000). The XMedia backend records local files and MPEG-TS streams over UDP and SRT in 64-bit applications and requires external_process=false. If it cannot handle the target or the format string, MWriter falls back to the legacy backend; check stat::writer_backend_active and stat::writer_backend_fallback_reason. |
Still have questions?
Tell us what didn’t work or what you’d like clarified.