Encode/decode AMR - algorithm

I need to create custom classes for PCMtoAMR and AMRtoPCM conversion.(I don't have any framework which I can use for this conversion)
Does anyone know of anything already done and available as open source. The language should preferably be java but it is no problem to port something from other language.
Or if you don't know please give me guidance what to read in order to implement it myself.
Thanks

This seems to be an implementation worth a look at: http://sourceforge.net/projects/opencore-amr/

Opencore-AMR. FFmpeg uses it.
you can also use FFmpeg to decode/encode, using FFmpeg's API.

For a more in depth reading about how to decode AMR, take a look at http://wiki.multimedia.cx/index.php?title=AMR-NB
For how to use Opencore AMR to encode and decode, see http://www.codeproject.com/Articles/332109/AMR-Audio-Encoding

Related

How to convert sequence of image file to video using c programming?

I am working on a V4L2 camera driver.The webcam taking number of sequence of image files.Now I want to convert it into video (mp4) file.How it is possible using FFMPEG/GSTREAM using pure c source code instead of ubuntu terminal command ?
GStreamer can be used to write applications using C. There are application guides available on their documentation site. But you need few extra topics related GObject as well to start using the framework.
I would recommend to go through their documentation site.
https://gstreamer.freedesktop.org/documentation/tutorials/index.html?gi-language=c
It is not that hard if you read through the documentation and they have lots of plugins available to to achieve quite lots of things related to audio/video processing.

Any solution to convert .yuv file to h264 file on Mac?

I want to develop an app for mac which can record the current screen.But now I have trouble on not knowing how to encode .yuv file I got from CGImage.Somebody told me to encode with x264 or ffmpeg,I am not sure if these are the right choice for OS X development.If anyone has any experience in doing this,I really appreciate that you could tell me.Thanks.
x264 is a great library and I highly recommend it. On mac you also have the option to use the built in encoder. Part of AVFramwork I believe. It should uses less power and CPU then x264, but produce slightly larger files.
x264 is probably one of the best encoders out there for your job. You can get it here.
For a more detail usage of all the commands, such as quality setting and fps, you can find it here.

fragmented mp4 javascript converting

I wanted to know if there is a way to convert regular mp4 to a fragmented mp4 via javascript. (like mp4box does) Is it efficient enough (not suppose to be a complicated task)? did anyone write something like this?
to make it harder, can it be on the fly? meaning I will not download the whole mp4 from the server but download in parts and convert it into fragments compatible with fragmented mp4 and mpeg-dash - I'm trying to overcome to problem to not have to use 2 different file types to play a video or do mp4box on all my library in advance.
Regardless, is it possible to convert from h.264 compatible files with different containers (mov, flv etc.) to fragmented without a server? meaning do it in the browser with javascript somehow?
appreciate the help,
Yug
I am working on something similar (which lead me to here) but no clue so far. However, below is my finding:
Broadway:
https://github.com/mbebenita/Broadway
The idea is you may write a C/C++ using FFMPEG source library, then use Emscripten to compile your C/C++ coding into Javascript. I yet start working with this method, not sure this will work or not. If you did do let me know.

Decent tools for decoding images

I have a HEX dump which I'm told is a PNG file and hence want to convert it into the PNG so I can view/manipulate appropriately.
I've searched all over the internet but can't find any good tools out there to do this. I was perhaps thinking a plugin for GIMP or otherwise?
I'd love your suggestions.
You could try ImageMagick.
Is not a GUI, but has a lot of features as format conversions.
Tell us which OS are you using.
If you believe it is just a Base64 encoding, try uploading it to http://www.motobit.com/util/base64-decoder-encoder.asp (first Google result for "base64 decoder upload"), choosing the options to decode, and export to a binary file.
Otherwise, if you could post a portion of the file in question, that would be of much assistance.

programmatically recording sound sent to Built-in Output, Mac OS X

I have a conundrum:
I need to find a way to capture the raw audio data that is being piped to the Built-in Output on Mac OS X. Core Audio, HAL, etc.
I can "listen" in on the Built-in Output and the mic, but neither of these appear to offer the correct data stream - the exact stream (all combined data from all input sources) that goes to the speakers/built-in output.
Any advice is welcomed with appreciation.
maybe you should have a look at the Jack source code...
http://sourceforge.net/projects/jackosx
Do you need to access to that stream from your program, or do you just want to rip audio from it? In the second case, a quick Google search turned up http://www.ambrosiasw.com/utilities/wiretap/ and http://www.rogueamoeba.com/audiohijackpro/. None of those are open-source or free though.
Edit -- whoops, you want to access to programmatically, that answers my own question, sorry. I think I'll keep my answer here in case some folks stumbles upon this page wanting to record audio non-programmatically.
You need will need your app to install a system extension.
Soundflower is an open-source implementation of such an extension.

Resources