Freescale / gstreamer-imx

GStreamer 1.0 plugins for i.MX platforms
Other
183 stars 127 forks source link

using imxvpuenc_h264 with no fixed framerate #260

Closed LieberwirthF closed 3 years ago

LieberwirthF commented 4 years ago

Hi, I'm using the following Pipeline:

appsrc ! identity drop-allocation=true ! tee ! queue ! fakesink
---------------------------------------> queue ! h264parse/mjpegparse ! imxvpudec ! videorate drop-only=true ! imxvpuenc_h264 ! h264parse ! rtph264pay ! application/x-rtp media=video encoding-name=H264 payload=96 clock-rate=90000 ! tee ! queue ! fakesink
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> queue ! webrtcbin

Into the appsrc I feed h264 or mjpeg encoded frames that all should be transcoded. These sources have different framerates, which I don't want to modify. Now imxvpuenc_h264 throws errors and warnings about rejected caps when I dont specify a framerate in a capsfilter after the videorate but the stream eventually starts.

Now my question: is there any way to get rid of the errors and warnings since the stream is working? using a capsfilter and setting the framerate=0/1 does result in the same Error.

0:00:15.484699668 22912   0x14f5b0 ERROR              imxvpuapi imxvpuapi_vpulib.c:3596:imx_vpu_enc_get_initial_info: could not get initial info: failure
0:00:15.484788668 22912   0x14f5b0 ERROR      imxvpuencoderbase encoder_base.c:494:gst_imx_vpu_encoder_base_set_format:<transPipe1_encodeH264> could not get initial info: unspecified error
0:00:15.485005668 22912   0x14f5b0 WARN            videoencoder gstvideoencoder.c:678:gst_video_encoder_setcaps:<transPipe1_encodeH264> rejected caps video/x-raw, format=(string)I420, width=(int)640, height=(int)360, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)0/1
angolini commented 3 years ago

I think you can probably use a less verbose compilation or configuration for the artifacts you are using. (I'm not sure if I got the question properly)