first of all, we know that each frame contains two fields, odd and even fields. assume the frame 1 has o1 and e1 fields, f2 has o2 and e2 field, and so on. now, i re-write it, f1 f2 f3 f4 f6 f7 (frame order) o1 e1 o2 e2 o3 e3 o4 e4 o5 e5 o6 e6 (field order) :confused: my problem is, how do i re-construct the origional stream to be this order? f1 f2 f3 f4 f6 f7 (frame order) e1 o2 e2 o3 e3 o4 e4 o5 e5 o6 e6 o7 (field order) one more question, does any one know that any mjpeg code has a real lossless function? :eek: