[gst-devel] g726 unsupported?

Tomasz Grobelny tomasz at grobelny.oswiecenia.net
Wed Jun 18 20:18:05 CEST 2008


Dnia Wednesday 18 of June 2008, Peter Kjellerstedt napisał:
> > -----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
>
Thanks, that indeed doesn't give errors. But when I try to immediately decode 
the stream I get:

$ LANG=C gst-launch --gst-debug=1 audiotestsrc ! ffenc_g726 bitrate=16000 ! 
ffdec_g726 ! alsasink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.211707444  9753 0x8194ba0 ERROR               ffmpeg :0:: G726: 
unsupported audio format
0:00:00.212208150  9753 0x8194ba0 ERROR               ffmpeg :0:: G726: 
unsupported audio format
(...)
0:00:00.429526944  9753 0x8194ba0 ERROR               ffmpeg :0:: G726: 
unsupported audio format
0:00:00.429924160  9753 0x8194ba0 ERROR               ffmpeg :0:: G726: 
unsupported audio format
Caught interrupt -- 0:00:00.434271630  9753 0x8194ba0 ERROR               
ffmpeg :0:: G726: unsupported audio format
0:00:00.434819205  9753 0x8194ba0 ERROR               ffmpeg :0:: G726: 
unsupported audio format
(...)
0:00:00.456279516  9753 0x8194ba0 ERROR               ffmpeg :0:: G726: 
unsupported audio format
0:00:00.456680324  9753 0x8194ba0 ERROR               ffmpeg :0:: G726: 
unsupported audio format
handling interrupt.
Interrupt: Stopping pipeline ...
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
0:00:00.460869541  9753 0x8194ba0 ERROR               ffmpeg :0:: G726: 
unsupported audio format

$

What am I doing wrong this time? I thought I need to set the bitrate on the 
decoder as well but I see no such property.
-- 
Regards,
Tomasz Grobelny




More information about the gstreamer-devel mailing list