[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mplayer-users
Subject:    [MPlayer-users] Using mencoder to encode for PocketMVP
From:       Krister Wicksell Eriksson <krister.wicksell () spray ! se>
Date:       2003-03-29 14:49:02
[Download RAW message or body]

[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
Hi!

I'm using mencoder to encode movies for my PocketPC. The encoding works great 
and I can play the encoded files on my PC but they don't work on my PocketPC 
using PocketMVP (http://users.adelphia.net/~mdukette/). I have figured out 
that the problem is in the avi-header. The header i get when using mencoder 
looks like this:

0000:0000 52 49 46 46 10 48 06 00 41 56 49 20 4c 49 53 54 RIFF.H..AVI LIST
0000:0010 30 01 00 00 68 64 72 6c 61 76 69 68 38 00 00 00 0...hdrlavih8...
0000:0020 6a 04 01 00 00 00 00 00 00 00 00 00 10 09 00 00 j...............
0000:0030 e7 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 ç...............
0000:0040 a0 00 00 00 78 00 00 00 00 00 00 00 00 00 00 00  ...x...........
0000:0050 00 00 00 00 00 00 00 00 4c 49 53 54 74 00 00 00 ........LISTt...
0000:0060 73 74 72 6c 73 74 72 68 38 00 00 00 76 69 64 73 strlstrh8...vids
0000:0070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

The movie works in PocketMVP if i change the last row to:

0000:0070 64 69 76 78 00 00 00 00 00 00 00 00 00 00 00 00 divx............

I'm no expert at media-formats so I have no idea what this is. I figured it 
out by comparing a working file with my non working.

So, can I use mencoder to fix this for me? The command i use when encoding is 
this:

mencoder -oac mp3lame -lameopts cbr:br=32:mode=3 \
  -ovc divx4 -divx4opts br=150:pass=1 \
  -sws 2 -vop scale=${DST_WIDTH}:${DST_HEIGHT} -ofps 15 \
  "${IN_FILE}" -o "${OUT_FILE}" && \
  mencoder -oac mp3lame -lameopts cbr:br=32:mode=3 \
  -ovc divx4 -divx4opts br=150:pass=2 \
  -sws 2 -vop scale=${DST_WIDTH}:${DST_HEIGHT} -ofps 15 \
  "${IN_FILE}" -o "${OUT_FILE}"

TIA
/Krister

_______________________________________________
RTFM!!!  http://www.MPlayerHQ.hu/DOCS
Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
http://mplayerhq.hu/mailman/listinfo/mplayer-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic