Help with syntax

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

Help with syntax

Rick T
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. ! \
audioconvert ! 'audio/x-raw-int,rate=44100,channels=2' \ ! lame ! queue ! mux. \ avimux name=mux ! filesink location=testavi.avi



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Help with syntax

Stefan Sauer
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 [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Help with syntax

Rick T
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 <[hidden email]> 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 [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
--
|

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: Help with syntax

BGraaf

Please check the source for v4l2src. If it’s not "/dev/video0" you should use the device=xxx parameter for v4l2src (see: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-v4l2src.html).

 

Bernhard

 


Von: gstreamer-devel-bounces+bernhard.graaf=[hidden email] [mailto:gstreamer-devel-bounces+bernhard.graaf=[hidden email]] Im Auftrag von Rick T
Gesendet: Dienstag, 24. Januar 2012 18:35
An: Discussion of the development of and with GStreamer
Betreff: 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 <[hidden email]> 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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
--
|


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Help with syntax

Stefan Sauer
In reply to this post by Rick T
On 01/24/2012 06:35 PM, Rick T wrote:
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


Please do as I said. I said "You miss your audiosrc element between the 'mux.' and '!'" and instead of just inserting an audiosrc, you inserted "! audiosrc". You cannot link a muxer to an audiosrc. Also there is "audioconvert \
 audioconvert" which does not make sense.

Stefan


On Tue, Jan 24, 2012 at 5:06 AM, Stefan Sauer <[hidden email]> 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 [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
--
|
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

RE: Help with syntax

Charlie X. Liu
In reply to this post by Rick T

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=[hidden email] [mailto:gstreamer-devel-bounces+charlie=[hidden email]] 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 <[hidden email]> 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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
--
|


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel