What is the proper procedure to deal with .AVI files with aspect ratio different from the standard DVD (720x480) so that the video will appear CENTERED when playing with a DVD player?
I tried changing the size of the video in the :video: tab. This works, but when I play the DVD it appears in the upper left corner, with large black lower and right borders. That is not what I wanted....
Used ffmpegX, AVI to DVD (ffmpeg), then burn with Toast 9.0.2.
Thanks.
Results 1 to 17 of 17
-
-
Originally Posted by Case
660x352
ffmpegx then complains that 660 is not divisible by 16, so I changed that to 656. The resulting DVD also has some problem at the right edge, which has some black and white border.
-
You will have to upscale a bit, as DVD supports a few very specific resolutions. DVD resolutions are build on rectangular pixels.
Your movie aspect ratio is 660:352 = 1.875:1 .
DVD is either 4:3 or 16:9, so we'll take the closest, 16:9 = 1.778:1 .
Your movie is slightly more wide than 16:9, so the end result will have small letterbox bars to make it 16:9. DVD NTSC resolution is 480 px high, so your movie will be around (352/660)*(16/9)*480 = 455. ffmpegX requires the letterbox size to be an even number, so we end up with 12 + 456 + 12 = 480.
That is pretty small letterboxing, so you could ignore it, but for the sake of argument, let's be precise.
Open your file in ffmpegX. Select the DVD ffmpeg preset. In the Video tab, set Autosize to DVD 16:9. Change to the Video size to 720x456. In the Filters tab, Image filters, set Letterbox to 12, 12, 0, 0. Encode.
If you think the calculation are too complicated and you don't mind a bit longer encoding time, then you could activate Decode with QuickTime in the Options tab (with Letterbox), which will ignore the settings in the Filters tab and letterbox automatically. In that case, set DVD 16:9, but leave the size at 720x480.
-
Thank you Case for the detailed explanation.
Unfortunately, it does not work.
Besides the minor problem I mentioned before, the first DVD I made played perfectly in a DVD player (Philips).
In my second attempt, following your instructions, I produced an .ff.mpg file that has the correct aspect ratio and letterbox borders, and plays perfectly in VLC. The VIDEO_TS folder inside the .ff.mpg.DVD folder also plays and looks perfect in VLC, but does not play in Apple's DVD Player (the audio plays, but the video is stuck after about 10 s).
Unfortunately, the DVD I burned with Toast is unplayable in the DVD player: The sound interrupts just about every 0.5 seconds! This is the same problem I had the first time I tried to use ffmpegX to make a DVD from an .AVI file: While it plays fine on the computer, I never managed to make a DVD that is playable in a hardware DVD player.
This is all very frustrating. So close and yet so far...
-
Hmm, that should have worked. A successful conversion should play in Apple DVD Player, in my experience.
Time for getting some details...
What is the duration of your movie?
What is the framerate of your movie?
What did you have set for the conversion bitrate (video, audio)?
What is the file size of the output .mpg file?
When you drop the output .mpg back on ffmpegX, what does the Summary say?
-
Originally Posted by germ
Unfortunately the DVD ffmpeg preset does not provide a direct way to apply the pulldown to the video.
I would suggest using the DVD mpeg2enc preset, which does have a setting for applying a pulldown with the encoding.
You could use the ffmpeg encoded .mpg file, but it's quite a bit more work.
-
OK, I am now trying with mpeg2enc, as you suggested. One problem is that there is no "letterbox" option.
I checked the "Set 3:2" in the Options tab (I presume this will add the 3:2 pull-down).
Unfortunately, it did not work: Encoding terminated right away. Here is the log:
Encoding started on Sun Apr 6 11:13:25 PDT 2008
INFO: [yuvscaler] yuvscaler 1.9.0 (15-02-2004) is a general scaling utility for yuv frames
INFO: [yuvscaler] (C) 2001-2004 Xavier Biquard <xbiquard@free.fr>, yuvscaler -h for help, or man yuvscaler
movtoy4m
Copyright 2002-2006 Johan Lindström
All rights reserved..
/bin/sh: /Library/Application Support/ffmpegX/mpeg2enc: Malformed Mach-o file
++ WARN: [yuvscaler] Could not infer norm (PAL/SECAM or NTSC) from input data (frame size=720x456, frame rate=24000:1001 fps)!!
INFO: [yuvscaler] input: frame size: 720x456 pixels (492480 bytes)
INFO: [yuvscaler] input: chroma: 4:2:0 JPEG/MPEG-1 (interstitial)
INFO: [yuvscaler] input: frame rate: 24000/1001 fps (~23.976024)
INFO: [yuvscaler] input: interlace: none/progressive
INFO: [yuvscaler] input: sample aspect ratio: 1:1
INFO: [yuvscaler] from 720x456, take 720x456+0+0, NOT_INTERLACED/PROGRESSIVE
INFO: [yuvscaler] scale to 720x456, 720x456 being displayed
INFO: [yuvscaler] Scaling uses the RESAMPLE algorithm,
INFO: [yuvscaler] frame rate: 23.976 fps
INFO: [yuvscaler] Scaling ratio for width is 1 to 1
INFO: [yuvscaler] and is 1 to 1 for height
INFO: [yuvscaler] Specific downscaling routing number 4
Looks like it does not like my mpeg2enc binary. I tried re-installing the mpeg2enc.intel, but still the same error.
Any ideas?
-
Originally Posted by germ
Originally Posted by germ
Originally Posted by germ
Originally Posted by germ
1. Download mpeg2enc.intel to your desktop. The file should be 501,480 bytes.
2. If the Components Self-Installer window doesn't come up after launching ffmpegX, force the window by selecting "Install binaries" from the ffmpegX menu.
3. Missing or wrong size binaries are presented in red and should be replaced.
4. Make sure the checkbox for mpeg2enc is set.
5. Use the locate button to select the downloaded mpeg2enc.intel.
6. Verify that the URL to the right of the Locate button has changed to the local location.
7. Enter your admin password.
8. Click "Install". The installer will change the binary's properties to make it a proper Unix Executable and copy it to the designated folder.
-
Tried your steps to the letter.
Same error message: malformed Mach-o file.
Verified that ffmpegX installed mpeg2enc binary inside /Library/Applications Support/ffmpeg/
Here's the content of that folder:
Code:drwxr-xr-x 21 user2 admin 714 Apr 6 14:02 . drwxrwxr-x 52 root admin 1768 Feb 29 20:33 .. -rw-r--r-- 1 user1 staff 6148 Apr 6 14:02 .DS_Store -rwxr-xr-x 1 user1 admin 281028 May 15 2004 gocr -rw-r--r-- 1 user1 admin 500 May 15 2004 gocrfilter_en.sed -rw-r--r-- 1 user1 admin 361 May 15 2004 gocrfilter_fr.sed -rw-r--r-- 1 user1 admin 271 May 15 2004 gocrfilter_nl.sed -rw-r--r-- 1 user1 admin 67 May 15 2004 gocrfilter_none.sed -rwxr-xr-x@ 1 user1 staff 16655780 Apr 29 2006 mencoder -rwxr-xr-x 1 user1 staff 244832 May 15 2004 mp2enc -rwxr-xr-x@ 1 user1 staff 501480 Apr 6 14:02 mpeg2enc -rwxr-xr-x@ 1 user1 staff 15869784 Apr 29 2006 mplayer drwxr-xr-x 84 user1 staff 2856 Jan 27 20:25 reallib drwxr-xr-x 64 user1 user1 2176 Dec 1 2005 reallib_new drwxr-xr-x 50 user1 staff 1700 Oct 27 2005 reallib_old -rwxr-xr-x 1 user1 admin 22596 May 15 2004 subtitle2pgm -rwxr-xr-x 1 user1 staff 286168 Jul 17 2004 tcextract -rwxr-xr-x 1 user1 staff 589400 May 15 2004 vcdxbuild -rwxr-xr-x 1 user1 staff 568908 May 15 2004 vcdxgen -rwxr-xr-x 1 user1 staff 113352 May 15 2004 yuvdenoise -rwxr-xr-x 1 user1 staff 314968 May 15 2004 yuvscaler
-
Originally Posted by germ
On a "ls -l -F", these should have a "*" mark behind them, telling that they're executable.
Also, these three have Owner: system (root), Group: admin on my list, not user1, staff.
Were you logged in with an Administrator account while installing the binaries?
-
The @ means that the file has "extended attributes". The @ only shows in Leopard, so on your system, you would not see it (I am not sure if Tiger's Finder would set the attributes). You can read attributes with xattr. You can see the attributes keys using ls -l@. In my case:
Code:-rwxr-xr-x@ 1 user1 staff 501480 Apr 6 14:02 mpeg2enc com.apple.metadata:kMDItemFinderComment 93 com.apple.metadata:kMDItemWhereFroms 96 com.apple.quarantine 78
So, in summary the @ is nothing to worry about.
I have replaced my actual name with user1 just for posting to this forum.
The binaries do have an asterisk when running ls -l -F.
The owner does not matter, as the execution permissions are set for group and world. I believe the "staff" instead of "admin" default group is another Leopard difference. Yes, user1 has admin privileges (again, that's irrelevant here) and was used to install the binaries and is used when running ffmpegx.
Perhaps we should change the title of this thread to "mpeg2enc binary not working: Malformed Mach-o file error".
-
Problem solved. It's Safari. Somehow Safari does not download the mpeg2enc binary properly. This is with version 3.1 (5525.13).
BTW, I am not the only one having this problem: https://forum.videohelp.com/topic338080.html.
This post put me on the right track: http://support.gams-software.com/doku.php?id=installation:how_do_i_install_the_gams_ve..._for_macintosh
Downloading the mpeg2enc with Camino resulted in a success (the downloaded file has a Quicktime icon, while with Safari it gets an "empty" icon). The md5 checksum of the proper mpeg2enc binary is:
Code:MD5 (mpeg2enc) = 7cad2f12971a2e69535778b56b3f9485
I am now encoding to DVD using mpeg2enc. Will keep you posted on how that goes.
For now, thanks for all the help you have given me.
-
Originally Posted by germ
Despite all the reasons for Safari being a great browser,
downloading files is too often a let-down.
-
Similar Threads
-
Aspect ratio problem: Converting 2.35:1 AVI to DVD w/out squishing
By Calidore in forum Authoring (DVD)Replies: 31Last Post: 1st Apr 2015, 11:33 -
AVI to DVD aspect ratio always wrong
By Focaldesign in forum ffmpegX general discussionReplies: 22Last Post: 26th Jan 2009, 18:18 -
Keep 16:9 aspect ratio from AVI to DVD through ConvertXtoDVD and Nero
By Oregondanne in forum Newbie / General discussionsReplies: 2Last Post: 6th Aug 2007, 20:06 -
AVI to DVD..... vary aspect ratio
By GJF in forum Video ConversionReplies: 5Last Post: 10th Jul 2007, 05:03 -
720x576 avi files lose their aspect ratio when played on DVD player
By tzikeh in forum Authoring (DVD)Replies: 1Last Post: 24th May 2007, 01:47