[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-devel
Subject:    Re: [gst-devel] g726 unsupported?
From:       Tomasz Grobelny <tomasz () grobelny ! oswiecenia ! net>
Date:       2008-06-23 21:43:27
Message-ID: 200806232343.27242.tomasz () grobelny ! oswiecenia ! net
[Download RAW message or body]

Dnia Wednesday 18 of June 2008, Tomasz Grobelny napisał:
> Dnia Wednesday 18 of June 2008, Peter Kjellerstedt napisał:
> > > -----Original Message-----
> > > From: gstreamer-devel-bounces@lists.sourceforge.net [mailto:gstreamer-
> > > devel-bounces@lists.sourceforge.net] On Behalf Of Tomasz Grobelny
> > > Sent: den 18 juni 2008 01:34
> > > To: gstreamer-devel@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 
> > > 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.
> 
Does the above command work for anyone?
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
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic