MEncoder

„MEncoder is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs.“

MEncoder. (2008, February 23). In Wikipedia, The Free Encyclopedia. Retrieved 18:57, April 5, 2008, from
http://en.wikipedia.org/w/index.php?title=MEncoder&oldid=193447614


My Blog List

Friday, June 27, 2008

[MEncoder-users] RM to FLV file bloat - huge upsize when converting

MEncoder 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x45b8
REAL file format detected.
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
[real] Audio stream found, -aid 0
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
[real] Video stream found, -vid 1
Stream mimetype: logical-fileinfo
VIDEO: [RV30] 320x180 24bpp 12.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:11 fourcc:0x30335652 size:320x180 fps:12.00 ftime:=0.0833
==========================================================================
Opening audio decoder: [realaud] RealAudio decoder
Error loading dll
ERROR: Could not open required DirectShow codec sipr.so.6.0.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [realaud] RealAudio decoder
Error loading dll
ERROR: Could not open required DirectShow codec sipr.so.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [realaud] RealAudio decoder
Error loading dll
ERROR: Could not open required DirectShow codec sipr.dll.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [realaud] RealAudio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 8.5 kbit/6.64% (ratio: 1062->16000)
Selected audio codec: [rasiprwin] afm: realaud (Win32 RealAudio Sipro)
==========================================================================
** 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: [scale w=320 h=240]
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
Error loading dll
ERROR: Could not open required DirectShow codec drvc.so.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error loading dll
ERROR: Could not open required DirectShow codec drvc.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error loading dll
ERROR: Could not open required DirectShow codec drv3.so.6.0.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Could not patch Real codec, this might crash on multi-CPU systems
Selected video codec: [rv30win] vfm: realvid (Win32 RealPlayer 8 RV30 decoder)
==========================================================================
MP3 audio selected.
VDec: vo config request - 320 x 180 (preferred colorspace: Planar I420)
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (320x240 fourcc=31564c46 [FLV1])
[VE_LAVC] High quality encoding selected (non-realtime)!
VIDEO CODEC ID: 22
AUDIO CODEC ID: 15001, TAG: 0
Writing header...
Pos: 0.1s 1f (16%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0] SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
[swscaler @ 00D24D00]SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 00D24D00]SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 00D24D00]SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 00D24D00]SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
[swscaler @ 00D24D00]SwScaler: 320x180 -> 320x240

Skipping frame!
Pos: 0.1s 2f (16%) 0.00fps Trem: 0min 0mb A-V:0.008 [0:0] Pos: 0.2s 3f (18%) 0.00fps Trem: 0min 0mb A-V:0.017 [0:0] Pos: 0.3s 4f (18%) 0.00fps Trem: 0min 0mb A-V:0.025 [0:0] Pos: 0.3s 5f (25%) 0.00fps Trem: 0min 0mb A-V:0.033 [0:0] Pos: 0.4s 6f (25%) 0.00fps Trem: 0min 0mb A-V:0.041 [0:0] Pos: 0.5s 7f (31%) 0.00fps Trem: 0min 0mb A-V:0.049 [0:0] Pos: 0.6s 8f (31%) 0.00fps Trem: 0min 0mb A-V:0.057 [0:56] Pos: 0.7s 9f (36%) 0.00fps Trem: 0min 0mb A-V:0.057 [0:55] Pos: 0.8s 10f (36%) 0.00fps Trem: 0min 0mb A-V:0.065 [0:55] Pos: 0.8s 11f (42%) 0.00fps Trem: 0min 0mb A-V:0.073 [0:55] Pos: 0.9s 12f (42%) 0.00fps Trem: 0min 0mb A-V:0.073 [0:55] Pos: 1.0s 13f (44%) 0.00fps Trem: 0min 0mb A-V:0.082 [0:55] Pos: 1.1s 14f (47%) 0.00fps Trem: 0min 0mb A-V:0.090 [229:54] Pos: 1.2s 15f (55%) 0.00fps Trem: 0min 0mb A-V:0.093 [226:54] Pos: 1.3s 16f (57%) 0.00fps Trem: 0min 0mb A-V:0.089 [221:54] Pos: 1.3s 17f (82%) 0.00fps Trem: 0min 0mb A-V:0.097 [215:54] Pos: 1.4s 18f (82%) 0.00fps Trem: 0min 0mb A-V:0.103 [243:54] Pos: 1.5s 19f (82%) 0.00fps Trem: 0min 0mb A-V:0.100 [254:54] Pos: 1.6s 20f (82%) 0.00fps Trem: 0min 0mb A-V:0.109 [266:53] Pos: 1.7s 21f (87%) 0.00fps Trem: 0min 0mb A-V:0.117 [273:53] Pos: 1.8s 22f (87%) 0.00fps Trem: 0min 0mb A-V:0.125 [278:53] Pos: 1.8s 23f (87%) 0.00fps Trem: 0min 0mb A-V:0.050 [290:53]
2 duplicate frame(s)!
Pos: 2.1s 24f (90%) 0.00fps Trem: 0min 0mb A-V:0.059 [260:53]
1 duplicate frame(s)!
Pos: 2.3s 25f (90%) 0.00fps Trem: 0min 0mb A-V:0.067 [244:52] Pos: 2.3s 26f (92%) 0.00fps Trem: 0min 0mb A-V:0.062 [239:52] Pos: 2.4s 27f (94%) 0.00fps Trem: 0min 0mb A-V:0.070 [234:52] Pos: 2.5s 28f (94%) 0.00fps Trem: 0min 0mb A-V:0.078 [231:52] Pos: 2.6s 29f (97%) 0.00fps Trem: 0min 0mb A-V:0.077 [229:52] Pos: 2.7s 30f (99%) 0.00fps Trem: 0min 0mb A-V:0.085 [226:52]
Flushing video frames.
Writing index...

Video stream: 226.209 kbit/s (28276 B/s) size: 75403 bytes 2.667 secs 30 frames

Audio stream: 52.088 kbit/s (6510 B/s) size: 20750 bytes 3.187 secs
I am using Mencoder command line in my application to automatically convert
RealMedia (.rm) files to Flash (.flv). How come the Flash file becomes so
huge after converting the RealMedia? The video and audio quality are just
fine but the file bloat is crazy, like 3-8x's the size of the original.

Even an 18Kb test file gets blown up to 94Kb. I have attached the output
for that particular conversion, as it is very representative of the larger
files I'm working with.

This is my argument string:
-of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts
vcodec=flv:vbitrate=300:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf
scale=320:240
I am not trying to do anything funky here. These are pretty standard
bitrates and file dimensions. I do not have this trouble with any other
file formats.

This is a big problem because I have to pay for storage and bandwidth use,
so anything that converts UP is no good. At a minimum I would be happy with
a theory as to why RM files do then when converted. But a fix would
certainly make my day! Thanks for any insight. By the way, since this
needs to be an automated processes I cannot use any client converter
programs.

No comments:

PCBs

Links

Forex brokers, Forex online


Privacy Policy