Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 ASP

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th October 2003, 18:23   #1  |  Link
yossarian82
Guest
 
Posts: n/a
DivX encoded movie w/erratic playback

Hi, encoded a movie in DivX 5.05 and i got a weird problem that hasn't happened with any of my other movies. Basically the movie isn't playing smoothly, it seems to pause at regular intervals (say every second or so) but not stop completely, just slow down slightly then go back up to normal speed then slow down again 1s later then speed up again etc etc. a bit like if you were playing a video tape and tapping your finger down once every second on the tape to slow it down regularly (but not holding it down, just tapping it). hope that's clear :P

I'm thinking perhaps something to do with the player trying to keep the visuals in time with the audio b/c something has gone wrong with the encoding? anyway i have other movies encoded with exactly the same methods (DivX 5.05 for the visuals, mp3 for the sound) that don't have the same problem...

thanks for any help...
  Reply With Quote
Old 12th October 2003, 03:25   #2  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Hi-

I'm thinking perhaps something to do with the player trying to keep the visuals in time with the audio...

Yes, that's the first thing I thought of also, as I was reading your post. You can test this easily. Take the video without audio included (or make one by direct streaming the movie without the audio) and play it. If it plays smoothly, then it's almost certainly the audio interleaving, or something wrong with the audio itself. There's a fair chance that it can be fixed by direct streaming the audio and video with VDubMod or NanDub with default interleaving settings. If not, maybe reencode the audio.
manono is offline   Reply With Quote
Old 17th October 2003, 10:04   #3  |  Link
yossarian82
Guest
 
Posts: n/a
thanks, i'll try that
  Reply With Quote
Old 22nd October 2003, 13:54   #4  |  Link
yossarian82
Guest
 
Posts: n/a
hmm ok so i ripped a section of video from the movie and encoded it, in Vdub, with 5.05 sans audio. and... still getting the erratic playback! the thing is it's not like a speedup, which is what you'd expect perhaps from an audio sync problem... it's more like it's stopping every second or so, for a fraction of a sec. i'm really stumped now :/

i've tried looking for errors or whatever; nothing. i don't *ahem* have the source file anymore so re-encoding from source is not an option. so... perhaps there's a filter or something i can run it thru, in Vdub, that'll smoothen the video out? desperate now
  Reply With Quote
Old 22nd October 2003, 14:38   #5  |  Link
Tuning
I'm back! :D
 
Tuning's Avatar
 
Join Date: Aug 2003
Location: The Matrix
Posts: 1,029
I think this is the same problem I had encountered.That is illegal PAL -> NTSC conversion problem.Look here how i overcame it:here
You need to use RePAL filter.Look to the posts made by manono.He was the helping hand.



-Tuning
__________________
My Blog

Last edited by Tuning; 22nd October 2003 at 14:41.
Tuning is offline   Reply With Quote
Old 22nd October 2003, 14:39   #6  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Hi yossarian82,

Have you put something new on your PC, like the DivX player 2.5. Or did you upgrade to DivX 5.1.0 and then go back to 5.0.5!

I only ask because I've just installed DivX 5.1.1 beta1 (admittedly on an 800MHz P3) but now all my old DivX encodes are choppy!

Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 22nd October 2003, 20:25   #7  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Hi-

You haven't said whether you're PAL or NTSC. If PAL, they sometimes convert from NTSC by adding one frame in every 24 (one every second). If you open the .avi in VDubMod, you can check to see if every 25th frame is a duplicate.

If you're NTSC and IVTC'd, then Tuning may have the answer (except it's not illegal, just stupid ). Or maybe it's interlaced, and you shouldn't have IVTC'd at all. Or it may be something different, as SMD's implying. Have you tried different players or different decoders (ffdshow) to try and duplicate the problem?
manono is offline   Reply With Quote
Old 22nd October 2003, 20:54   #8  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
I forgot to mention.

If you do find that you have two (or more) DivX codec 'config.exe' files. You will have to disable 'post-processing' in the 'Decoder Properties' in one of the 'config.exe' files!

Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 24th October 2003, 18:49   #9  |  Link
yossarian82
Guest
 
Posts: n/a
Ok, just to clarify - the movie is encoded from a PAL source. i'm using the normal FPS rate of PAL (i think its 25fps), however this duplicate frame thing does sound interesting...

it seems a little too technical for me tho, i've no idea what half this stuff is going on about...? how do i remove the duplicate frames without messing up the fps rate?

also i'm using ffdshow atm i think... i'll check and see if the prob duplicates with other playback filters

thanks for your help
  Reply With Quote
Old 24th October 2003, 19:15   #10  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Quote:
Originally posted by yossarian82
Ok, just to clarify - the movie is encoded from a PAL source. i'm using the normal FPS rate of PAL (i think its 25fps).....
In most cases PAL DVD's are encoded at 25FPS and NTSC DVD's are encoded at 30FPS.

So when generating encodes, you should stick to the same framerate as the source!

Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 24th October 2003, 21:20   #11  |  Link
yossarian82
Guest
 
Posts: n/a
naturally - i realised that:P

anyway i checked the encode, and it appears (along with a few other movies that i encoded previously) that there are duplicate frames and that they are causing the weird jerks.

not all the PAL movies i've encoded have this error, just a few of them.

the strange thing is the dup frame appears to be every 12th frame... and that's for all the movies i checked that had the error. so basically:

-is there anything i'm doing in my encoding that is messing up the encode?

-is there anything i can do to remove those dup frames in order to make the movie play normally?

thanks for your help
  Reply With Quote
Old 24th October 2003, 21:55   #12  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Hi yossarian82

I suppose there may be tools available (I don't know of any myself) but personally I think it would be far quicker and less frustrating to encode the movie again from scratch!

Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 24th October 2003, 23:24   #13  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Just a guess...

Could this source originally have "film" fps rate (24fps) ???

Because he said its every 12th frame... (2x12=24->25fps)

Had never such content, so I don't know if something like this exist...

But as I said, Its just guessing !

Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 25th October 2003, 04:54   #14  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Hi-

Yeah, it's like I said earlier. They add one extra frame in every 24. They didn't add it as a single frame, but as 2 fields, 1 every 12 frames, in order to make it play more smoothly. So you didn't see a duplicate frame every 25 frames, but a sort of duplicate frame every 12 frames. It has to be fixed during the initial encoding. It's too late to fix the .avis as the dup fields have become blended frames. I would guess the .avis are blurry messes. In the future:

Telecide().Decimate(25)

Read this. Because the field order is constantly switching, it's better to use the older Decomb 4.10b which can correct it (and upon which that tutorial is based). The newer 5.x versions require you to set the field order. From that tutorial:

Some DVDs switch between real progressive and field shifted progressive. If this happens twice every second then you have a DVD with a field added every 12 frames to keep the time constant. Now, assuming that you have established that you have a progressive DVD, either by adding Telecide or by turning Swap Field Order ON/OFF, then we proceed to look for doubled frames. If they appear, they should only appear once every second, and in this case you must add Decimate(cycle=25) to your final script.

Last edited by manono; 25th October 2003 at 13:48.
manono is offline   Reply With Quote
Old 25th October 2003, 12:52   #15  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Yes, I know exactly the problem yossarian82 is experiencing. And it is exactly what manono has described.

I can replicate it quite easily by spinning an NTSC DVD and forcing my Xcard to output a pure PAL signal - instead of PAL60!

I have to say some NTSC sources look better than others when forced into pure PAL. But it has its uses, all the same, when backing up NTSC sources to PAL VHS tape.

It's going to get really interesting soon when more and more 24FPS (film speed) equipment makes it into the 'non professional' market place!

Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 26th October 2003, 17:43   #16  |  Link
DigitAl56K
Registered User
 
Join Date: Nov 2002
Location: San Diego, CA
Posts: 936
If you're using DVD2AVI either uncheck Force Film if its checked, or check it if it isn't.
DigitAl56K is offline   Reply With Quote
Old 26th October 2003, 19:58   #17  |  Link
jggimi
Moderator Emeritus
 
jggimi's Avatar
 
Join Date: Dec 2001
Location: The NW corner of Lake Erie
Posts: 5,552
Force FILM should ONLY be used on NTSC sources at 29.97 fps. And then, only with sources with proper MPEG-2 flags. This content is 25fps. Force FILM should NOT be used.
jggimi is offline   Reply With Quote
Old 30th October 2003, 20:44   #18  |  Link
yossarian82
Guest
 
Posts: n/a
Yeah, it's like I said earlier. They add one extra frame in every 24. They didn't add it as a single frame, but as 2 fields, 1 every 12 frames, in order to make it play more smoothly. So you didn't see a duplicate frame every 25 frames, but a sort of duplicate frame every 12 frames. It has to be fixed during the initial encoding. It's too late to fix the .avis as the dup fields have become blended frames. I would guess the .avis are blurry messes.

What do you mean by that last sentence? The .avi movies that have this problem are fine, graphics-wise - it's just that every twelfth frame is a duplicate of the previous one. They're not blurred messes...

Is there really no way to fix the encoded movies? How hard can it be to remove every 12th frame?

In the future:

Telecide().Decimate(25)


WHat does this mean?

Read this. Because the field order is constantly switching, it's better to use the older Decomb 4.10b which can correct it (and upon which that tutorial is based). The newer 5.x versions require you to set the field order. From that tutorial:

Some DVDs switch between real progressive and field shifted progressive. If this happens twice every second then you have a DVD with a field added every 12 frames to keep the time constant. Now, assuming that you have established that you have a progressive DVD, either by adding Telecide or by turning Swap Field Order ON/OFF, then we proceed to look for doubled frames. If they appear, they should only appear once every second, and in this case you must add Decimate(cycle=25) to your final script.


So presumably i'm removing the doubled frames, but what programs do i use to do this? And at what point? I use flaskmpeg not DVD2Avi also...

confused
  Reply With Quote
Old 31st October 2003, 07:20   #19  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Hi-

Where you been hiding, yossarian82? We've been carrying on without you. Well, I made a couple of assumptions that maybe I shouldn't have made. I was assuming that there was one duplicate field in every 12 frames (or 24 fields), after which there was a field order switch. That's not uncommon with PAL DVDs. And I was assuming that you had to have deinterlaced the whole thing to get rid of the interlacing. Guess I was wrong. Not the first time. Sorry.

I'm having a little trouble imagining how such a thing can even be on a PAL DVD. But to fix it, you'll have to reencode, either the .avi, or from the original DVD. In this case you'll need:

Telecide(order=1). Decimate(12).

I haven't used FlaskMPEG for years, so I can't help you with it. Maybe somehow it created the duplicate frames. If you use DVD2AVI and AviSynth to frameserve into VDubMod, then you'll learn about such things. I might recommend using Gordian Knot for this in the future.
manono is offline   Reply With Quote
Old 31st October 2003, 18:38   #20  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Hi again yossarian82'

Can you run your file through an application like Gspot and post the results please?

This is all very odd!

Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:58.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.