Re: [Encode2mpeg-users] zoom/crop a 16:9 movie to a 4:3
Brought to you by:
encode2mpeg
|
From: Giacomo C. <enc...@us...> - 2007-05-07 20:36:33
|
On Sun, May 06, 2007 at 02:36:59AM -0700, Rob wrote:
> Hi,
>
> I'm having issues trying to convert a movie with the following specs below to
> a movie that needs to fit on a 4:3 screen - 320x240. I would like the video
> to be zoomed (sides cut off) such that it fits the full screen (no black bars
> on the top or bottom).
>
> This is the command that I used. It creates the correct aspect ratio, but the
> size is wrong (doesn't fill the whole 320x240 screen).
>
> ./encode2mpeg-0.6.2/encode2mpeg -o "D2-sample.24.s06e18.hr.hdtv.xvid-nbs" -avionly -vfr
> 1 -encode 2:2:1 -acustom "cbr:br=128" -vf harddup -vbitrate 384 -setaspect
> 320 -crop 725:544:0:0 "sample.24.s06e18.hr.hdtv.xvid-nbs.avi"
>
> Close, but no cigar :(
This is a bug. Please try this fix and report if it solves the problem.
Edit the encode2mpeg script:
goto line 5129 and add after the line
ratio=w/h
this line:
if (sqrt((ratio-a)*(ratio-a)/(a*a))<0.01) a=ratio+sqrt((ratio-a)*(ratio-a))
Giacomo
>
> Thanks,
> Rob
>
> P.S. encode2mpeg rocks! :)
>
> INPUT FILE:
> =========================================================
> File: sample.24.s06e18.hr.hdtv.xvid-nbs.avi
> Width: 960 pixels
> Height: 544 pixels
> Aspect ratio: 1.76:1
> Frames: 1217
> Duration: 00:00:50 hours/mins/secs
> Framerate: 23.976 frames per second
> Video format: XVID
> Video bitrate: 1943648 bits per second
> ---------------------------
> Audio track 1 (Stream 0.1, AID 0):
> ---------------------------
> Codec: ac3
> Bitrate: 384000 bits per second
> Sampling rate: 48000 Hz
> =========================================================
>
> OUTPUT FILE:
> =========================================================
> File: D2-sample.24.s06e18.hr.hdtv.xvid-nbs.avi
> Width: 256 pixels
> Height: 192 pixels
> Aspect ratio: 1.33:1
> Frames: 273
> Duration: 00:00:11 hours/mins/secs
> Framerate: 23.976 frames per second
> Video format: DX50
> Video bitrate: 239968 bits per second
> ---------------------------
> Audio track 1 (Stream 0.1, AID 0):
> ---------------------------
> Codec: mp3
> Bitrate: 128000 bits per second
> Sampling rate: 48000 Hz
> =========================================================
>
|