Alex Samad wrote: > On Mon, May 07, 2007 at 10:13:33AM +0100, Iain MacGranthin wrote: > > > > No technical from me I am afraid, but I am interested also in finding the > > answer to the general topic of transcoding to mpeg4 when the intended device > > to use is DivX certified. > > > > The guys in the know will probably want to know more about the source files > > as well, to get an all the way through picture of what you are trying to > > do... > > Bit of a problem, here the source files are a bit all over the place. Some in > dvix already, but with AC3 sounds or ogg sounds ( I can't understand why sound > system makers don't want to use free codecs) > > > > > > Now I have had a been doing a bit of encoding but with no real confidence > > > or > > > 100% knowledge of the tools and the terminology. I recently used > > > mencoder to > > > reencode a vob file from the local ultra sound (having a new baby soon) > > > and I > > > thought I had encoded to dixX > > > > > > INPF=$1 > > > > > > mencoder "$INPF" -sws 2 -oac mp3lame -lameopts vbr=3 -ovc lavc -lavcopts > > > vcodec=mpeg4:v4mv:mbd=2:trell:vpass=1 -ofps 25 -o /dev/null > > > mencoder "$INPF" -sws 2 -oac mp3lame -lameopts vbr=3 -ovc lavc -lavcopts > > > vcodec=mpeg4:v4mv:mbd=2:trell:vpass=2 -ofps 25 -o "$INPF.avi" > > > > > > > > > but when I tried to view it with divx codec on windows it barfed, I need > > > some > > > other drivers.
Because you didn't specify -ffourcc DX50 Which is your way of telling mencoder that you want other people to be able to view your output ;^) You might also want to use -lameopts preset=standard Instead of any other set of lameopts. You can normalise the audio from pretty nearly ANY source like this: mplayer -ao pcm -vo null -vc dummy mymovie.ext file audiodump.wav | grep -qs 'PCM, 8 bit' if [ $? = 0 ]; then B=-b W=-w else B= W= fi if sox $B audiodump.wav -r 48000 $W output.wav resample ; then mv -f output.wav audiodump.wav else rm -f output.wav fi Also, specifying -ofps 30000/1001 will work better more of the time than specifying -ofps 25, because there will be less chance of inadvertently dropping important frames. Duped frames are no big deal. And don't forget to use -vf softskip,scale=Xres:Yres At the very least, to get the resolution you want.