1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

after encoding an avi to mpeg in tmpge the video is choppy and syncs off with the audio

Discussion in 'CD-R' started by reptile, Jul 1, 2003.

  1. reptile

    reptile Guest

    hi everyone
    i converted an avi to svcd and the video is all choppy after i encode it to mpeg. the original file was a dvdrip.divx file movie.

    am i doing something wrong?


    thank you
    joe
     
  2. frankusho

    frankusho Member

    Joined:
    Jun 30, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    11
  3. reptile

    reptile Guest

    ok i did what the guide told me by extracting the audio, but i still get a choppy mpeg. it syncs out i made sure it was ntfs film for the 23,987 or whatever the framerate was.

    can anyone help??

    thank you
    joe
     
  4. Praetor

    Praetor Moderator Staff Member

    Joined:
    Jun 4, 2003
    Messages:
    6,830
    Likes Received:
    1
    Trophy Points:
    118
    IS it an ntsf film? Does anything change if you use pal framrate?
     
  5. reptile

    reptile Guest

    i tried pal ntfs and ntfs film all dont work :O(
     
  6. Praetor

    Praetor Moderator Staff Member

    Joined:
    Jun 4, 2003
    Messages:
    6,830
    Likes Received:
    1
    Trophy Points:
    118
    Are you resizing the movie when you convert to AVI to MPG? If so, try resizing it and leave it as an AVI and then convert to MPG
     
  7. Shoey

    Shoey Guest

    If the AVI your encoding has a widescreen Aspect Ratio of 2.3:1, , DVD2SVCD does not have this as a setting to automate the encoding and it has to be adjusted manually, though it does get it right sometimes!
    a. In the Conversion tab, change the aspect ratio set to 16:9.
    b. Click on the Frameserver tab and change the Edit the Avisynth Script file to Edit as part of Video encoding.
    c. Now start the conversion as usual.
    d. Stay with the encoding and after the Audio has been extracted & converted and just before the actual encoding start, an AviSynth script window will pop up. In here we have to modify the numbers, this example will explain. Once the correct numbers have been entered, the AddBoarders statement added, then hit the Save button and then the OK button. The encoding will now continue as usual and result in the correct aspect ratio for the movie. Our AVI had dimensions of, say, 512 x 224 ( X x Y ) as found above. This needs to be resized for a SVCD to 480 x 576 for PAL or 480 x 480 for NTSC. But the pixel aspect ratios of a PC monitor and a PAL or NTSC TV are not the same. PC Monitor pixels have a square pixel aspect ratio of 1:1 but pixel aspect ratio for PAL TV is 54:59 and for an NTSC TV is 11:10.

    So the correct resizing parameters for our AVI in this example would be:

    For PAL AVI:

    Calculated height = ((720 / X) x Y) / (54 / 59)
    =((720 / 512) x 224) / (54 / 59)
    = 344.16

    So the correct "Resize" statement in the AviSynth script would be:
    ...
    BiCubicResize(480,344,0.00,0.60)
    ...

    where the Calculated height of 344.16 has been rounded to 344 to be divisible by 4 (even better if divisible by 16).

    Then we add borders on top and bottom to fill the height up to 576 pixels.

    Correct borders = (576 - Calculated height) / 2
    = (576 - 344) / 2
    = 116

    So the correct "AddBorders" statement in the AviSynth script would be:
    ...
    BiCubicResize(480,344,0.00,0.60)
    AddBorders(0,116,0,116)
    ...

    For NTSC AVI:

    Calculated height = ((720 / X) x Y) / (11 / 10)
    = ((720 / 512) x 224) / (11 / 10)
    = 286.36

    So the correct "Resize" statement in the AviSynth script would be:
    ...
    BiCubicResize(480,288,0.00,0.60)
    ...

    where the Calculated height of 286.36 has been rounded up to 288 to be divisible by 4 (even better if divisible by 16).

    Then you have to add borders on top and bottom to fill the height up to 480 pixels.

    Correct borders = (480 - Calculated height) / 2
    = (480 - 288) / 2
    = 96

    So the correct "AddBorders" statement in the AviSynth script would be:
    ...
    BiCubicResize(480,288,0.00,0.60)
    AddBorders(0,96,0,96)
    I would strongly suggest not to convert widescreen 2.3:1 acpect ratio AVI's to 16:9 SVCD's. You are struggling to maintain SVCD quality from a DivX, and chopping off any part of the pic is only going to make things worse, not better.

    Shoey :)



     
    Last edited by a moderator: Jul 2, 2003
  8. reptile

    reptile Guest

    k so if im not mistaken all these instructions are to be done in the program dvd2vcd? or in tmpge..

    thank you
    joe
     
  9. Shoey

    Shoey Guest

    DVD2SVCD& CCE (Cinema Craft Encoder)

    Shoey :)
     
  10. reptile

    reptile Guest

    shoey, how do i load my avi into dvd2svcd??
     
  11. Shoey

    Shoey Guest

    Open DVD2SVCD>Misc. tab folder and down near the bottom change input file type to AVI.
    ===============================================
    [bold] Checking the AVI file [/bold]
    1. Every version of Windows comes with Windows Media Player (WMP), so we will use that to check the file. You will need version 7 or better installed.

    2. If the DivX is on a CD, copy it to your Hard Drive.

    3. Run Windows Explorer, locate your DivX file, and RIGHT Click on it. From the windows that opens, go to Properties, then Summary. You will now see all the characteristics of the file. Write down the Frame Width and Height as we may need them later on and note the Data rate. If data rate is less than 100 kb/s, I would not suggest you continue. Also if the width is less than 480, I would also suggest you dont continue. The quality of these AVI's are poor and converting to a SVCD will only yield poor results. Convert these to VCD instead.

    4. You can use the Frame width and Frame height (from above) to work out the Aspect ratio of the movie but the simplest is to actually play it full screen. So play it in WMP, and hit Alt-Enter to get to full screen display. If there are no black bars top or bottom, then its a 4:3 full screen. On a 15" monitor, if there is about 1 1/4" or 3cm of black bars top and bottom of the screen, then its a 16:9. If there is about 2" or 5cm of black bars then its a 2.3:1 These 3 variations cover 99% of all movies.
    ===============================================
    [bold] SVCD Conversion [/bold]
    1. Run DVD2SVCD. It may complain it cannot find CCE, so click the Encoder tab and then browse your HD for CCE (cctsp.exe) depending on where you installed it. This will happen 1st time it is run only.

    2. Click the Misc. tab, then select the Input File Type to be AVI. Then click Default Output folder to select the Output folder where all the files will go. Leave Dont Delete any Files ticked (not important if you dont) as sometimes you can recover an interupted encode, etc. Change DVD2SVD Level to Advanced. Then check the box next to Convert divx3 to divx4 ( can resolve CCE problem) as it can help converting DivX3 encoded AVI's with no problems.

    3. Click the Conversion tab, and load in the AVI file. It will indicate its length and select an Aspect ratio mode and mark the Audio track. There is no Cut or Trim features here. I do not recommend ticking NTSC to PAL box unless you like jerky movies. DVD2SVCD still has problems with most AVI's setting the correct aspect ratio. It tends to select 4:3 (No borders, encoded as 4:3). Change this to 16:9 (borders added, encoded as 4:3) if you found it above to be 16:9. If you found it to be widescreen 2.3:1, there is no option for this and has to be set manually. See Note 1 below.

    4. Click on Finalize Tab, there is nothing in here to change.

    5. Click the CDImage tab. If you don’t want any fancy Chapters or Title pictures, etc, just click Don’t Make Images and you will end up with 2-3 MPG files ready to burn with Nero. If you do want to include Chapter and/or Title Pictures, then select VCDXBuild. The default ChangeCD pic is excellent. Enter a CD Label, such as THE_DISH. If you click on Movie info (IMDB), it will extract all the movie data (Directors, actors, etc) and the DVD front picture from _www.imdb.com for inclusion on the CD if you have an internet connection. Click on Include movie info on CD to include this info on the CD. For Fixed Chapters, select a number in seconds that you want each chapter point to be set to. I use 240 (4 min.) so I get about 10-12 per CD.

    6. Click the bbMPEG Tab, there is nothing to change except maybe the CD overlap in Seconds. Change to suit your own preferences.

    7. Click the Pulldown Tab, there is nothing to change or setup in here. This will run Automatically if a 23.976fps NTSC framerate is found.

    8. Click the Audio Tab. Leave Audio downsample 48 -> 44.1 ticked as this makes a fully compliant SVCD. However, leaving it unticked will produce a better quality Audio playback, but if you burn the MPG file with Nero it will say its non-compliant and you will have to turn compliance off. All DVD Players (and now 99% of PC's) can play 48kHz audio. Change Audio Bitrate from the default 160bps if you wish but the higher it is, the lower the Video bitrate is used to fit it onto the CD's. Most DivX have been encoded with low Audio bitrates anyway. The box for Autodetect Azid Gain (2 pass) should be ticked as this with Normalize the audio sound level.

    9. Click the Frameserver tab and select Resize Method to be Bicubic Resize. Click on Sharpen and enter its value as 0.4. Make sure Resize is set to SVCD ('cause tha’ts what we are making folks!). At the end of the MPEG2Dec line, click the small [...] button and from the ..\DVD2SVCD\MPEG2Dec folder, select MPEG2DEC2.dll This can solve some decoding issues and I find it faster as well (only needs to done the first time you run DVD2SVCD).

    10. Click the Bitrate tab to see the number of CD's and their size for the movies length. Leave these at default initially, just un-select Min Avg if its ticked. DVD2SVCD calculates the bitrate automatically for you to just fit onto your CDR's. But I would suggest you change all the 740 to 800 and use ONLY 80min CDR's.

    11. Click the Encoder tab and make sure Cinema Craft Encoder is selected (and not TMPGEnc). Multipass VBR should be set at 3 for best results. Click on the Advanced button and un-select all MPEG2 Video Settings. If you are encoding a small 43min episode to fit to one 80min CD, then I would suggest ticking CBR instead of VBR 3 pass, as encoding time will be dramatically reduced and quality basically the same. Give it a try and compare. But if you have a 120min movie and trying to fit to 2 CD's, stay with VBR, or better still change to 3 CD's for a substantial improved quality SVCD.

    12. All is now setup and we are ready to begin the encodeing. If you intend to be doing a few movies, all the setup above needs to be done once and will remain set to the same settings next time you run DVD2SVCD. Next time you will only need to load the AVI in, set folder to save to and change CDImage info.

    13. Click the Conversion tab again and if all is ready, click the GO button. Click Start Conversion then confirm with OK.

    14. Go to sleep, work or school as this process may take a long time. On a P700 it can take over 24hrs with a 4pass VBR encode! On an Athlon 1800, most movies convert 3pass VBR in 5-7 hours.

    15. When finished you will have in the default folder you selected, about 20-30+ files. There will be 2-3 MPG files like bbMPEG_Muxed_File00.mpg if you did not make an image. You will have 2-3 BIN & CUE files like CD_Image_File_CD1.bin if you did.

    16. Play them with WinDVD (or your favorite SVCD player software) to check them for lip sync near start and finish of each file and any other problem, like incorrect Aspect ratio. If your made an Image file, load it into Daemon Tools CD Image and run the MPG file from there.

    17. You have now made your first SVCD files and all that's left is to burn them.


    Shoey :)

     
  12. reptile

    reptile Guest

    hi shoey
    thanks for the great response.
    i have only one problem when i load my avi it says i have the wrong version of dvd2svcd?

    i downloaded the one that was with the link is there another one i need??


    thank you
    joe
     
  13. reptile

    reptile Guest

    hello
    i downloaded an older version 1.0.9
    it works ok
    only thing is when encoding using cce i got a couple of error messages saying that a sector could not be written to on the drive and it was error code 1x od xc something like that.

    i clicked ok and it went on encoding..
    is this something that i should worry about or is it ok?

    thank you for all the help so far, this program is actually really neat!


    joe
     

Share This Page