[MPlayer-users] mencvcd fps conversion problems

Dave Botsch dwb7 at cornell.edu
Sun Mar 23 23:34:49 CET 2003


Just wanted to add mpeg2enc output to the below:

.4x22.bad_timing.ws_pdtv_xvid-fov.avi -vfr 4 -noburn -vnorm p 
-wews/Pan/farscap.
which: no toolame in 
(/usr/kerberos/bin:/bin:/usr/bin:/usr/bin/X11:/usr/local/b)
WARNING: toolame is not found in your path 
/usr/kerberos/bin:/bin:/usr/bin:/usr!
mplayer -noframedrop -vo yuv4mpeg -ao pcm -waveheader -v -osdlevel 0   
/home/dbi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90rc5-3.1 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or 
directy
Reading config file /home/dbotsch/.mplayer/config
Reading /home/dbotsch/.mplayer/codecs.conf: 50 audio & 136 video codecs
CommandLine: '-noframedrop' '-vo' 'yuv4mpeg' '-ao' 'pcm' '-waveheader' 
'-v' '-o'
get_path('font/font.desc') -> '/home/dbotsch/.mplayer/font/font.desc'
    INFO: [yuvscaler] yuvscaler (version 1.6.1) is a general scaling 
utility fors
    INFO: [yuvscaler] (C) 2001 Xavier Biquard <xbiquard at free.fr>
    INFO: [yuvscaler] yuvscaler -h for help, or man yuvscaler
Font /home/dbotsch/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/dbotsch/.mplayer/input.conf'
Parsing input config file /home/dbotsch/.mplayer/input.conf
Input config file /home/dbotsch/.mplayer/input.conf parsed : 50 binds
get_path('farscape.4x22.bad_timing.ws_pdtv_xvid-fov.avi.conf') -> 
'/home/dbotsc'

Playing 
/home/dbotsch/News/Pan/farscape.4x22.bad_timing.ws_pdtv_xvid-fov.avi
Not an URL!
File size is 365813760 bytes
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  Cache fill: 18.92% (12697600 
bytes)    AVI file format detected.
list_end=0x22D6

======= AVI Header =======
us/frame: 40000  (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 65647   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 368
list_end=0x1138
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: xvid (64697678)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 25/1 = 25.000
Start: 0   Len: 65647
Suggested BufferSize: 65731
Quality 10000
Sample size: 0
found 'bih', 108 bytes of 40
======= VIDEO Format ======
   biSize 40
   biWidth 640
biHeight 368
   biPlanes 1
   biBitCount 24
   biCompression 1145656920='XVID'
   biSizeImage 1413120
===========================
list_end=0x21CA
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 48000/1152 = 41.667
Start: 0   Len: 109411
Suggested BufferSize: 576
Quality -1
Sample size: 0
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 15278
Block abits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=366
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
list_end=0x22D6
list_end=0x22FA
hdr=Software  size=15
Software  : Nandub v1.0rc2
Broken chunk?  chunksize=1278  (id=JUNK)
list_end=0x15A31CE6
Found movie at 0x280C - 0x15A31CE6
Reading INDEX block, 175058 chunks for 65647 frames (fpos=0x15a31cee)
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x18C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=321448577 (65647) audio size=40119168 (109411)
VIDEO:  [XVID]  640x368  24bpp  25.00 fps  979.3 kbps (119.5 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:640x368  fps:25.00  ftime:=0.0400
Clip info:
  Software: Nandub v1.0rc2
get_path('sub/') -> '/home/dbotsch/.mplayer/sub/'
lign: 1152
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo_yuv4mpeg: Using (default) progressive frame mode
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy [dummy] Was reinitialized, rate=48000Hz, nch = 
2, format = 0x00000001 and bps =2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int AF_pre: 
48000Hz 2ch Signed 16-bit (Little-Endian)
PCM: File: audiodump.wav (WAVE)
PCM: Samplerate: 48000Hz Channels: Stereo Format Signed 16-bit 
(Little-Endian)
PCM: Info: fastest dumping is achieved with -vc null -vo null

PCM: Info: to write WAVE files use -waveheader (default); for RAW PCM 
-nowavehe.
AO: [pcm] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: RAW PCM/WAVE file writer audio output
AO: Author: Atmosfear
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and 
bps =2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and 
bps =2
Starting playback...
This file was encoded with XviD build 9
[ffmpeg] aspect_ratio: 1.739130
VDec: vo config request - 640 x 368 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.74:1 - prescaling to correct movie aspect.
VO Config (640x368->640x368,flags=0,'MPlayer',0x32315659)
VO: [yuv4mpeg] 640x368 => 640x368 Planar YV12 VO: Description: yuv4mpeg 
output for mjpegtools (to "stream.yuv")
VO: Author: Robert Kesterson <robertk at robertk.com>
++ WARN: [mpeg2enc] Specified display frame-rate 29.97 will over-ride
++ WARN: [mpeg2enc] (different!) frame-rate 25.00 of the input stream
++ WARN: [mpeg2enc] No aspect ratio specifed and no guess possible: 
assuming 4:!
*** [vo] Allocating (slices) mp_image_t, 640x368x12bpp YUV planar, 353280 
bytes
XXX initial  v_pts=0.000  a_pos=7968 (0.522) /  1   0%  0%  0.0% 1 0 3%
*** [vo] Allocating (slices) mp_image_t, 640x368x12bpp YUV planar, 353280


***********************
I suppose the really interesting thing, perhaps, is the warning about the 
fps difference.


On 2003.03.23 17:19 Dave Botsch wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi.
> 
> I'm trying to convert an xvid recorded over in England at 25 fps to a US 
> standard vcd. Except for the conversion of the frame rate from 25 fps to 
> 29.97 fps, all works.
> 
> I am using the following command with mplayer-0.90rc5, and latest 
> mjpegtools as of yesterday:
> 
> ./mencvcd ~/News/Pan/farscapevcd.mpg 
> ~/News/Pan/farscape.4x22.bad_timing.ws_pdtv_xvid-fov.avi -vfr 4 -noburn 
> -vnorm p -w
> 
> I end up with the frame rate being 29.97 fps, all right, except that it 
> is just the same frames as before being played faster and therefore 
> quickly gets ahead of the audio.
> 
> I've also tried the above command with -vnorm n and w/o the -vnorm with 
> the exact same results. I have also tried using ffmpeg with the exact 
> same results - video plays faster ahead of audio.
> 
> Any ideas here? I've seen quite a bit on this subject in the mailing 
> list archives with the general solution being "use mencvcd". But, this 
> isn't working.
> 
> Thanks!
> 
>-- 
> ********************************
> David William Botsch
> dwb7 at cornell.edu
> ********************************
> 
> _______________________________________________
> RTFM!!!  http://www.MPlayerHQ.hu/DOCS
> Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users

-- 
********************************
David William Botsch
dwb7 at cornell.edu
********************************



More information about the MPlayer-users mailing list