PDA

View Full Version : Mencoder prescaling without being asked...


niz_se
20th August 2008, 14:54
Hi!

I´m trying to reencode a BD-movie to make it fit on a DVD-9 (AVCHD format).
I´ve been remuxing it with txRemux and is now about to reencode the video with Mencoder.
All I want is to get the bitrate down, without any other changes...
When the encoding starts, this puzzles me:
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.

Now, please remember that I want the video, part from bitrate, as unaltered as possible.
Besides, prescaling would push the encodingtimes in the wrong direction...

Why is Mencoder applying this prescaling? The input-file should be 1920x1080 and that is what I want in the output-file!
Is there a way to prevent this prescaling?

I´m using the following commands:

Mencoder.exe -nosound -noskip -mc 0 -of rawvideo -o "D:\Hitman Demux2\HitmanVideo.h264" -ovc x264 -x264encopts
bitrate=9500:threads=auto:frameref=1:bframes=2:deblock:level=41:direct_pred=auto:partitions=p8x8,b8x8:me=hex:me_range=16:subq=1:chroma_me:mixed_refs:bime:trellis=1:weight_b:b_pyramid:nr=
0:pass=1 -vf harddup "D:\Hitman Demux2\00002.track_4113.264" -mc 0 -noskip

Mencoder.exe -nosound -noskip -mc 0 -of rawvideo -o "D:\Hitman Demux2\HitmanVideo.h264" -ovc x264 -x264encopts
bitrate=9500:threads=auto:frameref=2:bframes=2:deblock:level=41:direct_pred=auto:direct_pred=auto:partitions=p8x8,b8x8:me=hex:me_range=16:subq=5:chroma_me:mixed_refs:bime:trellis=1:weigh
t_b:b_pyramid:nr=0:pass=2 -vf harddup "D:\Hitman Demux2\00002.track_4113.264" -mc 0 -noskip

When starting the encode I get this:

MEncoder Sherpya-SVN-r25803-4.2.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.60GHz (Family: 15, Model: 4, Stepping
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0xce911fa
H264-ES file format detected.
FPS seems to be: 23.976025
[V] filefmt:30 fourcc:0x10000005 size:0x0 fps:23.98 ftime:=0.0417
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 decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
======================================================================
VDec: vo config request - 1920 x 1080 (preferred colorspace: Planar YV
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 Cache64


Just realized that the resulting video after encoding (takes forever, even with a small sampel of the movie...) ends up with a resolution of 1920x1084...!

So I tried to apply a crop=1920:1080:0:0, trying to prevent that. However I still end up with 1920x1084...

What am I doing wrong?
Please help!
Thanx!

nm
20th August 2008, 15:13
When the encoding starts, this puzzles me:
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.

Now, please remember that I want the video, part from bitrate, as unaltered as possible.
Besides, prescaling would push the encodingtimes in the wrong direction...
MEncoder doesn't scale unless you use the scale filter. The message is a bit confusing, but actually it just means that the 16:9 aspect ratio has been detected and it will be passed to the encoder or muxer.

Just realized that the resulting video after encoding (takes forever, even with a small sampel of the movie...) ends up with a resolution of 1920x1084...!
Are you sure about that and what tool did you use to check it? The resolution should be 1920x1088 (which is mod-16), cropped to 1920x1080 with H.264 bitstream flags.

smok3
20th August 2008, 15:19
if input is 1920*1088, then try to add -aspect 1.765 to the mencoder command line (and let me know what it does?).

niz_se
21st August 2008, 00:50
Hi, again!

So, the message does not mean that any prescaling is aplied?

The strange resolution on the output was reported by txMuxer, when I loaded the files for muxing to AVCHD.
Checking it with MediaInfo reports the normal 1920x1080 on both input and output-files.
And my PS3 accepts and plays my test-AVCHD-DVD...

Seems like I got fooled by strange info from two diffrent programs!

Thank you!