[MPlayer-users] Putting motion back into an mpeg-ps stream

PO x75 at shaw.ca
Tue Apr 8 04:19:37 CEST 2008


Hi all!

I'm going from a divx5 format avi with no b frames to a dvd mpeg-ps file 
for playback in a standalone dvd player. The problem with the final file 
is that on high motion scenes the playback becomes jerky, the result of 
no b frames, I assume. what would be the best way to do such a task? Is 
there a filter I can add to the -vf option that will fix this?

Here is what mplayer sez about the original file:

**************************************************************************
bash-3.1$ mplayer -identify original_divx.avi
MPlayer dev-SVN-r26303-4.1.2 (C) 2000-2008 MPlayer Team
CPU: AMD Sempron(tm) 2500+ (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Playing original_divx.avi.
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO:  [DX50]  512x384  24bpp  29.969 fps  1455.3 kbps (177.6 kbyte/s)
ID_FILENAME=original_divx.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=DX50
ID_VIDEO_BITRATE=1455256
ID_VIDEO_WIDTH=512
ID_VIDEO_HEIGHT=384
ID_VIDEO_FPS=29.969
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=5596.85
ID_SEEKABLE=1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ID_VIDEO_CODEC=ffodivx
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or 
directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=mp3
Starting playback...
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.3333
VO: [xv] 512x384 => 512x384 Planar YV12
New_Face failed. Maybe the font path is wrong. 1 ??% ??% ??,?% 0 0
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
A:   2.5 V:   2.5 A-V:  0.000 ct:  0.000  77/ 77  4%  0%  2.8% 0 0
*******************************************************************
And here is the command I used to create the dvd.

*******************************************************************
bash-3.1$ mencoder -of mpeg -mpegopts 
format=dvd:tsaf:vaspect=4/3:vframerate=29.97 -srate 48000 -ofps 
30000/1001 -ovc lavc -vf crop=496:368:8:8,scale=720:480,hqdn3d,harddup 
-oac lavc -lavcopts 
vcodec=mpeg2video:vrc_buf_size=1835:keyint=15:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dc=10:vrc_maxrate=8800:vbitrate=5000:aspect=4/3:acodec=ac3:abitrate=320:vstrict=0:vpass=2 
-o movie.mpeg original_divx.avi
******************************************************************

Thanks, All!!

PO




More information about the MPlayer-users mailing list