2006-12-12, 11:47 PM
Hi all. I'm doing finishing touches on a new version of ZProcess where it will now use MEncoder to transcode files.
One thing I can do with FFmpeg is create a video rectangle inside a 4x3 field that may not necessarily be centred. Here's an example, including the commandline that would create the rectangel...
[ATTACHMENT NOT FOUND]
With ffmpeg, I can play with the padding. The resulting padding + Rectangle size equals a 640x480 video...
In Mencoder, when I create the same size rectangle, it is automatically centred vertically and horizontally, within the field
[ATTACHMENT NOT FOUND]
With the MEncoder docs, it say that I can create hieght and width of a rectangle and define the x,y coordinates of the start of that rectangle, which would be great (I can create that code in ZProcess).. I just can't get it working...
http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
I think it's in the scale or expand, but everything I do has the rectangle centred...
Any ideas?
Thanks
Frank
One thing I can do with FFmpeg is create a video rectangle inside a 4x3 field that may not necessarily be centred. Here's an example, including the commandline that would create the rectangel...
[ATTACHMENT NOT FOUND]
Code:
"C:\Program Files\devnz\gbpvr\Third Party\FFmpeg\ffmpeg.exe" -y -i "C:\TV\Recorded\Battlestar Galactica\Battlestar.Galactica-S03E08-Hero.avi" -target ntsc-dvd -deinterlace -b 4000000 -vcodec mpeg2video -ab 224 -ar 48000 -acodec mp2 -ac 2 -r 23.976023976024 -s [B]560x308[/B] [B]-padtop 64 -padbottom 108 -padleft 56 -padright 24[/B] -aspect 4:3 "C:\TV\Override\Battlestar.Galactica-S03E08-Hero.mpg"
With ffmpeg, I can play with the padding. The resulting padding + Rectangle size equals a 640x480 video...
In Mencoder, when I create the same size rectangle, it is automatically centred vertically and horizontally, within the field
[ATTACHMENT NOT FOUND]
Code:
"C:\Program Files\devnz\gbpvr\Third Party\mplayer\mencoder.exe" -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf lavcdeint,scale=[B]560:308[/B],expand=[B]640:480[/B],harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=4000:vbitrate=4000:keyint=15:acodec=mp2:abitrate=224:aspect=4/3 -fps 23.976 -ofps 23.976023976024 -o "C:\TV\Override\Battlestar.Galactica-S03E08-Hero.mpg" "C:\TV\Recorded\Battlestar Galactica\Battlestar.Galactica-S03E08-Hero.avi"
With the MEncoder docs, it say that I can create hieght and width of a rectangle and define the x,y coordinates of the start of that rectangle, which would be great (I can create that code in ZProcess).. I just can't get it working...
http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
I think it's in the scale or expand, but everything I do has the rectangle centred...
Any ideas?
Thanks
Frank
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]