digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Progressive vs Interlace - is this video is progressive? (http://www.digitalfaq.com/archives/encode/8350-progressive-vs-interlace.html)

rs008f 02-26-2004 04:10 PM

Progressive vs Interlace - is this video is progressive?
 
I have an 23.976 fps AVI video that is non-interlace and top field first, does this mean the video is progressive?
I have encoded it with CCE to MPEG-2 with Offset line 0.
When using pulldown.exe. do I need to use the options
-prog_seq p -prog_frames p
to mark the entire MPEG stream as progressive and mark each frame as progessive too? Or is only one of the options needed?

Dialhot 02-26-2004 04:33 PM

Re: Question on Progressive and Interlace.
 
Quote:

Originally Posted by rs008f
I have an 23.976 fps AVI video that is non-interlace and top field first, does this mean the video is progressive?

There is no interlaced avi. So your file can't be interlaced :-)

Quote:

I have encoded it with CCE to MPEG-2 with Offset line 0.
When using pulldown.exe. do I need to use the options
-prog_seq p -prog_frames p
to mark the entire MPEG stream as progressive and mark each frame as progessive too? Or is only one of the options needed?
Both a required.

incredible 02-26-2004 04:51 PM

Re: Question on Progressive and Interlace.
 
Quote:

Originally Posted by Dialhot
There is no interlaced avi. So your file can't be interlaced :-)

Uops! Don't say that in general, .... ok, 23.976 Avis aren't interlaced ... and top field or bottom filed in this case do not matter as he got a FRAMEBASED stream (truly progressive) and not a FIELDBASED stream.
;-)

Dialhot 02-26-2004 05:33 PM

Divx supports interlacing ? Since when ?

But I aggree whith you, "avi" is not "divx" and there is surely some avi codec thatn can be interlaced.

rs008f 02-26-2004 05:48 PM

Maybe I should be more clear. I thought these days people would assume AVIs are MPEG-4 (Xvid,Divx,etc) My videos are either Divx or Xvid. So now I know Divx does not support interlacing but how about Xvid? I thought both are MPEG-4 and should generally behave the same way but I think I'm wrong.

rs008f 02-26-2004 05:54 PM

Re: Question on Progressive and Interlace.
 
Quote:

Originally Posted by Dialhot
There is no interlaced avi. So your file can't be interlaced :-) ?

I just check my Xvid avi video with TMPGEnc. It says interlace, bottom field first, so I guess MPEG-4 codecs can be very different even though all of them are MPEG-4. Now I know Xvid supports interlacing and Divx does not. Is it all kinds of Divx (Divx3, OpenDivx, Divx5) though?

Dialhot 02-26-2004 06:11 PM

I just check in the encoder settings and you're right, Xvid do support interlace.

TO see if your avi is interlaced or not there is only your eyes : open the file under vdub and drag the slidder. If you see a picture with combo effect, the file is interlaced.

But... 23.976 CAN'T be interlaced (as told by inc).

Note: yes, all Divx I know so far.

incredible 02-26-2004 06:16 PM

:!:

Watch out! Thats why I pointed that out above.
Yep, XVID supports interlaced mode. Mostly used in capturing purposes.
But do not ONLY trust your eyes according to combing in this case, also trust your eyes in case of chroma artefacts!
(but still I don't beleive that 23.976 comes interlaced!)

I also use XVID sometimes for capturing if movies will be broadcasted which will take 4h or more.

Well if capture or not, IF you got an "interlaced" mpeg4 which is in YV12 and that means 4:2:0 :arrow: mega risky in case of wrong chroma upsampling! Cause the system does not know how to interprate an YV12 interlaced stream even the FourCC tells the system to decode using the same XVID codec.

Here you can see mega upsized (for explanation purposes) XVID interlaced AVI:

http://www.digitalfaq.com/archives/i...2004/02/38.jpg

Do you see the chroma artefacts? Thats cause of wrong YV12 Interlaced chroma upsampling!

BUT you can fix that chroma issue by "interpolation" of the chroma by using Avisynth and a conversion to a diff colorspace like YUY2 interlaced.

ConverttoYUY2(interlaced=true)

which results in:

http://www.digitalfaq.com/archives/i...2004/02/39.jpg

Less chroma artefacts but still not that interlaced chroma quality as compared to YUY2 (4:2:2) interlaced-mjpg or -HuffYUV.

;-)

Dialhot 02-26-2004 06:19 PM

Do you mean Xvid is Crap ? :-D

incredible 02-26-2004 06:22 PM

XVID is "lovely"!!!

That example above is only the issue if source gets as interlaced OUT of that codec!

But in case of encoding progressive sources (as mostly used) .... a very very nice codec!

I wouldn't capture using that codec (sometimes) if it would be crap ... and btw its very fast as hell in case of full size PAL capts. :lol:



PS: Thats also an issue of bad quality Stand Alone Divx/XVID Players IF they don't know how to interprate the YV12 interlaced stream correctly when providing it to the TV set :!:

:wink:

Hydeus 02-26-2004 06:29 PM

I know that this is no matter at the moment, but DivX also supports interlacing, at least in early 5.x versions.

incredible 02-26-2004 06:31 PM

If you can choose in Dvix early versions interlaced 4:2:2 ... GIMME THAT LINK TO THAT CODEC :!: :D

Divx Pro supports also Interlaced as I got here that MEGA .pdf where everything on Divx 5.x is explained

Hydeus 02-26-2004 06:44 PM

I thik I don't understad you :? You're agree or disagree with me :?:
DivXpro (I alwas use pro adaware versions), supports interlacing, in early 5.x versions. At the time I have no DivX codec on-board, so I can't check the newest version.

rs008f 02-26-2004 06:46 PM

Quote:

Originally Posted by Dialhot

But... 23.976 CAN'T be interlaced (as told by inc).

Note: yes, all Divx I know so far.

FYI,
I just my Xvid video. It is 23.976 fps and it's interlace and bottom field first (according to TMPEnc).
I also check an OpenDivx video. It is 23.976 fps and it's interlace and bottom field first.
I guess there's more to it than meet's the eye.

Dialhot 02-26-2004 08:56 PM

Quote:

Originally Posted by Hydeus
I know that this is no matter at the moment, but DivX also supports interlacing, at least in early 5.x versions.

Not at all !
In divx you can ask to the decoder to treat the source as progressive or to deinterlace it, but you ALWAYS encode in progressive.

incredible 02-27-2004 03:44 AM

NEVER! Trust TmpgEnc and its automatic Fieldorder and Frame/Fieldbased Type recognisitions!!

If I use XVID in interlaced capturing mode EVERYTIME in real a TOP-FIELD FIRST streams comes out even if Avisynths Info() command tells me that I would deal with a BottomFieldFirst XVID Source! (and we don't know if you got a XVID capture or just a DVD source XVID backup)

You can check that by creating the following script:

Avisource("yourXVID.avi")
AssumeTFF()
Separatefields()


Now scroll through the video and IF the motion performs smooth you got a Topfieldfirst Stream. If its not smooth, just change AssumeTTF() to AssumeBFF() and do the test again if its then smooth you got a BottomFieldFirst Stream.

And also according to Progressive or interlaced. Even if you feed TmpEnc by a progressive d2v via Avisynth, TmpgEnc recognises an interlaced input which is a) wrong and b) would cause a wrong matrix values ordering when encoding afterwards.


BUT as we all know we are talking here about a 23.976 FPS source AND THEREs NO REASON THAT THIS STREAM SHOULD BE INTERLACED.

I don't know from where you got that XVID (and according to the rules in here I prevent not to ask) but even if it came out of a telecined 29.97 capture restored back to 23.976 :arrow: also in such a case the orig progressive frames will be restored!
;-)

Hydeus 02-27-2004 04:33 AM

Quote:

Originally Posted by Dialhot
Quote:

Originally Posted by Hydeus
I know that this is no matter at the moment, but DivX also supports interlacing, at least in early 5.x versions.

Not at all !
In divx you can ask to the decoder to treat the source as progressive or to deinterlace it, but you ALWAYS encode in progressive.

Not at all ;)
I've downloaded sample movie from 100fps.com (it's not blockbuster it is a capture test sample), and it is DivX5 50fps interlaced. so?

Dialhot 02-27-2004 04:42 AM

Quote:

Originally Posted by Hydeus
Not at all ;)
I've downloaded sample movie from 100fps.com (it's not blockbuster it is a capture test sample), and it is DivX5 50fps interlaced. so?

So DL the codec, open it and find me where is the setting because I look for it yesterday just before posting my message and didn't find any ! ;-)

PS: can you give me the link towards this sample ? I'll be glad to check how this poor codec deal with interlacing.

EDIT : at home I have Divx5.1.1 and there is no "encode as interlaced" provided. But at my office I have 5.0.5 and... there is this choice !
:arrow: either they removed the interlacing support or I was to exhausted yesterday :-)

incredible 02-27-2004 04:52 AM

Here is a very "deep" explanation of the Divx 5 codec:

http://www.divx.com/support/guides/DivXGuide51.pdf

Dialhot 02-27-2004 05:03 AM

Okay, according to page 90, I was too tired yesterday :-)
(or perhaps the "interlaced" choice appears only when you have load an interlaced source, that I didn't do).

Hydeus 02-27-2004 05:36 AM

It's on 100fps.com, but right now:
Quote:

Bandwidth Limit Exceeded
The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later.
:(
Sample it's 5MB, and I think it is more quality than compression based, but I don't have abillity to provide mirror of this. Maybe I could try by Kast, but I'll need explanation on brodcasting.

incredible 02-27-2004 05:57 AM

First if we see that whole thing "on topic" we can assume that "he" really deals with a 23.976 progressive Stream, framebased and therefore to be encoded as Progressive with ZigZag scanned DCT 8x8 Matrix.

And as this thread here changed to the "interlaced" Divx/XVID 4:2:0-YV12 subject, I fished something out of the www and other forums. ;-)

If you want to see an interlaced 4:2:0 YV12 XVID (also Divx would behave the same) without postprocessing you don't need to get that one at 100fps.com, you can see my two pics in this thread above where the upscaling of the image by 3times gives you a good comparison.

Gentlemen, the problem in here's not Divx or XVID in general, the Problem is interlaced 4:2:0 and therefore interlaced YV12 (YV12 4:2:0 is mpeg4 standard). And thats also an issue if capturing interlaced sources using mpeg2! Means at NTSC telecined captures and also in case of PAL if Hollywood movie broadcastings have been treated by a pal speedup (23.976 to 25.000 + adding of that PAL Country audio) AND phase shift (appears as interlacing "look")

Watch this:
http://www.mir.com/DMG/chroma.html

Means:
YUY2 = half horizontal but full vertical color resolution
YV12 = half horizontal AND half vertical color resolution
(and as Interlaced needs full heigth to be fieldbased ... therefore comes the chroma bug in case of interlaced)

Also in that Link you can see WHY mpeg1 can't be encoded as interlaced!
As Chroma Samples are centered BETWEEN lumasamples which makes interlacing impossible even at full height.


And here an explanation of LigH at doom9/Gleitz.de translated by Googles language tools:

Quote:

Originally Posted by LigH
Perhaps still times somewhat in more detail (largely we discussed fully similar things e.g. in this contribution): Everything (all!) MPEG-compatible video formats (all the same whether MPEG1 -, Mpeg2 or MPEG4-kompatibel) store according to standard brightness and color difference information with the Subsampling configuration 4:2:0, (nearly) the same also by unkomprimierten YV12-AVIs one would use; others are permitted partly also, must be adjusted however separately, and are not not DVD compatible partly.

_ a unkomprimiertes Rgb24-avi needs 8 bits for each pixel in all three components (red, green, blue): 3 components * 8 bits/1 pixel = 24 bits per pixel. So far simply. Now a little more complicated: With 4:2:2-Subsampling (as with YUY2 or UYVY) each individual pixel has a brightness value Y, but two pixels each lying next to each other divide one color difference component each U and V. that means: The smallest unit, which one can store with (groups of) complete 8-bit bytes, is a group of two pixels each lying next to each other. Those need then 2 bytes for the individual y-values, and 1 byte each for the common u and CV factors - the smallest storable unit are thus 2+1+1 = 4 bytes. That makes thus * 8 bits/2 pixels = 32 for 4 bytes bits/2 pixels = on the average 16 bits per pixel. And end the conclusion still more complicated: With 4:2:0-Subsampling (as with YV12) each individual pixel has a brightness value Y, but four neighbouring pixels each lying in the square divide one color difference component each U and V. that means: The smallest unit, which one can store with (groups of) complete 8-bit bytes, is a group of four secondary and among themselves each lying pixels. Those need then 4 bytes for the individual y-values, and 1 byte each for the common u and CV factors - the smallest storable unit are thus 4+1+1 = 6 bytes. That makes thus * 8 bits/4 pixels = 48 for 6 bytes bits/4 pixels = on the average 12 bits per pixel.

__ and why now DivX announces "24 bits", while XviD announces "12 bits"? "no notion - the programmers ask!" Perhaps the DivX is somewhat inaccurate and announces as preferential decoding format "RGB24", although its natural unkomprimiertes format is most similar actually to YV12 - because practically all video processing programs can process unkomprimiertes RGB video problem-free. The XviD is there perhaps more exact; (as in the contribution specified above) each program in a the position is not only to process planar formats. Therefore the XviD codec offers itself additionally also as "codec" for YV12, in order to support such (in this regard ' unable ') programs to make and a conversion of YV12 available into the desired format. (since short DivX does that by the way also...) Or it depends on with which the DivX /XviD codec was originally fed (thus whether RGB24, YUY2 or YV12 to MPEG4 were compressed). And then it would be actually because of which was used program, and like it was adjusted (e.g. VirtualDub or Mod in the nearly Recompress or Full processing mode). In the case the question about the quality differences would be to be answered in such a way: "the fewer transformations between the formats, the better" - then would be the winner: YV12 (for YUY2 average value formations and interpolations would be necessarily, for RGB24 even a complete conversion between RGB and YUV; there much accuracy is lost!).

__ programs, which can be decoded a video compressed by a VfW codec (e.g. with DivX or XviD in the MPEG4-Format), may itself by the way of the "image Compression manager" (the technology, which exists since Windows 3.x with VfW 1.x) in a list wish, into which format they would gladly have decoded it - in the order, as would have sie's dearest. Some programs wish themselves of the ICM only RGB24; others would have gladly only YUY2 or UYVY, then RGB24; only few (like VirtualDubMod) permit also YV12. That might be connected with the fact that YUY2 and UYVY are "packed" also exactly like RGB24, while YV12 is "planar", and therefore to be completely differently treated must. Details in addition in mentioned here above the contribution...


rs008f 02-27-2004 11:43 AM

Quote:

Originally Posted by incredible
NEVER! Trust TmpgEnc and its automatic Fieldorder and Frame/Fieldbased Type recognisitions!!

Wow I didn't TMPGEnc was that bad in certain features.

Quote:


Avisource("yourXVID.avi")
AssumeTFF()
Separatefields()


Now scroll through the video and IF the motion performs smooth you got a Topfieldfirst Stream. If its not smooth, just change AssumeTTF() to AssumeBFF() and do the test again if its then smooth you got a BottomFieldFirst Stream.

I've read about this but decided to use the TMPGEnc way because it is simpler and faster, since I never doubt a software's accuracy, I trusted TMPGEnc all the way. I'll use the AVS script from now on then.

Quote:


BUT as we all know we are talking here about a 23.976 FPS source AND THEREs NO REASON THAT THIS STREAM SHOULD BE INTERLACED.

So you mean a 23.976 fps Xvid/Divx video CANNOT be interlace and BFF? That means TMPGEnc has been wrong all the time when it reports such a thing. It's shocking news to me.

Quote:


I don't know from where you got that XVID (and according to the rules in here I prevent not to ask) but even if it came out of a telecined 29.97 capture restored back to 23.976 :arrow: also in such a case the orig progressive frames will be restored!
;-)
yeah you're right. The Xvid video source is from a TV recorded digitally for personal home use only. So telecined 29.97 is progressive?

rs008f 02-27-2004 12:03 PM

Avisource("yourXVID.avi")
AssumeTFF() /AssumeBFF()
Separatefields()

I tried both scripts on my Xvid video. Both looks the same to me when viewed on WMP. Both scripts crunched my 4:3 video into 16:9. I'm curious why boths scripts looks identical. I don't see any jerkiness anywhere.

rs008f 02-27-2004 12:16 PM

Quote:

Originally Posted by incredible
First if we see that whole thing "on topic" we can assume that "he" really deals with a 23.976 progressive Stream, framebased and therefore to be encoded as Progressive with ZigZag scanned DCT 8x8 Matrix.

This is the setting in the KDVD templates and which I have been using. Yesterday I changed pretty much most of those settings. I uncheck "Progressive flag", select "Alternate" scan order.
I noticed there is less flicker when played on my PS2. During panning scenes, jerkiness not as visible (it looks like the jerks occur at a faster rate) but still not as smooth as the source.

rs008f 02-27-2004 12:35 PM

Quote:

Originally Posted by rs008f
Avisource("yourXVID.avi")
AssumeTFF() /AssumeBFF()
Separatefields()

I tried both scripts on my Xvid video. Both looks the same to me when viewed on WMP. Both scripts crunched my 4:3 video into 16:9. I'm curious why boths scripts looks identical. I don't see any jerkiness anywhere.

Could it be that both are the same because my Xvid video is not field-based but frame-based (progressive)? I read this somewhere.

incredible 02-27-2004 01:22 PM

Its not jerky on both methods (BFF/TFF) cause you assume right now :arrow: its Framebased and NOT Fieldbased ;-)

As thats a capture I assumed right, that it has been Inverse-Telecined (IVTC=restored 29.97 phaseshifted to 23.976 PROGRESSIVE)

rs008f 02-27-2004 01:33 PM

OK. TMPGEnc is wrong and I'll stop using it. I'll assume all 23.976 fps Xvid/Divx are Progressive.

Dialhot 02-27-2004 01:37 PM

Quote:

Originally Posted by rs008f
OK. TMPGEnc is wrong and I'll stop using it. I'll assume all 23.976 fps Xvid/Divx are Progressive.

As I told you yesterday, there is no other tool than your eyes to see if something is interlaced or not :-)


All times are GMT -5. The time now is 04:16 PM  —  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.