MPEG-4 to File - Bad Quality

Jesper Larsen jesper.larsen at ixonos.com
Thu Jul 11 23:10:37 PDT 2013


Hey there

Could you be more specific as to what is terrible about the quality? Low
resolution, "grainy" picture, artifacts, etc.
What kind of source are you using as input? Webcam capabilites?

You might want to play around with the properties of the elements. As an
example, if you do

gst-inspect-1.0 avenc_mpeg4

you get some info about that element, including a list of properties. There
is as an example one called 'bitrate', which sets the target bitrate of the
video. This is by default set to 3Mb, so you could try to increase this.

gst-launch-1.0 v4l2src ! queue ! avenc_mpeg4 bitrate=8000000 ! queue !
filesink location=webcam.mpeg

If the resolution is too low, you can request a specific resolution by
using a caps (capability) filter between the v4l2src and encoder.

gst-launch-1.0 v4l2src ! video/x-raw,width=1280,height=720 ! queue !
avenc_mpeg4 bitrate=8000000 ! queue ! filesink location=webcam.mpeg

You can inspect the v4l2src element to see what kind of capabilities this
element is able to produce. However, this will not show what the actual
input device is capable of delivering.

Jesper


On Thu, Jul 11, 2013 at 9:59 PM, gstnewbiepants <mrblotchkins at gmail.com>wrote:

> Hey Guys,
>
> I'm using the following pipeline to write MPEG-4 video to a file:
>
> gst-launch-1.0 v4l2src ! queue ! avenc_mpeg4 ! queue ! filesink
> location=webcam.mpeg
>
> The video does play back.. but the video quality is terrible.  Does anyone
> know what I'm doing wrong?
>
> Thanks,
> Newb
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/MPEG-4-to-File-Bad-Quality-tp4660997.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130712/9c9b543d/attachment.html>


More information about the gstreamer-devel mailing list