RVMedia 9.0 and FFmpeg
FFmpeg 5
RVMedia 9 supports the new version 5 of FFmpeg (as well as all old FFmpeg versions).
RVMedia 8 supported FFmpeg versions up to 4.
Ability to specify FFmpeg codecs
By default, when displaying videos, FFmpeg decoders are auto-chosen. When recording video or sound files, FFmpeg encoders are chosen by the specified video/audio format.
This is the recommended way. Alternatively, in RVMedia 9, you can specify the exact codec name for encoding or decoding.
New properties:
To get a list of available codecs, use the functions:
GetListOfVideoDecoders, GetListOfAudioDecoders, GetListOfVideoEncoders, GetListOfAudioEncoders
There are the following reasons to specify the exact codec names:
- to use video/audio format that is not listed in RVMedia's TRVAudioCodec and TRVVideoCodec (however, it's better to contact me and ask to add the format)
- to use alternative codecs (such as codecs that require special hardware)
Ability to choose audio/video stream
A video file may contain multiple audio streams (for example, in different languages).
Multiple video streams is a less common feature, but they are possible.
Previous versions of RVMedia always chose the first video stream (and they were not able to read sound from videos).
In RVMedia 9, new events are added:
In these events, you can choose a video/audio stream index.
Limitations:
- these events are called in a thread context, you cannot use user interface in them
- these events are called at the beginning of video playback, once; to choose another stream, you need to restart video.
Currently, these events are called only when video is played with FFmpeg. In future, we plan to call them for GStreamer and DirectX as well.