[MEncoder-users] Creating WMP Mobile Compatible Videos
Gordan Bobic
gordan at bobich.net
Sat Sep 12 16:33:47 CEST 2009
Hi,
I'm struggling to create video files that are actually playable on my WM
based phone using the Windows Media Player Mobile (both v10/WM5 and
v11/WM6).
The video I make using the phone itself works on the build in WMPM
(obviously) and here is what mplayer reports about it:
$ mplayer -msglevel all=6 /tmp/VIDEO_00001.mp4
MPlayer SVN-r29587-snapshot-4.1.2 (C) 2000-2009 MPlayer Team
CPU vendor name: GenuineIntel max cpuid level: 10
CPU: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (Family: 6, Model:
15, Stepping: 11)
extended cpuid-level: 8
extended cache-info: 268468288
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/gordan/.mplayer/codecs.conf'
Reading /home/gordan/.mplayer/codecs.conf: Can't open
'/home/gordan/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf':
No such file or directory
Using built-in default codecs.conf.
Configuration: --extra-cflags=-I /usr/include/nvidia-graphics
-I/usr/include/directfb --extra-ldflags=-L /usr/lib64/nvidia-graphics
--prefix=/usr --libdir=/usr/lib64 --datadir=/usr/share/mplayer
--confdir=/etc/mplayer --mandir=/usr/share/man --enable-gui
--enable-largefiles --enable-lirc --enable-joystick --enable-radio
--enable-radio-capture --enable-tv-v4l1 --enable-tv-v4l2 --enable-menu
--disable-faad-internal --enable-xmms --disable-liba52-internal
--enable-xvmc --with-xvmclib=XvMCW --enable-xss --enable-fbdev
--enable-directfb --enable-runtime-cpudetection --language=all
CommandLine: '-vo' 'xv' '-autoq' '99' '-xy' '2' '-msglevel' 'all=6'
'/tmp/VIDEO_00001.mp4'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/gordan/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/gordan/.mplayer/input.conf'
Can't open input config file /home/gordan/.mplayer/input.conf: No such
file or directory
Can't open input config file /etc/mplayer/input.conf: No such file or
directory
Falling back on default (hardcoded) input config
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote
control.
get_path('VIDEO_00001.mp4.conf') ->
'/home/gordan/.mplayer/VIDEO_00001.mp4.conf'
Playing /tmp/VIDEO_00001.mp4.
get_path('sub/') -> '/home/gordan/.mplayer/sub/'
[file] File size is 518161 bytes
STREAM: [file] /tmp/VIDEO_00001.mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: QuickTime/MPEG-4/Motion JPEG 2000 format
libavformat file format detected.
==> Found video stream: 0
[lavf] Video stream found, -vid 0
======= VIDEO Format ======
biSize 68
biWidth 176
biHeight 144
biPlanes 0
biBitCount 24
biCompression 1983148141='mp4v'
biSizeImage 76032
Unknown extra header dump: [0] [0] [1] [b0] [3] [0] [0] [1] [b5] [9] [0]
[0] [1] [0] [0] [0] [1] [20] [0] [86] [c4] [0] [2a] [82] [c2] [9] [a] [31]
===========================
==> Found audio stream: 1
[lavf] Audio stream found, -aid 1
======= WAVE Format =======
Format Tag: 24947 (0x6173)
Channels: 1
Samplerate: 8000
avg byte/sec: 0
Block align: 1
bits/sample: 16
cbSize: 0
==========================================================================
LAVF: 1 audio and 1 video streams found
LAVF: build 3417600
VIDEO: [mp4v] 176x144 24bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x7634706D size:176x144 fps:10.000 ftime:=0.1000
get_path('sub/') -> '/home/gordan/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 2560x1600 with depth 24 and 32 bpp (":0.0" => local
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW
X atoms
[VO_XV] Using Xv Adapter #0 (ATI Radeon AVIVO Video)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 4096x4096
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
AutoQ: setting quality to 0.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 65536 = 257536 bytes for output buffer.
FFmpeg's libavcodec audio codec
Cannot find codec 'libopencore_amrnb' in libavcodec...
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x726D6173.
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
[ffmpeg] aspect_ratio: 1.222222
VDec: vo config request - 176 x 144 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.22:1 - prescaling to correct movie aspect.
VO Config (176x144->352x288,flags=0,'MPlayer',0x32315659)
VO: [xv] 176x144 => 352x288 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x59565955 (UYVY) packed
using Xvideo port 131 for hw scaling
*** [vo] Allocating (slices) mp_image_t, 176x144x12bpp YUV planar, 38016
bytes
Unicode font: 255 glyphs.
Unicode font: 255 glyphs.
*** [vo] Allocating (slices) mp_image_t, 176x144x12bpp YUV planar, 38016
bytes
Uninit video: ffmpeg 0% 0.0% 0 0
vo: uninit ...
file reports:
$ file /tmp/VIDEO_00001.mp4
/tmp/VIDEO_00001.mp4: ISO Media, MPEG v4 system, 3GPP
So, the relevant bits seem to be:
mp4v, mpeg4, and 3gpp. I've not had any luck in producing 3gpp format,
but I have tried this:
mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000 -ffourcc mp4v
-of lavf -lavfopts format=mp4 -nosound -o /tmp/test.mp4 test.mkv
but WMPM flatly refuses to play it. Has anybody managed to produce a
video file playable on Windows Media Player Mobile using mencoder?
I know I can just use tcpmp or another player to play it, but I would
rather like to have the means of producing a video file playable without
the need to use a 3rd party player. How can I produce the video in the
same format as the one that works?
TIA.
Gordan
More information about the MEncoder-users
mailing list