<div dir="ltr">Hey there<div><br></div><div style>Could you be more specific as to what is terrible about the quality? Low resolution, "grainy" picture, artifacts, etc.</div><div style>What kind of source are you using as input? Webcam capabilites?</div>
<div style><br></div><div style>You might want to play around with the properties of the elements. As an example, if you do</div><div style><br></div><div style>gst-inspect-1.0 avenc_mpeg4<br></div><div style><br></div><div style>
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.</div>
<div style><br></div><div style><div>gst-launch-1.0 v4l2src ! queue ! avenc_mpeg4 bitrate=8000000 ! queue ! filesink location=webcam.mpeg</div><div><br></div><div style>If the resolution is too low, you can request a specific resolution by using a caps (capability) filter between the v4l2src and encoder.</div>
<div style><br></div><div style>gst-launch-1.0 v4l2src ! video/x-raw,width=1280,height=720 ! queue ! avenc_mpeg4 bitrate=8000000 ! queue ! filesink location=webcam.mpeg<br></div><div style><br></div><div style>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.</div>
<div style><br></div><div style>Jesper</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 11, 2013 at 9:59 PM, gstnewbiepants <span dir="ltr"><<a href="mailto:mrblotchkins@gmail.com" target="_blank">mrblotchkins@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Guys,<br>
<br>
I'm using the following pipeline to write MPEG-4 video to a file:<br>
<br>
gst-launch-1.0 v4l2src ! queue ! avenc_mpeg4 ! queue ! filesink<br>
location=webcam.mpeg<br>
<br>
The video does play back.. but the video quality is terrible. Does anyone<br>
know what I'm doing wrong?<br>
<br>
Thanks,<br>
Newb<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/MPEG-4-to-File-Bad-Quality-tp4660997.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/MPEG-4-to-File-Bad-Quality-tp4660997.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div></div>