Help with syntax

Charlie X. Liu charlie at sensoray.com
Thu Jan 26 12:39:17 PST 2012


For your reference, I used following:

 

$ gst-launch-0.10 -v v4l2src device=/dev/video0 ! queue ! \

ffmpegcolorspace ! videoscale ! video/x-raw-yuv,\

width=640,height=480 ! queue ! mux. \

alsasrc device=hw:1,0 ! audio/x-raw-int,rate=32000,\

channels=2,depth=16 ! queue ! audioconvert ! mux. \

avimux name=mux ! filesink location=./avtest-ch1.avi

( capturing raw video+audio, from Channel-1,

and save the A/V data into an .avi file )

 

$ gst-launch-0.10 avimux name=mux ! filesink location=avcapCh2.avi \

v4l2src device=/dev/video1 ! video/x-raw-yuv,width=320,

height=240,framerate=\(fraction\)30000/1001 ! \

ffenc_mpeg4 ! queue ! mux. alsasrc device=hw:2,0 ! \

audio/x-raw-int,rate=32000,channels=2,depth=16 !

audioconvert ! lame ! mux.

( capturing video+audio, from Channel-2, compressing

the A/V in MPEG4+MP3, and save the compressed data

into an .avi file )

 

and they worked well for our Model 811
(http://www.sensoray.com/products/811.htm) and Model 911
(http://www.sensoray.com/products/911.htm) A/V capturing.

 

Charlie X. Liu @ Sensoray Co.

 

 

From: gstreamer-devel-bounces+charlie=sensoray.com at lists.freedesktop.org
[mailto:gstreamer-devel-bounces+charlie=sensoray.com at lists.freedesktop.org]
On Behalf Of Rick T
Sent: Tuesday, January 24, 2012 9:35 AM
To: Discussion of the development of and with GStreamer
Subject: Re: Help with syntax

 

I added the line you said was missing and I get an error
"erroneous pipeline: link without source element"
Do you have an example of the working line you suggested I add in?


gst-launch-0.10 v4l2src !
'video/x-raw-yuv,width=640,height=480,framerate=25/1' ! \
timeoverlay halignment=right valignment=bottom shaded-background=true ! \
clockoverlay halignment=left valignment=bottom text="M/D/Y:"
shaded-background=true time-format="%m/%d/%Y %H:%M:%S" ! \
tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue ! videorate !
\
'video/x-raw-yuv,framerate=25/1' ! xvidenc ! queue ! mux. ! \
audiotestsrc num-buffers=440 ! audioconvert \
 audioconvert ! 'audio/x-raw-int,rate=44100,channels=2' \
! lame ! queue ! mux. \
avimux name=mux ! filesink location=testavi.avi

On Tue, Jan 24, 2012 at 5:06 AM, Stefan Sauer <ensonic at hora-obscura.de>
wrote:

On 01/20/2012 04:59 PM, Rick T wrote: 

Greetings All 
 
I'm having trouble getting the following line to work
I get an error "WARNING: erroneous pipeline: link without source element"
 
I think I narrowed it down to the audio section but I'm not sure how to fix
it can some one assist?
 
 
 
Thanks  See code below
 
gst-launch-0.10 v4l2src !
'video/x-raw-yuv,width=640,height=480,framerate=25/1' ! \
timeoverlay halignment=right valignment=bottom shaded-background=true ! \
clockoverlay halignment=left valignment=bottom text="M/D/Y:"
shaded-background=true time-format="%m/%d/%Y %H:%M:%S" ! \
tee name=t_vid ! queue ! xvimagesink sync=false t_vid. ! queue ! videorate !
\
'video/x-raw-yuv,framerate=25/1' ! xvidenc ! queue ! mux. ! \

this part above is wrong. You miss your audiosrc element between the 'mux.'
and '!'.

Stefan




 audioconvert ! 'audio/x-raw-int,rate=44100,channels=2' \
! lame ! queue ! mux. \
avimux name=mux ! filesink location=testavi.avi
 
 
 
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

 


_______________________________________________
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/20120126/c5e30413/attachment.htm>


More information about the gstreamer-devel mailing list