User User name Password  
   
Monday 23.12.2024 / 12:08
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > digital video > digital video discussion for mac users > guide for video_ts to divx - using ffmpegx
Show topics
 
Forums
Forums
GUIDE for VIDEO_TS to DIVX - using ffmpegx
  Jump to:
 
Posted Message
Senior Member
_
16. August 2005 @ 15:38 _ Link to this message    Send private message to this user   
got this together from the ffmpegx site

http://homepage.mac.com/major4/videots_divx.html

This guide provides a step-by-step process to encode a non -encrypted VIDEO_TS folder into a DivX 4/5-compatible .AVI file. To comply with applicable laws, ffmpegX can't read a DVD encrypted disk device.

Selecting the source movie:

Let's assume that you have created your own DVD with Apple DVD Studio Pro or Sizzle. Now you want to encode this DVD into a DivX4/5-compatible .AVI file.
First locate the source movie in your hard disk. A VIDEO_TS folder contains the full movie structure with all audio tracks and subtitles. This will give access to more options than if you were encoding a VOB file.



Select the VIDEO_TS folder from your hard disk in the Open field. You may use the Open.. button, or drag and drop the VIDEO_TS folder over the application icon. You may experiment a short delay while the movie is scanned for a check.



After the movie autoscan, the information line above the Open.. field will be updated, and image size and framerate will be automatically set to match the input movie.



A default "Save as..." name is set by ffmpegX. If you want to change it, edit the Save as.. field or click the "Save as.." button to choose a location and name for the output movie. If you don't add the file extension, ffmpegX will add it automatically at encoding time.



Click on the "Quick presets" pulldown menu and choose DivX (libavc, mencoder). The codec used by this preset is "libavc" which is one of the best existing mpeg-4 codecs in terms of image quality.

Cropping:

In the "Video" tab, set "Autosize" to the movie aspect ratio. Normally this is 2.35:1 for a feature movie, 16:9 for widescreen video and 4:3 for standard video.



Go to the "Filters" tab and click "Autocrop" to automatically calculate crop values in order to cut away black bars from the source. This button also sets the default image size. The Autocrop analysis is done at the "Start from: 00:30 min:sec" point to avoid to analyze black images at the beginning. You may need to change this checkpoint if it contains black images.



Autocrop will also launch a preview movie to show the crop area. You may also click "Preview" to preview the crop area again after changing manually the crop values. The crop area will show as a white hairline rectangle. Press the RETURN key to stop previewing.



Setting image size and bitrate

We're now going to use the calculator to set the video bitrate. First enter the duration of your source movie and define the media where you're going to store the resulting movie. For example, 1 CD of 80 min mode-1 (always choose mode-1 or data-cd for .avi files).
Click the "Auto" button. It will calculate both video bitrate and image size for optimal image quality.



In this example, we set a movie duration of 91 minutes and ask to fit the resulting .avi file in one 80 min CDR (700MB). After clicking "Auto", the calculator has set a 933 kbit/s bitrate and an image size of 624x256.
Don't try to fit too much minutes in a small CD size, or the opposite, few minutes in a big size, and note the following:
if the resulting horizontal image size is lower than 480 you will obtain less than SVCD quality, and if it is lower than 240 you will obtain less than VCD quality, so in such cases you should consider to increase the media size (eg use two CDs instead of a single one).
you should never encode by using an image size greater than the source image size.
Please understand that the bitrate calculator only gives a forecast, and pretty much like weather forecasts, it can be wrong. This is because the encoder will react differently to simple scenes (ie talking heads) and to complex scenes (ie detailed images in high motion) and depending from the quantizer settings, this variation in the content may lead to variations in the bitrate. The calculator takes into account the audio and its bitrate.


Select title/chapter/angle to be encoded as you require. Use the "play" button to check.

Setting the audio track

Go to the Audio tab to select audio options.
Audio codec is normally MP3. If you prefer to keep the source AC3 track, select AC3 (in that case, the source AC3 will be copied 'as is' without any re-encoding, so make sure to set 448 as audio bitrate when using the bitrate calculator).
Select the audio track from the audio track popup menu. (When selecting a VIDEO_TS folder with the Open.. button, it is scanned for available audio tracks and they are displayed in the Audio track popup menu, including details on the file format (mpeg1 or AC3) and the language).


After selecting the audio track, you can use "Play" to check if you hear the good track.

Subtitles:

If you don't want to extract a subtitles stream from the source, you can skip this step and proceed to the next step.
Go to the "Filters" tab.
Select the subtitle track from the subtitles popup menu. (When selecting a VIDEO_TS folder with the Open.. button, it is scanned for available subtitles and they are displayed in the Subtitles popup menu, including details on the language).



After selecting the subtitle track, you can use "Preview" to preview the subtitles.

Set which will extract the subtitles to a VobSub file (this will let you playback the DivX movie with subtitles).

Setting custom encoding options:

If you want high quality, turn on some of the advanced options in the Options tab. As a general rule, the more option you use, the slower the encoding and the better the quality. You can use "5 sec test clip" and "Print PSNR" to compare encoding speed and signal/noise quality to help you choose the best quality/speed settings. Popular settings to increase quality are "High quality", "Trellis quantization", Scaling method = "Bilinear" and ME Function = "SSE". Adding "B-frames" will optimize filesize as B-frames take less space. The "Quarter Pixel ME" also increases quality but some hardware DivX players don't support it.
If you don't mind the extra time, decide if you want to use 2-pass or 3-pass encoding in the Options tab. 2-pass will optimize quality, 3-pass will optimize bitrate control to fit in given number of CDs. In 3-pass mode, the first pass will run with a spinning progress indicator for about one hour before releasing control to the Progress window.
When you found the best options for your movie, use "SAVE PRESET" in the File menu. It will store your encoding options in a file template that you can load again later to restore the same options (by using the "LOAD PRESET" option, or by drag-dropping the preset file over the ffmpegX icon).



Encoding:

Click the "Encode" button.
Encoding takes places in ffmpegX Progress window.



You can continue working with other applications while encoding. OSX Unix core reallocates processor ressources in realtime as needed.


ok.. i know its wrong for me not to test this before posting.. but i promise to asap and post comments.



This message has been edited since posting. Last time this message was edited on 16. August 2005 @ 15:39

Related links
Download the latest version of DivX codec from AfterDawn.com!
Get FFSHOW from here -- free DirectShow filter for watching DivX movies, faster than original DivX codec!
Read AfterDawn.com's DivX guides from here.
 
Related forum topics Posts Last post Forum room
your opinion that Divx is no Longer standard ???? 3 29. December 2013 Video - Software discussion
DivX codec, trying to remove watermark from all encodes! 6 18. April 2013 Video - Software discussion
anyone have a panaonic dmp-bd75? -I can't get divx to work 1 7. June 2012 Blu-ray players
What kind of .avi format do Divx DVD players use? 3 1. April 2012 Convert video to another format
divx and any video converter 3 19. March 2012 Convert video to another format
help needed with playing divx on surround system 1 28. January 2012 Receivers and amplifiers
Divx buffering problem 0%-100% 1 26. November 2011 Video playback problems
DivX USB DVD player - judder in certain scenes...water, live music etc.... 5 21. November 2011 DVD players
Samsung DVD Recorder DivX 2 13. November 2011 DVD recorders
want to convert h.264 video file to divx 3 4. September 2011 Convert video to another format

 
afterdawn.com > forums > digital video > digital video discussion for mac users > guide for video_ts to divx - using ffmpegx
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2024 by AfterDawn Ltd.

  IDG TechNetwork