This is some concept how to workaround with limitation for x264 - only for desperate people willing to archive something for future (maybe better) times.
I think that lossless decoding can be done in FPGA for pro-applications - so maybe i can imagine situation that someone collecting or store some streams on HDD then decode them in a different place (time) - returning to the RGB is quite easy to implement on FPGA.
+ Reply to Thread
Results 31 to 43 of 43
-
-
No, not at all - VHS stores a stream of individual fields - which is exactly what analogue broadcast video consists of.
In the analogue world, it's not strictly correct to say either field is first - it depends where you start looking at the stream!
However, there are standard conventions for line numbering (1-525 and 1-625), and for editing ("always" cut in the VBI near line one) which means NTSC is bottom field first, and PAL is top field first.
Almost all digital representations of such analogue video signals maintain this convention in the pairing of fields into digital frames (NTSC=BFF, PAL=TFF). As already mentioned, DV doesn't (it makes PAL BFF - either by field shifting or simply moving the content down by one single line - or originating it as BFF DV in the camera itself).
AFAIK Lagarith neither knows nor cares what the field order is. The standard AVI container doesn't flag progressive vs interlaced, tff vs bff, aspect ratio, etc etc.
MPEG has flags for some of this stuff, but (mostly) they can be wrong without affecting the stored video - i.e. you could simply ignore any wrongly-set flag on playback to get the "correct" result, without any harm at all.
Hope this helps.
Cheers,
David. -
The capture device (or driver) determines the field order when capturing an analog signal. It can start with a top field then add the next field, a bottom field; or it can start with a bottom field then add the next field, a top field. Two different devices capturing the same video can give different field orders.
DV devices always capture bottom field first. In my experience, most other devices capture top field first. -
And a note to anyone contemplating Pandy's methods of losslessly encoding RGB or YUY2 sources with x264: in the future you won't be able to simply open the resulting files in an editor. You'll have to convert them back to a standard RGB or YUY2 format before you can use them.
For example, for a 720x480 RGB source:
AviSource("stackedRGB.avi")
red=Crop(0,0,720,480)
green=Crop(720,0,720,480)
blue=Crop(1440,0,720,480)
MergeRGB(red, green, blue) -
Sorry, my mistake - drum with heads revolve with field speed ie for PAL-like it is 50 revolutions per second. (but i put AFAIR
)
BTW - I've just founded: http://www.ronaldsnoeck.com/vcr.htm nice page for VCR descriptionLast edited by pandy; 26th Mar 2010 at 06:03.
-
-
Thanks for the posts clarifying TFF/BFF for me. Sadly I appear to be even more confused than before. It sounds like the raw video I capture from SVHS is interlaced coming into the computer and into the Lagarith encoder, but Lagarith itself doesn't know how to include information about the nature of the video stream, which means I am responsible for telling a program that uses this footage about its nature.
The problem is that I'm still not sure what to say - most programs that input video want to know (a) is it interlaced or progressive and (b) if interlaced, BFF or TFF? It sounds like if I capture VHS or SVHS or Video8 or Hi8 to disk encoded in Lagarith, I should always make sure the playback tool knows that the material is interlaced, but that I don't really need to worry about BFF or TFF and can just pick one. True/false? -
AVI doesn't have a field order flag. Lagarith has no way of flagging field order either.
Yes.
No, you need to tell the editor the correct field order. Determining the field order of your video is easy in VirtualDub. Open the lagarith (or other) video in VirtualDub. Add the Bob Doubler filter. Select either TFF or BFF , and Bob options. Step frame-by-frame through a section of video with motion. Watch the output window. If the motion moves smoothly from field to field you got the correct field order. If you see a two-steps-forward- one-step-back type motion, or any other backwards steps, you picked the wrong field order. The wrong field order on the left, the right field order on the right:
-
I get always TFF when a capture with capture cards regardless of codec used or name of card, even I a use DV codec. For me rule is always TFF with one exception when is DV file captured from camcoder via firewire. Another exception may be with file from DVD. These can be either TFF or BFF.
-
Thanks jagabo for the very helpful post and simple test. My captures are clearly TFF near as I can tell but I am going through to verify.
Is there any chance that a dropped frame (according to VirtualDub) could cause field order to switch midstream in a capture? -
Not really. Although I've heard talk of capture cards that might miss a field then swap between TFF and BFF. I've never seen that myself and I would think it's rare.
The obvious two-steps-forward-one-step-back cadence is for purely interlaced (60 fields per second) video. With hard telecined film you will only see two backward jumps every 10 fields when the field order is wrong. There will also be many repeated fields as there are only four different film frames in every 10 fields. When the field order is right there will be repeats on a 2:3 pattern -- AABBBCCDDD... -
-
Sadly it is quite common and can be observed currently many times that people that making video mixing TFF and BFF - it happen frequently even in really good European TV (in terms of technical care about quality and standards for video broadcast) like for example German ZDF (or few Dutch broadcasters).
I blame for this people the new (Youtube) generation of video engineers - they "don't feel" interlace... so be prepared to strange combination's of TFF and BFF incorrectly signaled - probably they use US software which is BFF default - Europe use TFF.
Similar Threads
-
lagarith - premiere - lagarith (without colorspace conversion)
By codemaster in forum EditingReplies: 10Last Post: 1st May 2012, 12:26 -
VOB to AVI (Lagarith lossless) Audio Out of Sync
By Eva-Unit01 in forum Video ConversionReplies: 10Last Post: 17th Aug 2010, 09:50 -
Bitrate vs Size Calculator for x264 for ripping DVD to x264 + AC3
By Bonie81 in forum DVD RippingReplies: 7Last Post: 5th Jul 2010, 18:24 -
Lagarith to X264
By Eva-Unit01 in forum Video ConversionReplies: 3Last Post: 13th Jan 2010, 11:30 -
Problem with x264 lossless file creation
By algee2k8 in forum Video ConversionReplies: 4Last Post: 28th Oct 2008, 10:55