[MEncoder-users] Sony PSP compatible MP4

Jon Drukman jsd at cluttered.com
Thu Jun 8 20:04:50 CEST 2006


I'm trying to use mencoder to convert files to Sony PSP compatible MP4 
format.  Has anybody done it successfully?  I took a PSP movie created 
by Agility Anystream and ran it through mplayer -identify to try to get 
some clues.  Here's what it said:


Playing M4V10012.MP4.
ISO: Unknown File Type Major Brand: MSNV
Quicktime/MOV file format detected.
ID_VIDEO_ID=0
ID_AUDIO_ID=1
VIDEO:  [mp4v]  320x240  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 48000 Hz, 2 ch, s16le, 64.0 kbit/4.17% (ratio: 8000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) 
decoder)
==========================================================================
ID_FILENAME=M4V10012.MP4
ID_DEMUXER=mov
ID_VIDEO_FORMAT=mp4v
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=320
ID_VIDEO_HEIGHT=240
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_CODEC=faad
ID_AUDIO_FORMAT=mp4a
ID_AUDIO_BITRATE=64000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=75.21
vo_cvidix: No vidix driver name provided, probing available ones (-v 
option for details)!
[VO_SUB_VIDIX] Couldn't find working VIDIX driver.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ID_VIDEO_CODEC=ffodivx

Here's what I came up with, but it doesn't work:

/opt/mplayer32/bin/mencoder $1 -o M4V00001.mp4 \
     -of lavf  \
     -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames \
     -ovc lavc \
     -lavcopts vcodec=mpeg4:vbitrate=$bitrate:acodec=mpeg4:abitrate=56 
-vf scale=320:240 \
     -oac faac -srate 24000 -af lavcresample=24000


The PSP doesn't recognize the output file as a valid movie. Here's what 
mplayer says about the file I've created:

Playing M4V00001.mp4.
Quicktime/MOV file format detected.
ID_VIDEO_ID=0
ID_AUDIO_ID=1
VIDEO:  [mp4v]  320x240  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) 
decoder)
==========================================================================
ID_FILENAME=M4V00001.mp4
ID_DEMUXER=mov
ID_VIDEO_FORMAT=mp4v
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=320
ID_VIDEO_HEIGHT=240
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_CODEC=faad
ID_AUDIO_FORMAT=mp4a
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=66.03
vo_cvidix: No vidix driver name provided, probing available ones (-v 
option for details)!
[VO_SUB_VIDIX] Couldn't find working VIDIX driver.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ID_VIDEO_CODEC=ffodivx


Ideas?




More information about the MEncoder-users mailing list