[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mjpeg-users
Subject:    Re: [Mjpeg-users] aspect-ratio
From:       Gert Vervoort <gert.vervoort () hccnet ! nl>
Date:       2007-03-19 17:39:29
Message-ID: 45FECAD1.90607 () hccnet ! nl
[Download RAW message or body]

christian.wirtz@online.de wrote:
> Hello Gert,
> 
> thank you for your Tip, 
> 
> 
> > djpeg 20070225_2710.JPG  | ppmtoy4m -r -n 200 -F 25:1 | y4mscaler -I 
> > sar=1:1 -O preset=DVD -O infer=PRESERVE_X -O infer=EXACT | mpeg2enc -f 8 
> > -o photo.m2v
> > 
> 
> works fine and the resault is almost what I want, only the parameter "-O \
> infer=PERSERVE_X" leeds to the oversize in Y will be clipped what I don't like,
Indeed, I didn't notice this before, but it seems that indeed it clips 
in the Y direction. When I do use "-O infer=PERSERVE_Y" I get  small 
black bars left and right. Actually, this is strange since the photo's 
from my digital camera have a 4:3 ratio and PAL also has a 4:3 ratio, so 
I what expect it to fill the full video frame without any clipping or 
black bars.
> but when I use "-O infer=PERSERVE_Y" or "-O infer=PAD" than the script produces \
> "memoryaccesserror 4952" for every conversion, how can I avoid this and can I get \
> padded MPEG-immages with black bars for the space not used? 
> 

Tried both options and they seem to work fine here, I do not get a 
"memoryacesserror".

If I use y4mscaler without these options it will also add black bars if 
needed, just tried it with a photo in portrait format and it gives me 
black bars left and right:
djpeg IMG_5171.JPG  | ppmtoy4m -r -n 200 -F 25:1 | y4mscaler -I sar=1:1 
-O preset=DVD | mpeg2enc -f 8  -o photo3.m2v

But, it also adds small black bars on the bottom and top, to remove 
these I needed to specify  "-O infer=PRESERVE_Y -O infer=EXACT".

   Gert


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic