[MEncoder-users] cropdetect cuts off bottom of subtitles

Raphael mencoder at lesshaste.plus.com
Fri Jan 20 12:36:39 CET 2006


I am using

mencoder -endpos 120 -ovc lavc -oac copy -o /dev/null -vf cropdetect dvd.avi

which I let run for a minute or two.  Then I am testing with


mencoder -endpos 120 -ovc lavc -oac copy -o crop.avi -vf 
crop=720:464:0:76 dvd.avi


This chops off the bottom of the subtitles. 

http://img32.imageshack.us/img32/9876/shot00056gy.jpg


Raphael
------------------ mplayer -v -aspect 16:9 -vf screenshot z=9   crop.avi 
--------------


MPlayer dev-CVS-060118-09:14-3.4.4 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Athlon 64 Newcastle,Winchester,San 
Diego,Venice; Sempron Palermo (Family: 15, Stepping: 0)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2


get_path('codecs.conf') -> '/home/raph/.mplayer/codecs.conf'
Reading /home/raph/.mplayer/codecs.conf: Reading 
/usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '-aspect' '16:9' '-vf' 'screenshot' 'z=9' 'crop.avi'
init_freetype
get_path('font/font.desc') -> '/home/raph/.mplayer/font/font.desc'
font: can't open file: /home/raph/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system 
startup scripts.
Using nanosleep() timing
get_path('input.conf') -> '/home/raph/.mplayer/input.conf'
Can't open input config file /home/raph/.mplayer/input.conf: No such 
file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such 
file or directory
Falling back on default (hardcoded) input config
get_path('z=9.conf') -> '/home/raph/.mplayer/z=9.conf'
Playing z=9.

get_path('crop.avi.conf') -> '/home/raph/.mplayer/crop.avi.conf'
Playing crop.avi.
get_path('sub/') -> '/home/raph/.mplayer/sub/'
[file] File size is 18980488 bytes
STREAM: [file] crop.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x13A
======= AVI Header =======
us/frame: 40000  (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 3001   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  720 x 464
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: FMP4 (34504D46)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 25/1 = 25.000
Start: 0   Len: 3001
Suggested BufferSize: 42402
Quality 0
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 720
  biHeight 464
  biPlanes 1
  biBitCount 24
  biCompression 877677894='FMP4'
  biSizeImage 1002240
===========================
Regenerating keyframe table for MPEG4 video
list_end=0x13A
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC:  (2000)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 56000/1 = 56000.000
Start: 0   Len: 6720000
Suggested BufferSize: 28000
Quality 0
Sample size: 1
==========================
Found 'wf', 18 bytes of 18
======= WAVE Format =======
Format Tag: 8192 (0x2000)
Channels: 2
Samplerate: 48000
avg byte/sec: 56000
Block align: 1
bits/sample: 16
cbSize: 0
===========================
list_end=0x172
hdr=Software  size=36
Software  : MEncoder dev-CVS-060118-09:14-3.4.4
list_end=0x120D3F0
Found movie at 0x100C - 0x120D3F0
Reading INDEX block, 3241 chunks for 3001 frames (fpos=18928632)
AVI index offset: 0x1008 (movi=0x100C idx0=0x4 idx1=0x6D6C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=12177020 (3001) audio size=6720000 (6720000)
VIDEO:  [FMP4]  720x464  24bpp  25.000 fps  811.5 kbps (99.1 kbyte/s)
[V] filefmt:3  fourcc:0x34504D46  size:720x464  fps:25.00  ftime:=0.0400
Clip info:
 Software: MEncoder dev-CVS-060118-09:14-3.4.4
get_path('sub/') -> '/home/raph/.mplayer/sub/'
get_path('default.sub') -> '/home/raph/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer.
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local 
display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours LAYER FULLSCREEN X atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x100701).
[xv common] Maximum source image dimensions: 2048x2048
Opening video filter: [screenshot]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
alsa-init: requested format: 48000 Hz, 2 channels, 9
alsa-init: compiled for ALSA-1.0.10
alsa-init: setup for 1/2 channel(s)
alsa-init: 1 soundcard found, using: default
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little 
Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
alsa-space: free space = 65536, prepared --
XXX initial  v_pts=0.000  a_pos=28000 (0.500)
[ffmpeg] aspect_ratio: 1.551724
VDec: vo config request - 720 x 464 (preferred colorspace: Planar YV12)
Trying filter chain: screenshot vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x464->824x464,flags=0,'MPlayer',0x32315659)
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 5 -> 4

SwScaler: BICUBIC scaler, from Planar YV12 to BGR 24-bit using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
SwScaler: using MMX2 YV12->BGR24 Converter
SwScaler: 720x464 -> 824x464
REQ: flags=0x437  req=0x0 
VO: [xv] 720x464 => 824x464 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 67 for hw scaling
[...]




More information about the MEncoder-users mailing list