[MEncoder-users] Help encoding for Sandisk Sansa e260

Scott scott.edlund at gmail.com
Tue Oct 10 17:56:46 CEST 2006


I need help to use mencoder to encode in a format that is in the same format
as Sandisk software creates for my mp3 player.  The player will not play the
file unless it the exact video format and audio format that it wants.

Here is -identify -v output from pre8 from a encoding from the sandisk
software:

MPlayer 1.0pre8-Fedora-GS-4.0.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(TM) XP 2600+ (Family: 6, Model: 10, Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.

get_path('codecs.conf') -> '/home/userid/.mplayer/codecs .conf'
Reading /home/userid/.mplayer/codecs.conf: Can't open
'/home/sedlund/.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.
CommandLine: '-identify' '-v' 'grav_sansa.mov'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/userid/.mplayer/input.conf'
Can't open input config file /home/userid/.mplayer/input.conf: No such file
or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 60 binds
get_path('grav_sansa.mov.conf') ->
'/home/userid/.mplayer/grav_sansa.mov.conf'

Playing grav_sansa.mov.
get_path('sub/') -> '/home/userid/.mplayer/sub/'
[file] File size is 20293966 bytes
STREAM: [file] grav_sansa.mov
STREAM: Description: File
STREAM: Author: Albeu

STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename grav_sansa.mov ext: .mov
Trying demuxer 7 based on filename extension
Checking for MOV
ISO: File Type Major Brand: Original QuickTime
ISO: File Type Minor Version: 537199360
ISO: File Type Compatible Brand #0: qt
ISO: File Type Compatible Brand #1:
ISO: File Type Compatible Brand #2:
ISO: File Type Compatible Brand #3:
MOV: 'WIDE' chunk found!
MOV: Movie DATA found!
MOV: Movie DATA found!
MOV: Movie header found!
Quicktime/MOV file format detected.
MOV: Movie header (100 bytes): tscale=600  dur=137120
--------------
MOV: Track #0:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=137120 lay=0 vol=0
MOV:  Edit atom!
MOV:   Edit list table (1 entries) (ver:0,flags:0)
MOV:     entry#0: duration: 137120  start time: 0  speed: 1.0x
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: mhlr/vide (appl) Apple Video Media Handler
MOV:   Media info!
MOV:    Video header!
MOV:    Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: mjpb  (96 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Sample->Chunk mapping table!  (1 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=3428 ss=0) (ver:0,flags:0)
MOV:     Chunk offset table! (3428 chunks)
MOV track #0: 3428 chunks, 3428 samples
pts=137120  scale=600  time=228.533
EL#0: pts=0  1st_sample=0  frames=3428 (228.533s)  pts_offs=0
==> Found video stream: 0
ID_VIDEO_ID=0
MOV: Found unsupported Field-Handling movie atom (10)!
MOV: Found unsupported Gamma-Correction movie atom (12)!
Image size: 160 x 208 (24 bpp)
Display size: 160 x 208
Fourcc: mjpb  Codec: 'Motion JPEG B'
--------------
MOV: Track #1:
MOV:  Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=137096 lay=0 vol=256
MOV:  Edit atom!
MOV:   Edit list table (1 entries) (ver:0,flags:0)
MOV:     entry#0: duration: 137096  start time: 0  speed: 1.0x
MOV:  Media stream!
MOV:   Media header!
MOV:   Handler header: mhlr/soun (appl) Apple Sound Media Handler
MOV:   Media info!
MOV:    Sound header!
MOV:    Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV:    Sample info!
MOV:     Description list! (cnt:1)
MOV:      desc #0: twos  (20 bytes)
MOV:     Sample duration table! (1 blocks)
MOV:     Sample->Chunk mapping table!  (2 blocks) (ver:0,flags:0)
MOV:     Sample size table! (entries=2519139 ss=1) (ver:0,flags:0)
MOV:     Chunk offset table! (29 chunks)
MOV track #1: 29 chunks, 0 samples
pts=2519139  scale=11025  time=228.493
==> Found audio stream: 1
ID_AUDIO_ID=1
Audio bits: 16  chans: 2  rate: 11025
Fourcc: twos
--------------
MOV: longest streams: A: #1 (29 samples)  V: #0 (3428 samples)
VIDEO:  [mjpb]  160x208  24bpp  15.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7  fourcc:0x62706A6D  size:160x208  fps:15.00  ftime:=0.0667
get_path('sub/') -> '/home/sedlund/.mplayer/sub/'
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 11025 Hz, 2 ch, s16be, 352.8 kbit/100.00% (ratio: 44100->44100)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
ID_FILENAME=grav_sansa.mov
ID_DEMUXER=mov
ID_VIDEO_FORMAT=mjpb
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=160
ID_VIDEO_HEIGHT=208
ID_VIDEO_FPS=15.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_CODEC=pcm
ID_AUDIO_FORMAT=twos
ID_AUDIO_BITRATE=352800
ID_AUDIO_RATE=11025
ID_AUDIO_NCH=2
ID_LENGTH=228.53
X11 opening display: :0.0
[...]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmjpegb] vfm: ffmpeg (FFmpeg MJPEG-B decoder)
==========================================================================
ID_VIDEO_CODEC=ffmjpegb
Building audio filter chain for 11025Hz/2ch/s16be -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 11025Hz/2ch/s16be
[dummy] Was reinitialized: 11025Hz/2ch/s16be
ao2: 11025 Hz  2 chans  s16be
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16be (requested: s16be)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 11025 Hz samplerate (requested: 11025)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 11025Hz 2ch s16be (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 11025Hz/2ch/s16be -> 11025Hz/2ch/s16be...
[...]
--------------------------

This is what I've got so far:

mencoder -ovc lavc -lavcopts vcodec=mjpeg:vbitrate=150:vhq -vf
rotate=1,scale=176:220 -ofps 15 -ffourcc mjpb -oac pcm -srate 11025 -format
s16be in.mov -o out.mov

I'm specifying s16be, but getting s16le.  Also I don't know how to get the
ID_AUDIO_FORMAT=twos .

Thanks for any help



More information about the MEncoder-users mailing list