linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* coda: Unable to use encoder video_bitrate
@ 2014-12-18 16:44 Frédéric Sureau
  2014-12-18 16:52 ` Philipp Zabel
  0 siblings, 1 reply; 11+ messages in thread
From: Frédéric Sureau @ 2014-12-18 16:44 UTC (permalink / raw)
  To: Philipp Zabel
  Cc: Jean-Michel Hautbois, Fabio Estevam, linux-media,
	Nicolas Dufresne

Hi

I am trying to use the coda encoder through Gstreamer on an iMX6-based 
board.

I use the (rebased and slightly modified) gstv4l2h264enc plugin from:
https://github.com/hizukiayaka/gst-plugins-good

This pipeline works fine:
gst-launch-1.0 -vvv v4l2src device=/dev/video4 ! 
"video/x-raw,width=1280,height=720" ! videoconvert ! v4l2video0h264enc ! 
h264parse ! mp4mux ! filesink location=test.mp4

When encoder has no bitrate param set (default=0), video encoding works 
well, but bitrate reaches ~2.5Mbps

When I try to set the bitrate with whatever value like 100,000 or 
1,000,000, the encoder produces video with bitrate around 480kbps and a 
very poor quality.

Here is the gstreamer pipeline I use with bitrate set:
gst-launch-1.0 -vvv v4l2src device=/dev/video4 ! 
"video/x-raw,width=1280,height=720" ! videoconvert ! v4l2video0h264enc 
extra-controls="controls,video_bitrate=1000000;" ! h264parse ! mp4mux ! 
filesink location=test.mp4

The video_bitrate control seems to be correctly passed to the driver by 
GStreamer since I can see the VIDIOC_S_CTRL call.

Any idea ?

Thanks
Fred

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-12-22 16:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-18 16:44 coda: Unable to use encoder video_bitrate Frédéric Sureau
2014-12-18 16:52 ` Philipp Zabel
2014-12-18 16:55   ` Jean-Michel Hautbois
2014-12-18 17:09     ` Philipp Zabel
2014-12-18 17:10       ` Jean-Michel Hautbois
2014-12-19 10:28         ` Philipp Zabel
2014-12-19 10:33           ` Jean-Michel Hautbois
2014-12-22 15:24   ` Frédéric Sureau
2014-12-22 15:28     ` Nicolas Dufresne
2014-12-22 16:02     ` Philipp Zabel
2014-12-22 16:06       ` Nicolas Dufresne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).