[Bug 736100] New: video-info: doesn't return the right I420 image size for certain resolutions
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Sep 4 23:42:29 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=736100
GStreamer | gst-plugins-base | git
Summary: video-info: doesn't return the right I420 image size
for certain resolutions
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: aleix at oblong.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Not sure if the above is the right description for the bug.
I'm integrating I420 frames coming from the webrtc project into GStreamer. And
I'm seeing different byte sizes between the two.
For example, an I420 frame with width=1364 and height=768:
webrtc reported size = 1571328
gstreamer reported size = 1572864
>From what I know, I420 is 12bits per pixel, which matches webrtc value =
1364x768x1.5 = 1571328.
The error in GStreamer is:
0:00:32.577537792 16018 0x7fd410005800 ERROR default
video-frame.c:152:gst_video_frame_map_id: invalid buffer size 1571328 < 1572864
I have verified also this code:
GstVideoInfo video_info;
gst_video_info_init (&video_info);
gst_video_info_set_format (&video_info, GST_VIDEO_FORMAT_I420,
1364, 768);
And printing GST_VIDEO_INFO_SIZE (&video_info) returns 1572864.
Any idea who's wrong?
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list