non-GPL H.264 video encoder element for Raspberry Pi 3 or 3B+?
Matthew Thyer
matthew.thyer at adelaide.edu.au
Wed Jun 6 00:20:48 UTC 2018
I was using the standard GStreamer packages on Ubuntu Xenial (16.04 LTS) at the time which are version 1.8.3. At that time, Ubuntu didn't provide the gst-omx module in their repositories so I compiled it from source but had to go way way back to gst-omx version 1.2.0 (the newest version that pre-dated GStreamer version 1.8.3).
When I tried to encode the video using the video4linux2 source element (v4l2src) I got the following errors:
0:00:04.997773653 1735 0xbf53b0 ERROR omxh264enc gstomxh264enc.c:421:gst_omx_h264_enc_set_format:<omxh264enc-omxh264enc0> Unsupported profile constrained-baseline
0:00:04.997947195 1735 0xbf53b0 ERROR omxvideoenc gstomxvideoenc.c:1066:gst_omx_video_enc_set_format:<omxh264enc-omxh264enc0> Subclass failed to set the new format
0:00:04.998006674 1735 0xbf53b0 WARN videoencoder gstvideoencoder.c:623:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0> rejected caps video/x-raw, format=(string)I420, width=(int)320, height=(int)200, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, framerate=(fraction)90/1
0:00:05.005114283 1735 0xbf53b0 ERROR omxh264enc gstomxh264enc.c:421:gst_omx_h264_enc_set_format:<omxh264enc-omxh264enc0> Unsupported profile constrained-baseline
0:00:05.005219595 1735 0xbf53b0 ERROR omxvideoenc gstomxvideoenc.c:1066:gst_omx_video_enc_set_format:<omxh264enc-omxh264enc0> Subclass failed to set the new format
0:00:05.005275845 1735 0xbf53b0 WARN videoencoder gstvideoencoder.c:623:gst_video_encoder_setcaps:<omxh264enc-omxh264enc0> rejected caps video/x-raw, format=(string)I420, width=(int)320, height=(int)200, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, framerate=(fraction)90/1
0:00:05.005409127 1735 0xbf53b0 WARN GST_PADS gstpad.c:4092:gst_pad_peer_query:<v4l2src0:src> could not send sticky events
0:00:05.006386107 1735 0xbf53b0 WARN v4l2bufferpool gstv4l2bufferpool.c:748:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:00:05.413047735 1735 0xbf53b0 WARN v4l2bufferpool gstv4l2bufferpool.c:1196:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool:src> Driver should never set v4l2_buffer.field to ANY
0:00:05.413150026 1735 0xbf53b0 WARN v4l2bufferpool gstv4l2bufferpool.c:1741:gst_v4l2_buffer_pool_process:<v4l2src0:pool:src> Invalid buffer size, this is likely due to a bug in your driver, dropping
0:00:05.413205756 1735 0xbf53b0 WARN v4l2bufferpool gstv4l2bufferpool.c:1958:gst_v4l2_buffer_pool_process:<v4l2src0:pool:src> Dropping corrupted buffer without payload
0:00:05.418148311 1735 0xbf53b0 WARN v4l2bufferpool gstv4l2bufferpool.c:1741:gst_v4l2_buffer_pool_process:<v4l2src0:pool:src> Invalid buffer size, this is likely due to a bug in your driver, dropping
I think the reason for these errors is described in the mailing list here: https://lists.freedesktop.org/archives/gstreamer-openmax/2013-December/000761.html
I'm not too worried about this as I'm now compiling GStreamer version 1.14.1 from source and will be trying the new omxh264enc element again today.
-----Original Message-----
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> On Behalf Of Tim Müller
Sent: Tuesday, 5 June 2018 5:57 PM
To: gstreamer-devel at lists.freedesktop.org
Subject: Re: non-GPL H.264 video encoder element for Raspberry Pi 3 or 3B+?
On Tue, 2018-06-05 at 03:12 +0000, Matthew Thyer wrote:
> I have tried an earlier version of omxh264enc but it’s didn’t like the
> stream from my camera and I’m yet to try again with GStreamer release
> 1.14.1.
omxh264enc from gst-omx is the default encoder on the Raspberry Pi and should just work.
How did it "not like" the stream from your camera?
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com _______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list