Re: Playing captured speex frames
Jozsef Vass <[email protected]>
| Newsgroups | gmane.comp.audio.compression.speex.devel |
|---|---|
| Message-ID | <0FEA137C08A9DF4781EEF745038C96941E2B0E744C@nambx03.corp.adobe.com> |
Speexdec plays ogg files. You can simply modify it to play your raw file or even rtp capture. Jozsef -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Saturday, July 09, 2011 12:00 PM To: [email protected] Subject: Speex-dev Digest, Vol 86, Issue 3 Send Speex-dev mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://lists.xiph.org/mailman/listinfo/speex-dev or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Speex-dev digest..." Today's Topics: 1. Re: Playing captured speex frames (Ashhar Farhan) ---------------------------------------------------------------------- Message: 1 Date: Sat, 9 Jul 2011 07:19:10 +0530 From: Ashhar Farhan <[email protected]> Subject: Re: [Speex-dev] Playing captured speex frames To: "Shridhar, Vasant" <[email protected]>, Vinod Panicker <[email protected]>, "[email protected]" <[email protected]> Message-ID: <CACUhZhWhg9+37Utmj4ioazHiSckZTdj00ZsQbkFE9kEDggDTXw@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Adding ogg header won't do. The ogg is an envelope, not a header. Lemme see the speex code and mail you the results. I remember that speexdec processes raw packets and not ogg. There must be an issue with wireshark itself. Can you send me the output from wireshark? - farhan On 7/8/11, Shridhar, Vasant <[email protected]> wrote: > Speexdec is expecting the frames to be wrapped in an Ogg frame I believe. > Since you have the raw data can't you just add the Ogg header > information to this before passing it to Speexdec? > > Vas > > ________________________________________ > From: [email protected] [[email protected]] On > Behalf Of Vinod Panicker [[email protected]] > Sent: Friday, July 08, 2011 12:13 AM > To: [email protected] > Subject: Re: [Speex-dev] Playing captured speex frames > > On Fri, Jul 8, 2011 at 6:39 AM, Ashhar Farhan <[email protected]> wrote: >> what you need to do is this: take the wireshark raw dump, read each >> udp packet and write it back to another file. While writing back to >> the new file skip the sizeof udp header + rtp header. I can't recall >> how many bytes you need to skip, however, I suppose it would be in >> the range of 36 and 32 bytes. A five line perl script will do it. > > Thanks for the suggestion, but Wireshark already does what you've > suggested. There's an option to save the raw payload to a file. This > file only has the speex frames (no udp+rtp headers). speexdec still > complains about it not being a valid speex file presumably because the > file is missing the header. > > Apart from manually constructing a header and prefixing it to the > file, any other ideas? > > Regards, > Vinod. > _______________________________________________ > Speex-dev mailing list > [email protected] > http://lists.xiph.org/mailman/listinfo/speex-dev > _______________________________________________ > Speex-dev mailing list > [email protected] > http://lists.xiph.org/mailman/listinfo/speex-dev > -- Sent from my mobile device ------------------------------ _______________________________________________ Speex-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/speex-dev End of Speex-dev Digest, Vol 86, Issue 3 ****************************************