[gst-devel] g726 unsupported?

Peter Kjellerstedt peter.kjellerstedt at axis.com
Wed Jun 18 10:15:01 CEST 2008


> -----Original Message-----
> From: gstreamer-devel-bounces at lists.sourceforge.net [mailto:gstreamer-
> devel-bounces at lists.sourceforge.net] On Behalf Of Tomasz Grobelny
> Sent: den 18 juni 2008 01:34
> To: gstreamer-devel at lists.sourceforge.net
> Subject: [gst-devel] g726 unsupported?
>
> How do I encode voice with G.726? The most obvious thing doesn't work
> as expected:
>
> $ LANG=C gst-launch --gst-debug=1 audiotestsrc ! ffenc_g726
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLED ...
> 0:00:00.092058914  6580 0x816ef58 ERROR               ffmpeg :0:: G726:
> unsupported audio format
> ERROR: from element /pipeline0/audiotestsrc0: Internal data flow error.
> Additional debug info:
> gstbasesrc.c(2165): gst_base_src_loop (): /pipeline0/audiotestsrc0:
> streaming task paused, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> FREEING pipeline ...
>
> Why is "G726: unsupported audio format"? Thanks in advance,
> --
> Regards,
> Tomasz Grobelny

For G.726 you must specify the target bit rate of the encoder to 16000,
24000, 32000 or 40000. Try:

LANG=C gst-launch --gst-debug=1 audiotestsrc ! ffenc_g726 bitrate=16000 ! fakesink

//Peter





More information about the gstreamer-devel mailing list