write_media

Top
audio_capture audio_decode audio_encode audio_lowpower audio_mixer audio_processor audio_render audio_splitter
image_decode image_encode image_fx image_read image_write resize source transition write_still
clock null_sink text_scheduler visualisation
read_media write_media
camera egl_render isp rawcam video_decode video_encode video_render video_scheduler video_splitter
Custom Index Metadata
| # OMX.broadcom.write_media
170
171
| write_media
This conformant component accepts audio and video frames and writes the data to a file with a given file format. The format of the file is determined by the extension of the given target filename. A stream cannot be added once the component has moved to the executing state. The file will be closed when an EOS is received on all enabled ports or when there are no remaining enabled ports. Once the file is closed, it may not be re-written, nor another file written, until the component has been transitioned back to the loaded state.
Port | Index | Notes
170 171 | `OMX_IndexParamPortDefinition` | Query / set the format of the stream on the input port specified.
`OMX_IndexConfigBrcmPortStats` | Query for the port statistics for the given input port. Arriving buffers are counted, with the number of frames and bytes also counted.
`OMX_IndexParamBrcmCRC` | Query for the latest CRC for input data on this port.
`OMX_IndexParamCodecConfig` | Sets the codec config structure. When tunneled, this is automatically queried by the component on the tunnel output port, so only needs to be set when the port is acting in non-tunneled mode.
`OMX_IndexParamBrcmDataUnit` | Sets the type of data delivery for the encoded data (`OMX_DataUnitCodedPicture` or `OMX_DataUnitArbitraryStreamSection`). By default the component assumes `OMX_DataUnitArbitraryStreamSection`, but will also issue a `OMX_IndexParamBrcmDataUnit` request when tunnelling the input port to find out the value it should use. Note that most structured container formats require fully framed input data.
`OMX_IndexParamBrcmDrmEncryption` | Query / set DRM encryption scheme for data written on the input port.
170 | `OMX_IndexParamAudioPortFormat` | Query / set the audio port format. This port supports several audio formats, and doesn't support any conversion.
`OMX_IndexParamAudioMp3` | Query / set the MP3 properties of the audio stream.
`OMX_IndexParamAudioAac` | Query / set the AAC properties of the audio stream.
`OMX_IndexParamAudioPcm` | Query / set the PCM properties of the audio stream.
`OMX_IndexParamAudioWma` | Query / set the WMA properties of the audio stream.
`OMX_IndexParamAudioVorbis` | Query / set the Vorbis properties of the audio stream.
`OMX_IndexParamAudioAmr` | Query / set the AMR properties of the audio stream.
171 | `OMX_IndexParamVideoPortFormat` | Query / set the video port format. This port supports several video formats, and doesn't support any conversion.
`OMX_IndexConfigBrcmOutputBufferFullCount` | Query the number of times the output buffer has filled up. This is a rough guide to whether or not the output destination (SD card typically) is keeping up. This configuration value can be monitored via `OMX_IndexConfigRequestCallback`.
`OMX_IndexConfigRequestCallback` | Set whether we enable a callback to the client when the value of this index structure changes. Only supported for the index `OMX_IndexConfigBrcmOutputBufferFullCount`.
`OMX_IndexParamVideoAvc` | Query / set the H264 properties of the audio stream.
`OMX_IndexParamVideoH263` | Query / set the H263 properties of the audio stream.
`OMX_IndexParamVideoMpeg4` | Query / set the MPEG4 properties of the audio stream.
| `OMX_IndexParamContentURI` | Query / set the target filename. Currently the format of the URI is assumed to be a file that the component can directly access using the file system.
`OMX_IndexParamBrcmOutputBufferSize` | Query / set the output buffering size in bytes. This is a hint to the underlying handler, and may be ignored.
`OMX_IndexParamBrcmMaxFileSize` | Limit the maximum file size that can be generated. An error will be reported when this size is reached.
`OMX_IndexParamBrcmCRCEnable` | Query / set whether this component should calculate CRCs on all input data received. Setting this index resets CRCs on all ports to zero. CRC calculation defaults to off.
`OMX_IndexConfigBrcmIOPerfStats` | Query for statistics about I/O (e.g. file media) performance. Set whether or not this component captures these statistics (off by default) by changing the `bEnabled` field. Other fields are read-only and will be ignored upon set.