User User name Password  
   
Sunday 29.12.2024 / 14:28
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > archived forums > cd-r > after encoding an avi to mpeg in tmpge the video is choppy and syncs off with the audio
Show topics
 
Forums
Forums
after encoding an avi to mpeg in tmpge the video is choppy and syncs off with the audio
  Jump to:
 
Posted Message
reptile
Suspended due to non-functional email address
_
1. July 2003 @ 13:47 _ Link to this message    Send private message to this user   
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
Advertisement
_
__
frankusho
Newbie
_
1. July 2003 @ 15:50 _ Link to this message    Send private message to this user   
reptile
Suspended due to non-functional email address
_
1. July 2003 @ 21:12 _ Link to this message    Send private message to this user   
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
Praetor
Moderator
_
2. July 2003 @ 08:17 _ Link to this message    Send private message to this user   
IS it an ntsf film? Does anything change if you use PAL framrate?

ASUS A8V Deluxe, A64-3500 @ 2.65
1GB KingMax PC3700
640GB [4x160GB, 7200, 8MB]
XFX 6800GT 256MB
Rules and Policies: http://forums.afterdawn.com/thread_view.cfm/2487
reptile
Suspended due to non-functional email address
_
2. July 2003 @ 09:09 _ Link to this message    Send private message to this user   
i tried PAL ntfs and ntfs film all dont work :O(
Praetor
Moderator
_
2. July 2003 @ 09:31 _ Link to this message    Send private message to this user   
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

ASUS A8V Deluxe, A64-3500 @ 2.65
1GB KingMax PC3700
640GB [4x160GB, 7200, 8MB]
XFX 6800GT 256MB
Rules and Policies: http://forums.afterdawn.com/thread_view.cfm/2487
Shoey
Suspended due to non-functional email address
_
2. July 2003 @ 14:32 _ Link to this message    Send private message to this user   
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 :)




Asus K8N nVidia nForce3 Pro 250 GB, Athlon 64 3200+, Hitachi 80 gig SATA 150, Corsair XMS 1 gig PC4000, ATI Radeon Saphire 9600 Pro (256 DDR), Windows XP Pro (64 Bit),Lite-ON SOHD 167T,, Plextor PX-712SA,BenQ 1640.

This message has been edited since posting. Last time this message was edited on 2. July 2003 @ 14:34

reptile
Suspended due to non-functional email address
_
3. July 2003 @ 07:01 _ Link to this message    Send private message to this user   
k so if im not mistaken all these instructions are to be done in the program dvd2vcd? or in tmpge..

thank you
joe
Shoey
Suspended due to non-functional email address
_
4. July 2003 @ 04:54 _ Link to this message    Send private message to this user   
Quote:
so if im not mistaken all these instructions are to be done in the program dvd2vcd? or in tmpge..
DVD2SVCD& CCE (Cinema Craft Encoder)

Shoey :)
reptile
Suspended due to non-functional email address
_
6. July 2003 @ 23:15 _ Link to this message    Send private message to this user   
shoey, how do i load my AVI into DVD2SVCD??
Shoey
Suspended due to non-functional email address
_
7. July 2003 @ 00:54 _ Link to this message    Send private message to this user   
Open DVD2SVCD>Misc. tab folder and down near the bottom change input file type to AVI.
===============================================
Checking the AVI file
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.
===============================================
SVCD Conversion
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 :)

reptile
Suspended due to non-functional email address
_
7. July 2003 @ 21:56 _ Link to this message    Send private message to this user   
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
Advertisement
_
__
 
_
reptile
Suspended due to non-functional email address
_
8. July 2003 @ 00:00 _ Link to this message    Send private message to this user   
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
afterdawn.com > forums > archived forums > cd-r > after encoding an avi to mpeg in tmpge the video is choppy and syncs off with the audio
 

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