I would like to decode that file on pc running window or linux to more familiar stream so i can mux it together with h264 video file.
so far couldn't find on the web any player that can play the file, nor decode it.
any help on that would be appreciated.
audio.zip- g711 with 1KHz tone signal.
audio parameters: 16000 sampling rate.
ran
+ Reply to Thread
Results 1 to 6 of 6
-
-
hi,
thank u for the reply
I'm currently working on a code for doing all that I mentioned above.
that means that i need a c library, or at least command line program for decoding the g711 file.
so far i managed to convert this 'audio.g711' file to 'audio.au' file by adding a header to it as described in:
"http://en.wikipedia.org/wiki/Au_file_format".
So now decoders know what type of stream thay have to deal with,
and winLame can do the job. but there is no command line for that
for the muxing part, i found a great piece of freeware called "tsMuxeR" that can accept mp3, aac, mpa, mp4, wav, AC3 , pcm, lpcm, and other well known formats, unfortunately i'm new to this codecs business and cannot figure out how to convert my audio.au file to one of those formats, and what do i need for that, decoder? encoder? filter?
thanks,
ran -
If you have converted it correctly to .au , then ffmpeg or sox should be able to handle it
ffmpeg should be able to mux your audio with video into various containers as well
audacity can handle it if you import as raw. It has limited CLI options , but open source, so you can have a look at the code.Last edited by poisondeathray; 21st Aug 2011 at 11:50.
-
The G711 A-law compression algorithm is used in Europe, and almost all over the world. The A-law is logarithmic, and lighter for the computer to process. The G711 A-law encodes a 13 bit signed linear PCM sample into logarithmic 8-bit sample. As a result, the G711 encoder will be able to produce a 64 kbit/s bitstream for a signal that is sampled at 8 KHz. The A-law compression enables more quantization levels at lower signal levels. A 13-bit signed linear audio sample as input is converted to an 8 bit value as follows:
To optimize the telephony the G711 aLaw codes is perfect. You can modify the dynamic range of an analog signal for digitizing as well. This is a logarithmic algorithm and it has been designed to be simpler for computer processing than uLaw algorithm. It also provides a more dynamic range resulted in a better sound quality because sampling artifacts are better suppressed. It has a very low processor requirements and needs at least 128 kbps for two-way.
According to my opinion, in communication it is vital to use the best possible solutions that provide the quality and excellence. For this reason, the solution of G711 codec, also known as Pulse Code Modulation (PCM) is a frequently used waveform codec. The G711 uses a sampling rate of 8000 samples/sec, with a tolerance of 50 parts per million (ppm). The G711 codec comes in two different compression algorithms: µ-law and A-law.
I wish to share a useful article about the topic. If you are interested you find it here:
http://voip-sip-sdk.com/p_214-g711-alaw-codec-voip.html
Best Wishes,
Niko
Similar Threads
-
muxing raw h264 with raw g711 to mp4 continer
By niror in forum Newbie / General discussionsReplies: 5Last Post: 23rd Aug 2011, 11:25 -
How Do I Play Raw DV Stream Files on a TV?
By NY2LA in forum Software PlayingReplies: 97Last Post: 29th Jul 2011, 23:21 -
How to take stream in -> decode to file (UYVY)
By zakeboy in forum Video Streaming DownloadingReplies: 5Last Post: 28th Aug 2009, 13:30 -
Need to convert raw .h264 stream to edit in Vegas Pro 9
By cintec in forum EditingReplies: 18Last Post: 9th Aug 2009, 12:44 -
RAW blu-ray 264 video stream to MP4 ? Problem
By scoobdriver in forum Blu-ray RippingReplies: 7Last Post: 18th Nov 2008, 18:19