Saving the video in a different file format is one of the frequently performed tasks—for example, the task of converting a recorded footage on to your camcorder to a format playable on a DVD player. So let's list out the elements we need in a pipeline to carry out the video format conversion.
A
filesrc
element to stream the video file and adecodebin
to decode the encoded input media data.Next, the audio processing elements of the pipeline, such as
audioconvert
, an encoder to encode the raw audio data into an appropriate audio format to be written.The video processing elements of the pipeline, such as a video encoder element to encode the video data.
A multiplexer or a muxer that takes the encoded audio and video data streams and puts them into a single channel.
There needs to be an element that, depending on the media type, can send the media data to an appropriate processing unit. This is accomplished by
queue
elements that act as data buffers. Depending on whether...