[MEncoder-users] decryption speed problem (& apology)
fake name
junk_email333 at yahoo.com
Sat Aug 2 01:51:39 CEST 2008
Hi all,
First off, I'd like to apologize for the cross-posting with the mplayer users list. I realized after I sent it that the mencoders users list is probably the more appropriate place for my question.
I'm having a problem (I believe) with the decryption and/or DVD drive read speed with mencoder.
Is it possible to decrypt and/or transcode faster than real time (i.e. faster than 1x drive speed)?
I
noticed the problem when trying to transcode directly from DVD to x264
but have the same problem with a simple dumpfile dumpstream with
mplayer.
This is definitely an I/O limitation and not a CPU
limitation. Other programs (including some that use mencoder) can
accomplish this much faster than real time. When using those programs
my cpu (both cores) are maxed out but with mencoder it is only using ~
30%.
I would just use an already existing program, but I'm
trying to use this as a learning experience for video transcoding,
mencoder and the x264 codec.
Pertinent info:
core 2 duo @ 2.13GHz, 2 gigs
RAM, XP SP 2.
Here is my mencoder command:
"C:\Program
Files\mencoder\mencoder.exe" dvd://1 -dvd-device D: -sws 9 -of lavf
-lavfopts format=ipod -vf scale=480:-2,dsize=480:320:0,harddup -ovc
x264 -x264encopts
bitrate=896:vbv_maxrate=896:vbv_bufsize=2000:nocabac:me=umh:subq=6:frameref=6:trellis=1:level_idc=30:global_header:threads=auto
-oac faac -aid 128 -faacopts mpeg=4:object=2:br=160:raw -channels 2
-srate 48000 -o "C:\Program Files\mencoder\test.m4v"
Here is the log:
Commandline:
"C:\Program Files\mencoder\mencoder.exe" dvd://1 -dvd-device D: -sws 9
-of lavf -lavfopts format=ipod -vf scale=480:-2,dsize=480:320:0,harddup
-ovc x264 -x264encopts
bitrate=896:vbv_maxrate=896:vbv_bufsize=2000:nocabac:me=umh:subq=6:frameref=6:trellis=1:level_idc=30:global_header:threads=auto
-oac faac -aid 128 -faacopts mpeg=4:object=2:br=160:raw -channels 2
-srate 48000 -o "C:\Program Files\mencoder\test.m4v"
MEncoder
dev-SVN-r27211-3.4.5 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
There are 1 titles on this DVD.
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (stereo) language: unknown aid: 128.
number of audio channels on disk: 1.
subtitle ( sid ): 0 language: unknown
number of subtitles on disk: 1
success: format: 2 data: 0x0 - 0x1aecb800
MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.970 ftime:=0.0334
==========================================================================
Opening audio decoder: [liba52] AC3
decoding with liba52
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Using SSE optimized IMDCT transform
Using MMX optimized resampler
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [dsize=480:320:0]
Opening video filter: [scale w=480
h=-2]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES)
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 10 -> 12
SwScaler: reducing / aligning filtersize 10 -> 12
SwScaler: reducing / aligning filtersize 9
-> 8
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0pbaebe4]Lanczos scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 0pbaebe4]using n-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0pbaebe4]using n-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0pbaebe4]using n-tap MMX scaler for vertical scaling (YV12 like)
[swscaler @ 0pbaebe4]720x480 -> 480x360
x264 [warning]: width or height not divisible by 16 (480x360), compression will suffer.
x264 [info]: using SAR=639/640
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[mpeg2video @ 0pbc6520]ac-tex damaged at 0 8
New_Face failed. Maybe the font path is wrong.
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.
VIDEO CODEC ID: 28
AUDIO CODEC ID: 15002, TAG: 0
Writing header...
[ipod @ 0pbb1c70]Warning, extension is not .m4a nor .m4v Quicktime/Ipod might not play the file
[ipod @ 0pbb1c70]Warning, extension is not .m4a nor .m4v Quicktime/Ipod might not play the file
Skipping frame!
[mpeg2video @ 0pbc6520]Warning MVs not available
[mpeg2video @ 0pbc6520]concealing 675 DC, 675 AC, 675 MV errors
Skipping frame!
[mpeg2video @ 0pbc6520]Warning MVs not available
[mpeg2video @ 0pbc6520]concealing 675 DC, 675 AC, 675 MV errors
Skipping frame!
Flushing video frames.
Writing index...
Video stream: 885.544 kbit/s (110692 B/s) size: 49795166 bytes 449.849 secs 26863 frames
Audio stream: 160.169 kbit/s (20021 B/s) size: 8941263 bytes 446.592 secs
x264 [info]: slice I:67 Avg QP:15.94 size: 15035
x264 [info]: slice P:13415
Avg QP:18.31 size: 3637
x264 [info]: mb I I16..4: 48.4% 0.0% 51.6%
x264 [info]: mb P I16..4: 4.3% 0.0% 4.2% P16..4: 50.7% 10.6% 2.8% 0.0% 0.0% skip:27.4%
x264 [info]: ref P 83.5% 6.6% 4.2% 2.1% 1.8% 1.9%
x264 [info]: kb/s:885.5
Finished conversion.
Conversion Time: 00:14:46
I'd greatly appreciate any insights. Thanks, brett
More information about the MEncoder-users
mailing list