[gst-devel] dvdec + jpegenc & interations

Thomas Vander Stichele thomas at apestaart.org
Tue Jul 27 11:04:05 CEST 2004


On Tue, 2004-07-27 at 19:24, mammique wrote:
> Hi,
> 
> When i try to grab and compress an image from a DV camera to jpeg it
> segfaults :
> 
> $ gst-launch-0.8 -i=2 dv1394src ! dvdec ! ffmpegcolorspace ! jpegenc !
> filesink location=test.jpg
> RUNNING pipeline ...
> Erreur de segmentation (segfault)
> 
> But png works :
> 
> $ gst-launch-0.8 -i=2 dv1394src ! dvdec ! ffmpegcolorspace ! pngenc !
> filesink location=test.png
> RUNNING pipeline ...
> Execution ended after 2 iterations (sum 1920218000 ns, average 960109000
> ns, min 82874000 ns, max 1837344000 ns).
> 
> $ identify test.png
> test.png PNG 720x480+0+0 DirectClass 8-bit 688kb 0.040u 0:01
> 
> BTW, i don't understand why this don't works with only one iteration, i
> must specify 2 iterations to grab the image, if no the file is empty.

Iteration is not something you can use to specify that you want only one
frame.  It's something internal to GStreamer and you shouldn't depend at
all on a specific value of it.

> But it works with single iteration using simple raw dv grab :
> 
> $ gst-launch-0.8 -i=1 dv1394src ! filesink location=test.dv
> RUNNING pipeline ...
> Execution ended after 1 iterations (sum 106676000 ns, average 106676000
> ns, min 106676000 ns, max 106676000 ns).
> 
> $ file test.dv
> test.dv: DIF (DV) movie file (PAL)
> 
> Is it normal ?

the segfault isn't, so file a backtrace in bugzilla.

Thomas


Dave/Dina : future TV today ! - http://www.davedina.org/
<-*- thomas (dot) apestaart (dot) org -*->
If your heart is not on my side
You're not on my side
<-*- thomas (at) apestaart (dot) org -*->
URGent, best radio on the net - 24/7 ! - http://urgent.fm/






More information about the gstreamer-devel mailing list