I'm capturing from VHS using a Hauppauge USB-Live 2 in AmaRecTV. Once done, I open the raw .avi file in VLC, hit the 'de-interlace' key, and the fields play back in the wrong order. This also happens in Media Player Classic and Kodi, and I've tried both Lagarith and Ut codecs.
Has anyone else come across this issue? It's not a major problem in the grand scheme of things, but it's a pretty large inconvenience when just wanting to give something a quick check. What can I do to produce captures that play back with the correct field order?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 20 of 20
Thread
-
-
-
Here we are - found something with a bit of movement:
AmaRecTV-UT-field-sample.avi
This is an absolutely raw capture with no filters or ProcAmp settings or anything - just an .avi file, via AmaRecTV with the Ut codec. Open it in VLC, enable Yadif (x2) de-interlacing, and... What do you see? Wrong field order? It's the same with Media Player Classic and Kodi, too. I presume (hope) there's something simple I need to do somewhere in AmaRecTV that will fix future captures, but for the life of me I can't see it. -
Yes I see people complaining about it here
https://forum.videolan.org/viewtopic.php?t=3101
The file is not fllaged as interlaced, nor is any field order indicated (as far as I can see) -
Everything is fine when you encode your file with x264 and keep it interlaced with mbaff. Motion is smooth and there's no wrong field order. It's just that you can't deinterlace this avi file with vlc. These captures are for further processing and encoding and not for previewing in video player. I was never able to deinterlace any of my captured avi files with VLC but they turned out fine every time after encoding.
-
AVI has not flags to indicate a video is interlaced or the field order. UT codec has an interlaced setting but it only controls how the codec works internally. That information is not passed to editors/players upon decompression. VLC always assumes bottom-field-first when set to deinterlace. Your video is top-field-first. It's up to you to keep track of the field order and specify it in your later processing.
Last edited by jagabo; 12th Aug 2019 at 08:41.
-
Thanks everyone for your replies. To address the points raised...
Version 3.10, with no deinterlacing. Some of my captures are headed for DVD or Blu-ray, while others end up as MP4 files - or any combination of the three. As such, I preserve the interlacing unless and until it absolutely has to go.
Well, yes, that's what I am doing. The final (final) outcome isn't where the problem lies, but rather...
I don't believe anyone can honestly say they've never captured something, and then immediately needed to just check that a certain section came out all right. It seems bizarre to say that that simply can't be done. (Current workaround: open it in VirtualDub and set up the deinterlacing filter. It works, but it's not the most elegant of solutions.)
I've previously dealt mostly with DVD-compliant MPEGs and DV-AVIs, and this issue never arose. The Hauppauge/Ut combination was supposed to be an upgrade, and obviously it is in terms of picture quality (though not as much as I was expecting, compared to DV), but losing the straightforward checking process would be a pretty big step backwards in my personal workflow.
So is there anything at all that can be done to change this, or...
...do I find myself in a like-it-or-lump-it situation?
(I presume you mean when there's no flag present - for instance, PAL DVD video is top field first, and VLC handles that correctly.)
What I'm really struggling to get my head around is that this isn't an issue exclusive to VLC. Add in Media Player Classic and Kodi - that's three different media players - and they all detect that the video is interlaced, but all three guess the field order incorrectly. All three. Is there really no way to correct this seemingly simple issue at any stage of the capturing process?
A further question springs to mind: What's actually deciding the field order in my chain - the Hauppauge, AmarecTV, or the Ut codec? -
MPCBE has an internal decoder for UT Video Codec. It can be set to assume TFF.
View -> Options -> Internal Filters -> Video Decoders -> UT Video -> Video Decoder Configuration -> Deinterlacing -> Top Field First
If you use that setting all UT videos will be deinterlaced, even if they're progressive.
The capture device or its drivers determine the field order you get. The device can start with a top field then add the next field to complete the frame creating a TFF video, or it can start with a bottom field then add the next field to complete the frame creating a BFF video.Last edited by jagabo; 12th Aug 2019 at 22:16.
-
Ah, thank you very much indeed - that's definitely better than my VirtualDub workaround.
The capture device or its drivers determine the field order you get.
I have to confess, this is all leaving me rather nonplussed. I mean, isn't this a pretty major flaw? Of all the questions I asked when researching which USB capture device to go for, for some reason, "Does it produce AVI files with a field order that everything will automatically play incorrectly?" didn't occur to me. Years of being spoilt by the otherwise inferior DV, I suppose. Are all such devices like this, or have I picked a dud in going for the Hauppauge USB-Live 2? -
I've never seen a capture device that lets you select the field order. Of course you can always swap the field order after capture.
-
Maybe. Or maybe you have bad karma from a previous lifetime. Be thankful your punishment is so slight. TFF is pretty much the default for A/D conversion. As noted, if you leave your video in AVI files, players will have no clue about the field order and have to make assumptions. You know what happens when you assume.
-
Well, I suppose if that's the way it is, that's the way it is, but those statements only making it all the more confusing to me why three different media players are guessing BFF if it's the less common option of the two. So all these years, have all you Ut/Lagarith/Huffyuv capturers been unable to quickly and easily test your captures? I feel like I'm stumbling into some strictly-kept dark secret!
Thank you very much (especially for the extra commands, which I wouldn't have thought of) - that's something to bear in mind. Would you recommend it? I've always been wary because I've heard horror stories about x264vfw's handling of interlaced material. Also, can it be forced to work in 4:2:2 from start to finish? Because if there's a 4:2:0 conversion anywhere before the final (final) encode, then the improvement over DV gets smaller still. -
For your case it seems to be the only valid working option...
If your device and capture software work ok - it should be full 4:2:2 chain . The codec certainly supports it
Since the field order is part of the codec data, it's container independent. If you remux it into a MP4 or MKV , it will still be identified as TFF . (or BFF if you choose --bff)
What were the horror stories about x264 VFW interlace handling? Just encoding your sample with it - works ok , checked in multiple program, metadata is ok
(Note that x264 encodes MBAFF , not PAFF. But that should be ok for 99.99% situations.)
Some editing programs might not like AVC in AVI container , but you can remux to MP4 and it should be ok
If anything, the most common complaint is that it's too resource hungry . A slower system might drop frames. But it's unlikely with SD material, and a semi modern computer within the last 10 years . You can use I-frame and low latency settings , faster presets to farther reduce resource usage -
I honestly can't remember! A quick Google threw up something about the possibility of the chroma fields getting essentially deinterlaced and blended each frame, so maybe it was that. All I know is that I made a mental note at some point to avoid, and can't for the life of me remember why.
Some editing programs might not like AVC in AVI container , but you can remux to MP4 and it should be ok
If anything, the most common complaint is that it's too resource hungry . A slower system might drop frames. But it's unlikely with SD material, and a semi modern computer within the last 10 years . You can use I-frame and low latency settings , faster presets to farther reduce resource usage -
x264vfw vs huffyuv (one of the fastest lossless encoders):
https://forum.videohelp.com/threads/393998-VHS-capturing-without-VirtualDub-under-Linux#post2557687 -
Easiest is probably a GUI for mp4box such as yamb, mymp4boxgui
But another side issue is if you are using uncompresssed audio with your captures, it's unsupported in MP4 container by open source muxers . You'd need to use another container like .mov or transport stream like .ts, m2ts
I prefer ffmpeg to batch remux, but you can do it with mp4box, or lsmash muxer. I think there might be some batch ffmpeg GUI's now
Most commercial NLE's do not treat lossless YUV codecs (lagarith, huffyuv , ut, magicyuv , etc...) as YUV. They get RGB treatment, thus are not lossless. Also potential clipping problems from that. The exception is newer versions of PP. I think around CC2015 or CC2017 x264 lossless is accepted, and also treated as YUV, thus truly lossless. -
Last edited by TimA-C; 16th Aug 2019 at 16:15. Reason: Cack-handed typing skills!
Similar Threads
-
How to fix annoying field order problem on DVDR directly recorded from VHS?
By EddyH in forum Newbie / General discussionsReplies: 10Last Post: 5th May 2017, 12:47 -
DGIndex and Field Order Transition
By JapaneseIdolWota in forum Video ConversionReplies: 3Last Post: 18th Oct 2016, 10:16 -
Strange file, doesn't play on PC, fine on USB player, wrong field order?
By Killer3737 in forum Newbie / General discussionsReplies: 9Last Post: 1st Mar 2016, 19:14 -
HCencoder giving my progressive footage a field order
By kieranvyas in forum Authoring (DVD)Replies: 4Last Post: 3rd Sep 2015, 20:05 -
swap field order in avisynth
By marcorocchini in forum Newbie / General discussionsReplies: 3Last Post: 20th Sep 2014, 15:04