adding tee to alsasink causing problems

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

adding tee to alsasink causing problems

startoftext
So here is my pipeline. The point is to record audio and video and  
display it at the same time.

v4l2src -> tee -> video/x-raw-yuv,width=320,height=240 ->  
ffmpegcolorspace -> ffenc_flv -> ffmux_flv -> filesink
                           -> xvimagesink

alsasrc -> tee > audioresample -> audio-x-raw-int,rate=44100 - ->  
audioconvert -> lame -> ffmux_flv (same mux as above)
                           -> alsasink

I have been using this pipeline minus the tee for live playback  
(alsasink,xvimagesink) for some time and it is working well. The video  
part, even with the live display works ok but when i add in the tee  
and alsasink the pipeline gets stuck with nothing going to disk and  
the video displayed is stuck. Even just adding the alsasink to the  
pipeline without connecting it causes this result. Any suggestions? I  
already tried adding queues to almost everything.

Thanks

-James-





------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: adding tee to alsasink causing problems

Rohan-14
Hi James,

I am no expert but could you put the actual gst-launch commands you
are using, because it is not clear here where you use the tee twice,
for either.

I have been meddling with splitting audio/video but instead of for
saving to file, sending an image to the sender, as well as to another
receiving computer.

I am guessing this might give you what you want.  You do not seem to
be naming the tee, and calling it again.

gst-launch-0.10 v4l2src ! tee name=tee ! tee. ! queue ! \
video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace ! ffenc_flv ! \
ffmux_flv ! filesink location=/path/to/file tee. ! queue ! xvimagesink

I have not tried the same with the sound, but that should get your
video recording and displaying (nota bene: not tested, just an off the
top of my head guess)

For the sound the use of the tee should do the business.  I have not
messed with mux(es) yet, so I could have gone wrong there, but the tee
stuff should probably resemble the above.  You name the tee, and then
refer to it later in the commandline by name.

Hope this helps,

Rohan

James Pearson wrote:

> So here is my pipeline. The point is to record audio and video and  
> display it at the same time.
>
> v4l2src -> tee -> video/x-raw-yuv,width=320,height=240 ->  
> ffmpegcolorspace -> ffenc_flv -> ffmux_flv -> filesink
>                            -> xvimagesink
>
> alsasrc -> tee > audioresample -> audio-x-raw-int,rate=44100 - ->  
> audioconvert -> lame -> ffmux_flv (same mux as above)
>                            -> alsasink
>
> I have been using this pipeline minus the tee for live playback  
> (alsasink,xvimagesink) for some time and it is working well. The video  
> part, even with the live display works ok but when i add in the tee  
> and alsasink the pipeline gets stuck with nothing going to disk and  
> the video displayed is stuck. Even just adding the alsasink to the  
> pipeline without connecting it causes this result. Any suggestions? I  
> already tried adding queues to almost everything.
>
> Thanks
>
> -James-
>
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: adding tee to alsasink causing problems

startoftext
Thanks for the help. It turns out that the problem was actually  
related to older sound card drivers in ubuntu. I also use gentoo and  
with its newer drivers there is not this problem. I switched to oss  
sink and problems in ubuntu went away. Some times with linux it pays  
to have older more ripe hardware. Thanks for you input.

-James Pearson-
[hidden email]
214-538-8929




On Sep 29, 2009, at 5:55 AM, Rohan wrote:

> Hi James,
>
> I am no expert but could you put the actual gst-launch commands you
> are using, because it is not clear here where you use the tee twice,
> for either.
>
> I have been meddling with splitting audio/video but instead of for
> saving to file, sending an image to the sender, as well as to another
> receiving computer.
>
> I am guessing this might give you what you want.  You do not seem to
> be naming the tee, and calling it again.
>
> gst-launch-0.10 v4l2src ! tee name=tee ! tee. ! queue ! \
> video/x-raw-yuv,width=320,height=240 ! ffmpegcolorspace !  
> ffenc_flv ! \
> ffmux_flv ! filesink location=/path/to/file tee. ! queue ! xvimagesink
>
> I have not tried the same with the sound, but that should get your
> video recording and displaying (nota bene: not tested, just an off the
> top of my head guess)
>
> For the sound the use of the tee should do the business.  I have not
> messed with mux(es) yet, so I could have gone wrong there, but the tee
> stuff should probably resemble the above.  You name the tee, and then
> refer to it later in the commandline by name.
>
> Hope this helps,
>
> Rohan
>
> James Pearson wrote:
>> So here is my pipeline. The point is to record audio and video and
>> display it at the same time.
>>
>> v4l2src -> tee -> video/x-raw-yuv,width=320,height=240 ->
>> ffmpegcolorspace -> ffenc_flv -> ffmux_flv -> filesink
>>                           -> xvimagesink
>>
>> alsasrc -> tee > audioresample -> audio-x-raw-int,rate=44100 - ->
>> audioconvert -> lame -> ffmux_flv (same mux as above)
>>                           -> alsasink
>>
>> I have been using this pipeline minus the tee for live playback
>> (alsasink,xvimagesink) for some time and it is working well. The  
>> video
>> part, even with the live display works ok but when i add in the tee
>> and alsasink the pipeline gets stuck with nothing going to disk and
>> the video displayed is stuck. Even just adding the alsasink to the
>> pipeline without connecting it causes this result. Any suggestions? I
>> already tried adding queues to almost everything.
>>
>> Thanks
>>
>> -James-
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry® Developer Conference in SF,  
>> CA
>> is the only developer event you need to attend this year. Jumpstart  
>> your
>> developing skills, take BlackBerry mobile applications to market  
>> and stay
>> ahead of the curve. Join us from November 9-12, 2009. Register  
>> now!
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market and  
> stay
> ahead of the curve. Join us from November 9-12, 2009. Register  
> now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel