digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Stuttering video ? (http://www.digitalfaq.com/archives/encode/8320-stuttering-video.html)

Paulus 02-24-2004 04:53 PM

Stuttering video ?
 
I converted an xvid .avi to SKVCD MPEG2 but on the stand alone the video is acting weird.

It seams like there are frames "missing". Like the video is "jumping"/actors are moving as in "slow-motion", but not quite.....I don't know how to describe it better.

Strange thing is that the audio is perfectly synch... :roll: :?:

Below is my log................Please don't tell me it's a codec issue :? .........

PS: I used GOP settings 1-25-2-1-24 (source is 23.97 FPS)...

Code:

GENERAL INFO
- Source:                AVI (xvid)
- Movie Offset:                2 sec
- CD Overlap seconds:        No
- Startup delays:        Video: 180 ms Audio 1: 180 msAudio 2: 180 ms
- Video format:                NTSC
- Length:                01:49:14
- CD Images:                1

IMDB INFO:
Movie title:               
User rating:               
Directed by:               
Writing credits:       
Genre:                       
Tagline:               
Plot outline:               

VIDEO INFO:
- Encoder:                TMPGEnc 2.513.53.162
- Rate Control Mode:        Constant quality (CQ)
- Max. bitrate:                2100
- CQ Value                73.00
- Min. bitrate:                300
- Motion search prec.:        Motion estimate search (fast)
- Field order:                Yes
- DC component prec.:        8 bits
- Output YUV as YCbCr:        No
- Floating point DCT:        Yes
- No motion search:        False
- Soften block noise:        No
- iDCT Algorithm:       
- NTSC Field Operation:       
- Deinterlace:                None
- Pulldown:                Yes, TMPGEnc internal
- Width:                352
- Height:                480
- Matrix:
                        Intra:
                        8  9 12 22 26 27 29 34
                        9 10 14 26 27 29 34 37
                        12 14 18 27 29 34 37 38
                        22 26 27 31 36 37 38 40
                        26 27 29 36 39 38 40 48
                        27 29 34 37 38 40 48 58
                        29 34 37 38 40 48 58 69
                        34 37 38 40 48 58 69 79
                        Non-Intra:
                        16 18 20 22 24 26 28 30
                        18 20 22 24 26 28 30 32
                        20 22 24 26 28 30 32 34
                        22 24 26 30 32 32 34 36
                        24 26 28 32 34 34 36 38
                        26 28 30 32 34 36 38 40
                        28 30 32 34 36 38 42 42
                        30 32 34 36 38 40 42 44

AVISYNTH SCRIPT:
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("C:\PROGRA~1\eMule\Incoming\SCHOOL~1.AVI",False)
ConvertToYUY2()
BlindPP(cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
GripCrop(352, 232+124+124, overscan=1, source_anamorphic=false, dest_anamorphic=false)
GripSize(resizer="LanczosResize")
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
GripBorders()
function ConvertToYUY2(clip c){ return isYV12(c) ? c : convertToYV12 (c) }
Textsub("D:\workdirectorymovie\subtitle.srt")


AUDIO INFO:
- Audiostreams:                1
- Audio 1 Language:        Unspecified
- Audio 1 Bitrate:        112
- Audio 1 Sample freq:        44100
- Audio 1 Mode:                Dual channel
- Audio 1 Besweet:        "C:\Program Files\DVD2SVCD\BeSweet\besweet.exe" -core( -input "D:\WorkDirectoryMovie\Encoded_audio_1.mp2.wav" -output "D:\WORKDI~1\Encoded_audio_1.mp2" -logfile "D:\WORKDI~1\Encoded_audio_1.log" ) -ota( -g max ) -shibatch( --rate 44100 ) -2lame( -e -b 112 -m d )

SUBTITLE INFO:
- Subtitlestreams:        0
- Type:                       
- Sub. 1 Language:       
- Sub. 2 Language:       
- Sub. 3 Language:       
- Sub. 4 Language:       

AUTHORING INFO:
- CD Image program:        VCDXBuild
- Entrysvd:                No


Dialhot 02-25-2004 04:54 AM

THere is nothing wrong in this log. Check if the problem wasn't present in the source.

gamma 02-25-2004 04:55 AM

Hi Paul,

Maybe it's because you're using NTSC instead of PAL. It could be your standalone doesn't accept it.

Try AssumeFPS(25) at the end of your script and use a PAL resolution when encoding. Maybe this solves your problem.

Furthermore, a max bitrate of 2100 is quite a lot for the resolution you used. Maybe you should try to up the resolution a bit.

incredible 02-25-2004 05:07 AM

A hint:

If he should speedup the stream he should use

AssumeFPS(25.000,true)
Resampleaudio(44100)

otherweise the audio won't be in sync anymore.

And a max bitrate of 2100 at 352x480 is perfect as thats the 1/2 DVD NTSC Resolution means NTSC CVD

:wink:

Dialhot 02-25-2004 05:30 AM

Pals, I remember you that Paulus do everything with DVD2SVCD so he just have to check the little box "Convert NTSC to PAL" in the soft :-)

incredible 02-25-2004 05:31 AM

:oops: :lol:

Thats where he got that very well detailed log from???
I was wondering :wink:

Paulus 02-25-2004 02:04 PM

....Yeah, still using DVD2SVCD Phil :oops: I guess I'm just too lazy for manual procedure (although I use that sometimes as well..)

the .avi source plays perfect on BSplayer. Other Xvid sources converted correctly after this particular project, so I don't want to "fiddle" with codecs or anything at this point.

My Cyberhome stand-alone can handle NTSC (S)KVCD's perfectly (most of them are NTSC), although I have an issue with quality of permanent subs, but that's another story.....

PS: I mostly use CVD res nowadays, because a lot of times I can't keep the CQ above 70 with SVCD res.

I guess I just need to try it again, maybe my CPU was "overloaded" at the time :roll: and some weird thing happened to the conversion process.......

Or maybe use GOP 1-25-2-1-30 because of Pull down of TMPGenc ?? (source is 23.97 FPS)...

I used to do all conversion with GOP 1-25-2-1-25 eventhough my source was NTSC........Maybe use that ?

Any last advice before next attempt is always appreciatet :lol:

Dialhot 02-25-2004 02:56 PM

Quote:

Originally Posted by Paulus
I guess I just need to try it again, maybe my CPU was "overloaded" at the time :roll: and some weird thing happened to the conversion process.......

That is a urban legend !
Video conversion is a mathematical operation ! Nothing can interfer it. Two encoding done at two different moment will give EXACTLY THE SAME RESULTS.

Quote:

Or maybe use GOP 1-25-2-1-30 because of Pull down of TMPGenc ?? (source is 23.97 FPS)...
The shuttering is on the PC or on your standalone ?
That's sure that the problem can come from pulldown but that has nothing to do with gop length.

Quote:

I used to do all conversion with GOP 1-25-2-1-25 eventhough my source was NTSC........Maybe use that ?
24 is the best, but 25 isn't really a problem.

Paulus 02-26-2004 01:27 AM

.....the stuttering happens on the DVD stand-alone. I think the muxed.mpg file also had this problem on the PC

It's a realy weird effect...like there's a new video picture on the tv every other half second or so.....sometimes in video clips you see this effect, but then it's done deliberately...

I just try again I think and see what happens.....

Paulus 02-29-2004 08:37 AM

Well, second attempt also failed. :evil:

Source plays fine ("fluently") and is an Xvid 23,976. After transcoding the muxed .mpg (29.97 FPS) the movie is still stuttering (video not fluently).

Audio is synch though. It's like during encoding every other video image is removed or something....

Any last advice......?

Dialhot 02-29-2004 09:00 PM

Definitely a pulldown problem. Encode it by hand and not with DVD2SVCD. I really don't know how this one deal with pulldown (I think it uses pulldown flag in tempgenc + use pulldown.exe on the video !)

Paulus 03-23-2004 03:24 PM

I've been real busy at work lately so little time for KVCD work :cry: .

I think a lot of my .avi transcodes were not done correctly (using D2S) indeed. Even the ones without stuttering video. Most of them were encoded as 29,97 fps were they should have been encoded as 23,976 with pulldown. So quality (size) could have been better I think.

I think Incredibles guide (http://www.incredible.de.tf/pulldown.html) explains the (manual) pulldown procedure very good. I'm gonna try it as soon as possible. (I realy want to convert this particular .avi/divx.... :wink: ).

Paulus 03-26-2004 10:37 AM

Damn. :evil: ....The particular Xvid I'm trying to encode now is in 25 Fps so it can't be a pulldown problem this "stuttering" I keep on having on some files....

What Xvid codec is best ? and how to try and solve this problem (remove present codec / re-install codec).

I have ACE codec pack.....Is it's Xvid codec good ?

Dialhot 03-26-2004 10:47 AM

Xvid is the codec that sometimes gives stange framerates that we can see in some source (25.003 insteed of 25 for instance). So I'm not sure the codec is so good on this point. But I really don't know more, i never do MPEG4 myself.

:arrow: did you check if tmpgenc is really using ReadAvs and not DirectShowSource ? Because your problem can be due to the DirectSHowFilter called "Divx antifreeze"

Paulus 03-26-2004 01:26 PM

I am running another encode manually right now (was using D2S before :oops: ).

........Readavs.dll is on top of the list in environmental settings in TMPGenc. Should I uncheck "Directshow MultiMediaFileReader" to be sure it's not used....?

Strange thing is that in TMPGenc the "encode mode" (in settings) was set on "interlace" (? :roll: ). This is strange, because I never use it. Maybe this is not handled correctly by D2S ?

Hope I can report the good news in an hour or so, when I have a "smooth" .mpg......... :wink:

Paulus 03-27-2004 05:46 AM

....well it didn't work......Still the same.

I even started fiddling with setting codec priorities with Zoomplayers codec utilities but also that is no good.

Don't know what to do now.......No one has this experience before with Xvids ?

Dialhot 03-27-2004 08:17 AM

All my xvids are correct ! I don't know if you still deal the the same one from the beguining but you should drop this one.

Note: I encode everything in MPEG1 23.976. But I did also MPEG2 29.970 with pulldown for friends and all was correct.

bigggt 03-27-2004 08:18 AM

Quote:

Originally Posted by Paulus
........Readavs.dll is on top of the list in environmental settings in TMPGenc. Should I uncheck "Directshow MultiMediaFileReader" to be sure it's not used....?

Hi as far as settings in tmpge go you should check here

http://www.kvcd.net/forum/viewtopic.php?t=2223

the last pic has everything unchecked except readavs

As far as xvid's go i have done many with no problems to kvcd only not ksvcd

Paulus 03-27-2004 08:28 AM

I have done maybe 10 - 15 Xvids conversions with no problem. But I have dozens of .avi's which are very rare tv/vhs rips of a 70's tv series and the first episode gives me this problem. Unfortunately I cannot just "drop" these .avi's as they are so unique :cry: .

(PS: same problem also appears on other Xvids so it's not just these particular .avi's)


I keep on searching / trying......maybe "someday" I will have success

Dialhot 03-27-2004 08:51 AM

Perhaps you should try to use an intermediate Huffyuv avi file. The quality won't suffer as it is a lossless codec.
Use Vdub to go from Xvid to Huffyuv and use this one as source for your KVCD.


All times are GMT -5. The time now is 04:46 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.