Opened 17 years ago
Closed 17 years ago
#846 closed defect (fixed)
Mencoder create divx x264 with "strange" a/r
Reported by: | Owned by: | reimar | |
---|---|---|---|
Priority: | normal | Component: | core |
Version: | unspecified | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
Mencoder with x264 generate a bad
aspect ratio.
This is the situation:when i try encode
a mpeg file with this script
#!/bin/bash
crop=540:328:2:124
scale=512:218
bitrate=650
opt1="subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:bitrate=$bitrate"
opt2="subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:bitrate=$bitrate"
opt3="subq=4:bframes=2:b_pyramid:weight_b:bitrate=$bitrate"
mencoder -vf crop=$crop,scale=$scale -ovc x264 -x264encopts $opt2 -nosound -o /dev/null titolo.vob
mencoder -vf crop=$crop,scale=$scale -ovc x264 -x264encopts $opt2 -oac faac -faacopts br=128 -o tmp2.avi titolo.vob
Mencoder create a file with aspect 512x218 wich must be
a/r 2:35:1,when i try to play it with mplayer
"Movie-Aspect is 1.76:1 - prescaling to correct movie aspect."
why 1:76:1?
This happen only with x264 divx created with mencoder
if i use other apps(avidemux for example)
mplayer said
"Movie-Aspect is 2.35:1 - prescaling to correct movie aspect."
Wich is correct.
Of course i've used the same crop and resize settings
in both apps.
Change History (3)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Using dsize
Movie-Aspect is 1.63:1 - prescaling to correct movie aspect.
:(
Must be 2:35:1
comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've solved dsize must be used WITH scale
like this
#!/bin/bash
crop=720:428:0:74
scale=512:288
bitrate=700
opt1="threads=3:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:bitrate=$bitrate"
opt2="threads=3:subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:bitrate=$bitrate"
opt3="threads=3:subq=4:bframes=2:b_pyramid:weight_b:bitrate=$bitrate"
mencoder -vf harddup,crop=$crop,dsize=$scale,scale=$scale,pp=0x20000 -ovc x264 -x264encopts $opt2 -nosound -o /dev/null titolo.vob
mencoder -vf harddup,crop=$crop,dsize=$scale,scale=$scale,pp=0x20000 -ovc x264 -x264encopts $opt2 -oac faac -faacopts br=128 -o tmp2.avi titolo.vob
try using dsize instead of scale