Caps propagation problem : my audio gets resampled !

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

Caps propagation problem : my audio gets resampled !

Hoggins!
Hello,

I have an issue I can't understand, and I'm sure my pipeline is wrong.
It used to work under 0.10 but there's something odd with the same
pipeline under 1.0. Here it is :

gst-launch-1.0 -v \
    udpsrc address=192.168.55.222 port=5000 \
    caps='application/x-rtp, media=(string)audio, clock-rate=(int)48000,
encoding-name=(string)X-GST-OPUS-DRAFT-SPITTKA-00, payload=(int)96,
ssrc=(uint)10' \
    ! rtpopusdepay ! opusdec \
    ! tee name=t \
    t. ! queue ! audioconvert ! 'audio/x-raw,channels=2' ! lamemp3enc
bitrate=320 ! shout2send public=0 mount=/live320.mp3 port=80
password=HAHA ip=192.168.55.3 streamname="" description="" url="" genre="" \
    t. ! queue ! audioconvert ! 'audio/x-raw,channels=2' ! lamemp3enc
bitrate=192 ! shout2send public=0 mount=/live192.mp3 port=80
password=HAHA ip=192.168.55.3 streamname="" description="" url="" genre="" \
    t. ! queue ! audioresample ! 'audio/x-raw,rate=32000' ! audioconvert
! 'audio/x-raw,channels=1' ! lamemp3enc bitrate=64 ! shout2send public=0
mount=/live064.mp3 port=80 password=HAHA ip=192.168.55.3 streamname=""
description="" url="" genre="" \
    t. ! queue ! audioresample ! 'audio/x-raw,rate=16000' ! audioconvert
! 'audio/x-raw,channels=1' ! lamemp3enc bitrate=24 ! shout2send public=0
mount=/live024.mp3 port=80 password=HAHA ip=192.168.55.3 streamname=""
description="" url="" genre="" \
    t. ! queue ! audioconvert ! vorbisenc quality=1 ! oggmux !
shout2send public=0 mount=/live500.ogg port=80 password=HAHA
ip=192.168.55.3 streamname="" description="" url="" genre=""


Problem : ALL of my streams are resampled at 16khz, it is the smallest
(third tee) that is applied to the whole pipeline !
Where is my mistake ?

Thanks !

    Hoggins!


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

signature.asc (220 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Caps propagation problem : my audio gets resampled !

Hoggins!
Hmm sorry... the fourth tee, actually.

Le 07/12/2016 à 23:20, Hoggins! a écrit :
> it is the smallest
> (third tee) that is applied to the whole pipeline



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

signature.asc (220 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Caps propagation problem : my audio gets resampled !

Nicolas Dufresne-5


Le 7 déc. 2016 5:38 PM, "Hoggins!" <[hidden email]> a écrit :
Hmm sorry... the fourth tee, actually.

Le 07/12/2016 à 23:20, Hoggins! a écrit :
> it is the smallest
> (third tee) that is applied to the whole pipeline

Can't see anything evident. Run with -v, this will trace caps on all pads. The two first don't have a resampler, so it cannot really be anything else then 48khz. Maybe there is some bug in shout2send ? Aka sending 1 stream to all sessions ?


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



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

Re: Caps propagation problem : my audio gets resampled !

Nicolas Dufresne-4
Wait I know, opusdec can resample. There was a negotiation bug prior to 1.10. iirc, you can add a caps filter after opusdec to workaround, or update.

  ... ! opusdec ! audio/x-raw,rate=48000 ! ...

Le 7 déc. 2016 9:18 PM, "Nicolas Dufresne" <[hidden email]> a écrit :


Le 7 déc. 2016 5:38 PM, "Hoggins!" <[hidden email]> a écrit :
Hmm sorry... the fourth tee, actually.

Le 07/12/2016 à 23:20, Hoggins! a écrit :
> it is the smallest
> (third tee) that is applied to the whole pipeline

Can't see anything evident. Run with -v, this will trace caps on all pads. The two first don't have a resampler, so it cannot really be anything else then 48khz. Maybe there is some bug in shout2send ? Aka sending 1 stream to all sessions ?


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



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

Re: Caps propagation problem : my audio gets resampled ! (solved)

Hoggins!
Just perfect ! Thanks !

Le 08/12/2016 à 03:22, [hidden email] a écrit :

> Wait I know, opusdec can resample. There was a negotiation bug prior
> to 1.10. iirc, you can add a caps filter after opusdec to workaround,
> or update.
>
>   ... ! opusdec ! audio/x-raw,rate=48000 ! ...
>
> Le 7 déc. 2016 9:18 PM, "Nicolas Dufresne" <[hidden email]
> <mailto:[hidden email]>> a écrit :
>
>
>
>     Le 7 déc. 2016 5:38 PM, "Hoggins!" <[hidden email]
>     <mailto:[hidden email]>> a écrit :
>
>         Hmm sorry... the fourth tee, actually.
>
>         Le 07/12/2016 à 23:20, Hoggins! a écrit :
>         > it is the smallest
>         > (third tee) that is applied to the whole pipeline
>
>     Can't see anything evident. Run with -v, this will trace caps on
>     all pads. The two first don't have a resampler, so it cannot
>     really be anything else then 48khz. Maybe there is some bug in
>     shout2send ? Aka sending 1 stream to all sessions ?
>




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

signature.asc (188 bytes) Download Attachment