[MEncoder-users] mpg to mp4 help

Bill Moseley moseley at hank.org
Thu Dec 27 18:05:44 CET 2007


Let me try again:

I need help in converting a video to mp4.

(Is there a better tool than mplayer to show the format of an existing
video?)

My input file shows via mplayer:

MPEG-PS file format detected.
VIDEO:  MPEG1  352x240  (aspect 12)  29.970 fps  2400.0 kbps (300.0 kbyte/s)

Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)

And I want to generate something that matches:


ISO: Unknown File Type Major Brand: MSNV
Quicktime/MOV file format detected.
VIDEO:  [avc1]  320x240  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)

Forced audio codec: mad
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
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)

I can convert the audio, but I'm less clear how to deal correctly with
the video.  The images are different sizes so it would seem that I'd
either need to crop or simply resize.  My efforts so far are created
broken videos only.

I'm also not clear when to use, say ffmpeg vs. mencoder.


Full output from mplayer.

Source:


MPEG-PS file format detected.
VIDEO:  MPEG1  352x240  (aspect 12)  29.970 fps  2400.0 kbps (300.0 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
gnome_screensaver_control()==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 240 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 352 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.30:1 - prescaling to correct movie aspect.
VO: [x11] 352x240 => 352x270 Planar YV12 
Shared memory not supported
Reverting to normal Xlib
SwScaler: using unscaled yuv420p -> rgb32 special converter


Reference video:

ISO: Unknown File Type Major Brand: MSNV
Quicktime/MOV file format detected.
VIDEO:  [avc1]  320x240  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
xscreensaver_disable: Could not find XScreenSaver window.
gnome_screensaver_control()==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
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)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [x11] 320x240 => 320x240 Planar YV12 
Shared memory not supported
Reverting to normal Xlib
SwScaler: using unscaled yuv420p -> rgb32 special converter




-- 
Bill Moseley
moseley at hank.org




More information about the MEncoder-users mailing list