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 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
> -----Original Message-----
> From: [hidden email] [mailto:gstreamer- > [hidden email]] On Behalf Of Tomasz Grobelny > Sent: den 18 juni 2008 01:34 > To: [hidden email] > 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 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Dnia Wednesday 18 of June 2008, Peter Kjellerstedt napisał:
> > -----Original Message----- > > From: [hidden email] [mailto:gstreamer- > > [hidden email]] On Behalf Of Tomasz Grobelny > > Sent: den 18 juni 2008 01:34 > > To: [hidden email] > > 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 > 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 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Dnia Wednesday 18 of June 2008, Tomasz Grobelny napisał:
> Dnia Wednesday 18 of June 2008, Peter Kjellerstedt napisał: > > > -----Original Message----- > > > From: [hidden email] [mailto:gstreamer- > > > [hidden email]] On Behalf Of Tomasz Grobelny > > > Sent: den 18 juni 2008 01:34 > > > To: [hidden email] > > > 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 > > > bitrate=16000 ! ffdec_g726 ! alsasink > > > (...) > 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. > I tried setting sample_rate to 8000, bit_rate to 16000, channels to 1 and codec_id to CODEC_ID_ADPCM_G726 on both encoder and decoder (in the code). Now I get neither errors nor sound. >From what I've read avcodec_open() function should set AVCodecContext::frame_size but it seems to be always 0. What's going on here? -- Regards, Tomasz Grobelny ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |