AnsweredAssumed Answered

gstreamer 700kbit constant bit rate encoding produces 1499 kbit stream

Question asked by rifat tursen on Sep 19, 2018
Latest reply on Sep 20, 2018 by igorpadykov

Hello,

I produce a mpegts stream with the below command and the output stream is around 1500 kbit/s. I would expect it to be around 700kbits since I give the "bitrate=700" option. I tried removing the "mpegtsmux" option but the output stream dropped to 1300 kbit/s

Resolution is 720 x 576 and fps is 25

Can you please guide me about what I am doing wrong?

Below link is a picture of the vlc codec info output when I play the file. Note that the background is almost constant

codec info — imgbb.com 

 

gst-launch-1.0 imxv4l2src device=/dev/video0 ! \ imxvpuenc_h264 bitrate=700 ! \ h264parse ! mpegtsmux ! queue ! fdsink | pv > /dev/null

root@colibri-imx6:~# ./pv.sh 14MiB 0:00:07 [ 181kiB/s] [ ]

 

Here are the software versions

root@colibri-imx6:~# gst-launch-1.0  --version
gst-launch-1.0 version 1.12.2
GStreamer 1.12.2

 

root@colibri-imx6:~# gst-inspect-1.0 imxv4l2src
====== IMXV4L2SRC: 4.3.1 build on Jul  3 2018 14:07:07. ======

 

```root@colibri-imx6:~# gst-inspect-1.0  imxvpuenc_h264
Factory Details:
  Rank                     primary + 1 (257)
  Long-name                Freescale VPU h.264 video encoder
  Klass                    Codec/Encoder/Video
  Description              hardware-accelerated h.264 video encoding using the Freescale VPU engine
  Author                   Carlos Rafael Giani <dv@pseudoterminal.org>

 

Plugin Details:
  Name                     imxvpu
  Description              video en- and decoder elements using the Freescale i.MX VPU
  Filename                 /usr/lib/gstreamer-1.0/libgstimxvpu.so
  Version                  0.13.0
  License                  LGPL
  Source module            gstreamer-imx
  Binary package           Unknown package release
  Origin URL               Unknown package origin```

               

Outcomes