If I want to use one of Virtualdub's internal deinterlacing filters or plugin such as Smart Deinterlace to deinterlace the video, how do I disable the deinterlace feature of the Divx codec? Presently there are only 3 options, which are Progressive, De-interlace Source, and Preserve Interlace.
If I'm going to be using a internal de-interlacer, I don't want the Divx codec using more encoding time when it's not needed and therefor possibly degrading the video by performing some type of interlacing on the video. Maybe when virtualdub is using a internal de-interlacer it automatically disables the Divx interlacer, but I don't know that answer.
Also would you happen to know if virtualdub's filters process before or after Divx resizing feature or deinterlace (if I decide to use this feature)? I understand that deinterlacing should be the very first step when encoding. Thanks for your help![]()
+ Reply to Thread
Results 1 to 24 of 24
-
-
After deinterlacing in VirtualDub you will have progressive frames. Use the progressive setting in Divx. All filtering in VirtualDub will happen before output to the compression codec.
-
Great, just the answer I've been searching for. I kinda thought that might be the answer, but I couldn't find any documentation substantiating my thoughts.
Thanks very much! I was getting real tired of searching the net for answers. -
Presently there are only 3 options, which are Progressive, De-interlace Source, and Preserve Interlace.
...
Maybe when virtualdub is using a internal de-interlacer it automatically disables the Divx interlacer, but I don't know that answer.
-vhelp 4973
:P *~*!*~*!~* HaPpY HoLiDaY *~*!*~*!~* -
Originally Posted by vhelp
Originally Posted by vhelp
Code:Mpeg2Source("filename.d2v") ConvertToRGB(interlaced=true)
-
what is that YV12 used for when selecting divx compression. I never select that one when choosing compression type. I select the one that says Divx {multi processors} or something like that. I've always seen two selections for Divx in the choices, but never select YV12.
-
The YV12 decoder that shows up in VirtualDub's compression dialog is just some helper driver. You don't use it directly when saving with the Divx codec.
-
Sliztzan wrote:
If I want to use one of Virtualdub's internal deinterlacing filters or plugin such as Smart Deinterlace to deinterlace the video, how do I disable the deinterlace feature of the Divx codec? Presently there are only 3 options, which are Progressive, De-interlace Source, and Preserve Interlace.
I believe that some disabling is going on but am not sure.
I was saying that maybe divx is doing the [s:e2945712e0]disabling[/s:e2945712e0] or should I say, sending a noncompatible sampling (chroma) format, which ultimately will not get processed correctly, still. Perhaps "disabling" is the wrong word here, but then the OP mentioned this above, that divx offers three options to configure chroma: Progressive; deinterlace; or Preserve Interlace. Ok. I'll be honest here. I did not check this out because I do not have divx installed on my machine. But I would be willing to install it if only to verify this problem still exist. I am now curious!
If fed interlaced YV12 video VirtualDub is going to screw up the chroma channels anyway! It always converts YV12 to RGB as if it was progressive. It's better to use AviSynth to do any YV12 processing. If you must use VirtualDub, at least use AviSynth to convert YV12 video to YUY2 or RGB. Be sure to add the "interlaced=true" argument:
@ Sliztzan, what divx version are you using ? I'd like to verify if this issue still exist.
@ jagabo, do you have any examples of this issue, so we can duplicate it, noting which ver used ?
* note, I think that quotes are getting screwed up here
Thanks everyone.
-vhelp 4976 -
Divx has three settings for handling progressive/interlaced video:
1) Progressive Source. Use this if your video is progressive (interlaced video that has been deinterlaced by VirtualDub is progressive when handed to Divx for compression).
2) De-interlace Source. Use this if your source is still interlaced after VirtualDub filtering and you want Divx to deinterlace to progressive frames and encode as progressive.
3) Preserve Interlace. Use this if your source is still interlaced after VirtualDub filtering and you want Divx to encode it as interlaced frames.
Originally Posted by vhelp -
If fed interlaced YV12 video VirtualDub is going to screw up the chroma channels anyway! It always converts YV12 to RGB as if it was progressive.
Even still, this problem should have been fixed by now. Virtualdub is now at version 1.9.x something, and it still can't decode the chroma channels correct. I mean, it processes video always as progressive. I read various passages from time to time on this matter, but I would of thought that they included an option for Interalce or Progressive, if anything.
Is it certain that this problem still exists ?
-vhelp 4977 -
I just finished running a number of decoding/encoding/decoding tests using divx as the codec and vob mpeg-2 sources. And, I did not see any of the problems mentioned in this discussion. Therefore..
I believe that this problem is no longer an issue (with the latest version(s) of virtualdub) and that there is no need to suggest avisynth as the final solution every time someone wants to work with a given codec, unless the source or codec is truely problematic, or, the person wants to apply a particular filtering that is beneficially better in a certain color space, or the editing tool is based on a previous version with known problems.
Many people work with virtualdub and its filters, and are plenty happy with it, and it is usually enough for most basic video processing work.
I am not discounting avisynth by any means. I use it more than ever, even though at one time, I used to be a virtualdub-only user. Today, I am a AVIsynth/VirtualDub user.
Look it the time.. I'm exhausted with debugging and research on this issue. Have a good night everyone, yawn..
-vhelp 4978 -
I just checked version 1.9.0 and it has the same problem decoding YV12. I'll post samples and images tomorrow when I get time.
-
I'll do the same, tomorrow I'll post a few frames, and maybe will get to the bottom of all this. I'm sure there's an explanation for the differences. I'll post from a scene with some RED areas since this usually brings out the issue more pronouced. The I will be using is from the dvd movie, "The Fifth Element" and the scene I will be using in that demonstartion is the McDonolds scenes, where the women is handing the police his fries..in case anyone wants to have a go at it on their computer/codec setup.
Until then, this time, its bedie-bye for me..
-vhelp 4979 -
As it turns out, I was incorrect. The issue with virtualdub decoding YUV->RGB sources is still unresolved.
I was too quick and selective in my image scenes that I overlooked one important area, the vertical access.
Most scenes are ok. Its only when two colors (RED is more defining) cross paths that the problem is seen.
The test scenes I used..
In the scene where you see the car's blue top and red meet, (and when magnified) the issue is revealed. It is at edge of two crossing (red/blue) colors that you can see the yuv->rgb decoding problem.
Also, inside the car, where you see the red and black meet inside the car, again, the yuv->rgb decoding problem is noticable.
The problem exhist in virtualdub because of the way it handles the yuv->rgb conversion. The subsampling is the problem. In AVIsynth, when this problem was discovered, it was realized that the subsampling was part of the problem, and its algorithm was modified and fixed. I believe the modification had something to do with averaging and interpolation, basing from my memory.
When I tested with some scenes last night I thought that same algo was applied to virtualdub. I was wrong.
I will be back with pics..
-vhelp 4980 -
Here is an MPG file that shows the problem unambiguously:
720x480.zip
One frame correctly decoded and displayed:
Notice how the red/green and black/white horizontal lines are exactly one pixel thick.
When viewed field by field you should see a green box that bounces from side to side in the red area. Directly below it is a black box that bounces from side to side in the white area.
Code:Mpeg2Source("720x480.d2v") AssumeTFF() Bob()
When viewed on an interlaced TV you would see the green and black boxes bounce side to side 60 times a second. Of course, this is very fast so it just appears as a flicker. Here is what it looks like slowed down to 2 frames per second:
If you open the MPG file directly in VirtualDub (with MPEG2 source plugin) you will see this:
Notice how the red and green scanlines have blurred together. The colors of the two fields have blended together. If you bob this the green/red section of the two fields will look almost identical -- no bouncing green box. The black box will continue to bounce because the luma channel isn't subsampled the way chroma samples are. The green and red colors were chosen so the the luma in YUV space is nearly identical. I believe the slight horizontal striping you can see the the red/green patch is due to the luma not being exactly identical.
Using DgIndex to decode to YV12, VirtualDub does this:
Code:Mpeg2Source("720x480.d2v")
You can see red and green horizontal lines but they are now two pixels thick and not as pure as they originally were. This will not bob correctly like the earlier example:
Notice how the black box is still clean but the green box is messed up.
Converting the YV12 to RGB in AviSynth with:
Code:Mpeg2Source("720x480.d2v") ConvertToRGB(interlaced=true)
The effects are much more subtle on the photo realistic part of the frame (provided as a sanity check). And, in fact, incorrect handling actually looks smoother at times (this is why I use test patterns for this type of test). But keep in mind that moving parts of the picture will be messed up, even if the static parts of the frame look a little better.
Beware of drawing any conclusions when viewing the MPG file on a computer monitor. Media players and display drivers are likely to screw up with interlaced video. -
Once again, the chroma subsampling bug we were discussing is in VirtualDub, not Divx.
I just verified that Divx (when it receives properly interlaced video to begin with) handles interlaced video properly. -
I tested that mpeg file in VirtualDub and had the same results as you. Has anyone passed on this issue to Avery Lee?
He is now working on the software again at 1.90 beta -
I didn't expect a reply at all, but I got one very quickly from Avery Lee. I'm just passing along the information, so don't kill the messenger. I don't even understand this subject. Here is his reply:
"Sorry, but this isn't a bug in VirtualDub. There is no such thing as "interlaced YV12" because the YV12 FOURCC only denotes progressive chroma and there is no way to indicate that it is interlaced. This problem occurs because people have started overloading and misusing the YV12 FOURCC without thinking about the compatibility problems." -
LOL. Avery Lee has a penchant for doing what's technically correct rather than what works. He may be right that there should be a separate fourcc for interlaced YV12 but I think he is in the minority. He finally gave in on his insistence that everybody was doing VBR MP3 wrong earlier this year and finally accommodated what other programs were doing. So maybe in 5 years he'll take care of the YV12 issue. At least AviSynth gives us a way around this problem.
-
I am trying Virtualdub and you may have seen my other post on this website about interlace.
If I bring a video that is interlace into Virtualdub's can I convert it to another file but have Virtualdub's not de interlace it?
Can I turn off de interlace in Virtualdub's and have my output file be interlace?
Similar Threads
-
Disabling auto-play
By videohalp in forum DVD & Blu-ray PlayersReplies: 2Last Post: 19th Jan 2012, 09:28 -
Help with Disabling Subs by Default
By TheAlmighty in forum SubtitleReplies: 6Last Post: 16th Dec 2009, 03:52 -
Disabling Riplock on a TSST SH-S223Q
By GreggD in forum DVD & Blu-ray WritersReplies: 3Last Post: 6th Apr 2009, 00:29 -
CovertXtoDVD and disabling subtitles?
By kirky99 in forum Video ConversionReplies: 4Last Post: 19th Mar 2009, 04:27 -
Good Video Explaining Interlacing and De-Interlacing
By Soopafresh in forum Newbie / General discussionsReplies: 3Last Post: 14th Aug 2008, 19:50