mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
avvidenc: handle GST_VIDEO_MULTIVIEW_MODE_MONO
Otherwise videotestsrc ! avenc_libx265 ! fakesink outputs `Unsupported multiview mode - no mapping in libav`
This commit is contained in:
parent
63555e5cc7
commit
c8b8884791
1 changed files with 3 additions and 0 deletions
|
@ -501,6 +501,9 @@ static enum AVStereo3DType
|
|||
stereo_gst_to_av (GstVideoMultiviewMode mview_mode)
|
||||
{
|
||||
switch (mview_mode) {
|
||||
case GST_VIDEO_MULTIVIEW_MODE_MONO:
|
||||
/* Video is not stereoscopic (and metadata has to be there). */
|
||||
return AV_STEREO3D_2D;
|
||||
case GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE:
|
||||
return AV_STEREO3D_SIDEBYSIDE;
|
||||
case GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM:
|
||||
|
|
Loading…
Reference in a new issue