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, 
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?

beye

chriwi

>
>> I use mjpegtools to convert JPEGS from a digital-photo-camera to MPEG2s to 
>view them on my settopbox(Dreambox500).
>>
>> Iuse:
>> jpeg2yuv  -v0 -f25 -n1 -Ip -j<jpeg>.jpg   |
>> yuvscaler -v0 -OSIZE_720x576 2> /dev/null |
>> mpeg2enc  -v0 -a2 -np --cbr -b10000 -D8 -f3 -o <jpeg>.mvi
>>
>> now I would like to maintain teh aspectratio of the fotos and rather fill 
>the rest of the space with black bars, is there any possibility to do this 
>with mjpegtools?
>>
>>   
>y4mscale


r can be used for this: 
>http://www.mir.com/DMG/Software/y4mscaler.html
>
>e.g. 4:3 photo to 4:3 DVD:
>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
>
>e.g. a 4:3 photo to 16:9 DVD (black bars left and right of the picture):
>djpeg 20070225_2710.JPG  | ppmtoy4m -r -n 200 -F 25:1 | y4mscaler -I 
>sar=1:1  -O preset=DVD_WIDE  | mpeg2enc -f 8 -o photo2.m2v
>
>   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

-------------------------------------------------------------------------
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

Reply via email to