saving audio into ogg file

Stefan Sauer ensonic at hora-obscura.de
Mon Mar 31 15:28:52 PDT 2014


On 03/30/2014 03:23 PM, leon wrote:
> cheers!
>
> I have RTP stream that contain g711 audio packets. I need to encode the
> audio into ogg file (doesn't matter which encoding method).
>
> so far I have this pipeline:
>
> gst-launch-0.10.exe filesrc location=wave.pcap ! pcapparse src-port=40376 !
> "application/x-rtp, payload=(int)18, media=(string)audio,
> clock-rate=(int)8000" ! rtppcmadepay  ! alawdec ! audioconvert ! vorbisenc 
> ! oggmux  ! filesink location=out.ogg
>
> I don't know why but the output file is corrupted- longer than it should be
> and with stops on the middle.
Are you sure the audio from the pcap file is contiguous? you could
insert an "identity check-imperfect-timestamp=true" after alawdec and
look at the messages (pass -v to gst-launch).
>
> I also tried without the "audioconvert" but I get the error:
nope, that needed.

Stefan
>
> WARNING: erroneous pipeline: could not link alawdec0 to vorbisenc0
>
> can someone please take a look at my pipeline and tell me what am I doing
> wrong?
> what should come after the alawdec instead of my plugins...? 
>
> Thanks in advanced.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/saving-audio-into-ogg-file-tp4666201.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list