Abomination
4th July 2005, 09:11
Firstly sorry if this is the wrong forum, I wasn't really sure where to put it.
I have a Motorola E398 phone which supports playing .3gp files from a transflash memory card. I've been using a combination of mencoder, mplayer, ffmpeg and mp4creator. It works, really well for video but the audio is horrible quality. It currently uses amr_nb as the codec but I'd like to use amr_wb instead. However ffmpeg doesn't seem to work with this setting, apparently only nb works.
Here is the contents of the batch file: Just drag pretty much anything mplayer can read onto it and the file comes out in under a minute.
@echo off
set BITRATE=150
set FRAMERATE=10
set ENDPOS=99999
set STARTPOS=0
cd "C:\Program Files\Mplayer\"
mencoder.exe -vf scale=176:-2,expand=176:144 -ss %STARTPOS% -endpos %ENDPOS% -ofps %FRAMERATE% -ovc lavc -lavcopts vbitrate=%BITRATE% -of rawvideo -o temp.divx %1 -nosound
mencoder.exe -af channels=1ch,resample=8000 -srate 8000 -ovc frameno -o temp.avi %1 -oac pcm -ss %STARTPOS% -endpos %ENDPOS%
mplayer.exe temp.avi -ao pcm:file=temp.wav
ffmpeg -i temp.wav -ac 1 -acodec amr_nb -ab 17 temp.amr
del %1.3gp /q
mp4creator.exe -r %FRAMERATE% -c temp.divx %1.3gp
mp4creator.exe -r %FRAMERATE% -create=temp.amr -interleave -optimize %1.3gp
del temp.divx /q
del temp.avi /q
del temp.amr /q
del temp.wav /q
echo FINISHED!
pause
I didn't write this, so I'm not sure what some of the settings do. I can put the bitrate up to about 180 before the phone chokes and pauses a lot. The video is great quality, it's the sound I'd like to make better. Here (http://trix2.cellmania.com/downloads/downloads/pdf/MG_E398.pdf) is a PDF from Motorola with the specifications of what the phone can handle, I don't know if that's any help. I have googled and searched the forums, and all that came up was one post saying amr_wb is not compiled by default (I think?)
Thanks for any input!
I have a Motorola E398 phone which supports playing .3gp files from a transflash memory card. I've been using a combination of mencoder, mplayer, ffmpeg and mp4creator. It works, really well for video but the audio is horrible quality. It currently uses amr_nb as the codec but I'd like to use amr_wb instead. However ffmpeg doesn't seem to work with this setting, apparently only nb works.
Here is the contents of the batch file: Just drag pretty much anything mplayer can read onto it and the file comes out in under a minute.
@echo off
set BITRATE=150
set FRAMERATE=10
set ENDPOS=99999
set STARTPOS=0
cd "C:\Program Files\Mplayer\"
mencoder.exe -vf scale=176:-2,expand=176:144 -ss %STARTPOS% -endpos %ENDPOS% -ofps %FRAMERATE% -ovc lavc -lavcopts vbitrate=%BITRATE% -of rawvideo -o temp.divx %1 -nosound
mencoder.exe -af channels=1ch,resample=8000 -srate 8000 -ovc frameno -o temp.avi %1 -oac pcm -ss %STARTPOS% -endpos %ENDPOS%
mplayer.exe temp.avi -ao pcm:file=temp.wav
ffmpeg -i temp.wav -ac 1 -acodec amr_nb -ab 17 temp.amr
del %1.3gp /q
mp4creator.exe -r %FRAMERATE% -c temp.divx %1.3gp
mp4creator.exe -r %FRAMERATE% -create=temp.amr -interleave -optimize %1.3gp
del temp.divx /q
del temp.avi /q
del temp.amr /q
del temp.wav /q
echo FINISHED!
pause
I didn't write this, so I'm not sure what some of the settings do. I can put the bitrate up to about 180 before the phone chokes and pauses a lot. The video is great quality, it's the sound I'd like to make better. Here (http://trix2.cellmania.com/downloads/downloads/pdf/MG_E398.pdf) is a PDF from Motorola with the specifications of what the phone can handle, I don't know if that's any help. I have googled and searched the forums, and all that came up was one post saying amr_wb is not compiled by default (I think?)
Thanks for any input!