Flix Forums - Not affiliated with On2  

Support This Forum -- Buy Your Flash Video Tools Here!

On2 Flix Affiliate button


Go Back   Flix Forums - Not affiliated with On2 > On2 Flix Products > Flix Engine/SDK's
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-14-2006, 11:26 AM
RSD RSD is offline
Flix Player
 
Join Date: Sep 2006
Posts: 15
Default How to add the AMR codec

I was wondering how i should add the amr codec. I have compiled mplayer with amr support, but it still doesn't work. Can someone tell me what am I doing wrong? The ./configure output says that both amr's are enabled.

I added the codec by not putting amr_wb and amr_nb in de /usr/local/lib/codecs, because I couldn't find the good files.

I added amr by putting some files downloaded from www.3gpp.com and putting them in de libavcodec dir of mplayer and then compiling mplayer. When i try to make some videos it doesn't work.
Reply With Quote
  #2  
Old 09-15-2006, 03:11 AM
kashani kashani is offline
Junior Member
 
Join Date: Sep 2006
Posts: 12
Default

It has been my experience that only this code from 3gpp actually works.

http://www.3gpp.org/ftp/Specs/archiv.../26104-510.zip
http://www.3gpp.org/ftp/Specs/archiv.../26204-510.zip

Once you've pulled those down you need to unzip the top level to get to the actual code.

mkdir working
cd working
unzip -q 26104-510.zip
unzip -q 26204-510.zip

Now add into MPlayer

cd MPlayer
mkdir libavcodec/amr_float
mkdir libavcodec/amrwb_float
cd libavcodec/amr_float
unzip -q /working/26104-510_ANSI_C_source_code.zip
cd libavcodev/amrwb_float
unzip -q /working/26204-510_ANSI-C_source_code.zip

When you compile mplayer it should figure out that AMR is now enabled and add it in.

kashani
Reply With Quote
  #3  
Old 09-15-2006, 04:21 AM
RSD RSD is offline
Flix Player
 
Join Date: Sep 2006
Posts: 15
Default

Well I downloaded 3 packs and installed them as you told me. I did this before, then I am going to compile MPlayer. After that I reinstalled flixengine, but I still have no sound with my uploaded 3gp movie. Is there a way that I can check if the codecs are installed properly and to see if flixengine uses the MPlayer?
Reply With Quote
  #4  
Old 09-15-2006, 02:45 PM
kashani kashani is offline
Junior Member
 
Join Date: Sep 2006
Posts: 12
Default

It's not three packs it's two. If you attempt to add all three it will not work, yet another thing that isn't in any of the docs. When you compile you should see the following int he configure part.

Checking for AMR narrowband ... yes
Checking for AMR narrowband, fixed point ... no
Checking for AMR wideband ... yes

then should report this at the end.

Enabled optional drivers:
Input: ftp network tv vcd
Codecs: qtx x264 xvid libdv amr_wb amr_nb libavcodec dshow/dmo win32 faad2(internal) faac musepack libmpeg2 liba52 mp3lib tremor(internal) libmad gif

Remember that Flix installs its own mencoder and you'll need change paths or move things around in order for your new mencoder to be used.

kashani
Reply With Quote
  #5  
Old 09-15-2006, 03:43 PM
kashani kashani is offline
Junior Member
 
Join Date: Sep 2006
Posts: 12
Default

Also you do not need to reinstall Flix. All changes to mplayer/mencoder are completely independent of the actual flixd proccesses and code.

kashani
Reply With Quote
  #6  
Old 09-17-2006, 01:07 PM
RSD RSD is offline
Flix Player
 
Join Date: Sep 2006
Posts: 15
Default

I think that the problem is lying in the paths to mencoder. In the documentation I couldn't find anything how to change these. Do I need to install mencoder in a specific directory, so that flix can find mencoder there or do I need to set specific paths in a config file of flix? And if so, what paths and where can I find them?
Reply With Quote
  #7  
Old 09-18-2006, 11:23 AM
RSD RSD is offline
Flix Player
 
Join Date: Sep 2006
Posts: 15
Default

Because I couldn't find any config files for the flixengine where to change the path to the mencoder I decided to reinstall flixd and then I changed the "Binary path of mencoder" in the flix install to /usr/local/bin (default path of mencoder). After the install I could convert the videos, but not the 3gp movies. However, now I thought I can recompile mencoder with the amr support. The mencoder was now installed, but now the flixengine doesnt work anymore. What went wrong? Can someone tell me?

I think that I need to know how/where to change the path to mencoder, which the flixengine uses.
Reply With Quote
  #8  
Old 09-18-2006, 03:24 PM
kashani kashani is offline
Junior Member
 
Join Date: Sep 2006
Posts: 12
Default

Are you adding the On2 patches to the mplayer src dir when you build your custom mencoder. If you are not, it won't work.

I suggest reinistalling flix to make sure things work.
Then building your custom mencoder.
then mv mencoder mencoder-flix-original
then cp mencoder /whatever/flixd/puts/it/

kashani
Reply With Quote
  #9  
Old 09-18-2006, 04:08 PM
RSD RSD is offline
Flix Player
 
Join Date: Sep 2006
Posts: 15
Default

I downloaded from the following:

http://www.on2.com/gpl/mplayer/

and then added the amr codecs and compiled it. Then i let flixd point to the installed directory.

Now I copied the downloaded code from on 2 in the mplayer dir and then compiled it.. let's see what it does.
Reply With Quote
  #10  
Old 09-18-2006, 04:34 PM
RSD RSD is offline
Flix Player
 
Join Date: Sep 2006
Posts: 15
Default

It is still not working..

I download:

http://www.on2.com/gpl/mplayer/2006-...glinux.tar.bz2

unzip it and copy it to the original source of mplayer. Is that what you mean by adding the on2 patches? Or can I download these patches somewhere else? Then I added the amr codecs and some others and then compiled the whole thing.

After that I copied /usr/local/bin/mencoder to /usr/local/libexec/on2/flixengine.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:00 PM.


Powered by vBulletin Version 3.5.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.