JPEG truncation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JPEG truncation

Thomas Andrews
Hi,

I have constructed a plugin based on videotestsrc to display images from
a Baumer camera. (Source here: http://www.grok.org.za/gst/)

My problem is that the plugin does not work properly if it can only get
one frame at a time. The result is that if I create a jpeg using the
command below, there is some corruption right at the bottom of the JPEG.

gst-launch-0.10 baumercamsrc ! ffmpegcolorspace ! jpegenc quality=100 !
filesink location=/tmp/bar.jpg

Even if I simulate data from the camera, I get the problem, so it's the
plugin that's at fault. It requests exactly the right buffer size each
time, so it's not like it's actually getting too little data.

It just seems that videotestsrc 'expects' continuous data. How would I
change that?

Many thanks,
Thomas

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: JPEG truncation

Stefan Sauer
Am 03.03.2010 12:19, schrieb Thomas Andrews:

> Hi,
>
> I have constructed a plugin based on videotestsrc to display images from
> a Baumer camera. (Source here: http://www.grok.org.za/gst/)
>
> My problem is that the plugin does not work properly if it can only get
> one frame at a time. The result is that if I create a jpeg using the
> command below, there is some corruption right at the bottom of the JPEG.
>
> gst-launch-0.10 baumercamsrc ! ffmpegcolorspace ! jpegenc quality=100 !
> filesink location=/tmp/bar.jpg
>
> Even if I simulate data from the camera, I get the problem, so it's the
> plugin that's at fault. It requests exactly the right buffer size each
> time, so it's not like it's actually getting too little data.
>
> It just seems that videotestsrc 'expects' continuous data. How would I
> change that?

what do you mean with "videotestsrc 'expects' continuous data". You can use
videotestsrc num-buffers=1 to push exactly one frame and then go to eos.

Stefan

>
> Many thanks,
> Thomas
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel