Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

misc: algos to de-interlace video
recently I have been getting some fairly decent quality videos from this one
ftp site (given in the thread "Video Compression (Test Videos)").

in general, a minor issue comes up: the video is interlaced. interlaced
video is likely not that rare, but before I hadn't thought of it...


what if I want the video de-interlaced?... this is not presenting itself as
a terribly easy issue.

a few options come to mind:
ignoring the interlace, it is only a minor annoyance during movement and
this is how it would appear, eg, on tv's anyways. it causes liney noise
during movement, but is otherwise fine.
this is noticable to me, as my player can't play it much faster than slow...

averaging both fields from both frames, effectively halving the vertical
resolution. given this loses detail, it is not preferable.

doubling the rows for each interlaced frame, effectively converting each
frame into 2 half-height frames. this works, but causes the image to
seemingly vibrate up and down, which is unpleasant.

I also tried averaging the above and below rows for a given frame to try
faking the rows absent in the frame. this works well for motion, but makes
an annoying pulsating effect for any static or detailed parts of an image.


averaging 3 rows, the above, below, and previous (real) row:
only slight pulsating effect for static images;
the liny effect for movement is still fairly noticable however, though
slightly faded.
this does eat a little into framerate.

an idea that comes to mind could be also looking at the next frames, and
determining whether the above/below average or previous values are closer to
that point in the next frame and choosing that, but this is likely more
complicated and expensive.

yet, also possible is a previous/next average, which I have also not tried
(I feel dubious, this may also not eliminate the lines issue).

or something...


another mystery is what kinds of effects interlacing could have, eg, on
things like motion prediction (I can imagine my simple motion-predictor
behaving weirdly due to line alignment issues during movement, and my other
filters would likely generate extra harsh edges which could hurt
compression).
for interlaced coding (say, with some typical algo), would one usually have
to, say, split up the interlaced frames and code each seperately or such,
and on decode re-interlace them? (this conjures the idea of 2 parallel video
streams, one for all the even and another for all the odd lines...).

sorry if I am being stupid here, I am unsure...




Report this thread to moderator Post Follow-up to this message
Old Post
cr88192
10-27-04 01:55 PM


Re: misc: algos to de-interlace video
"cr88192" <cr88192@remove.hotmail.com> wrote in message news:<4IMfd.1204$Tg.
465@news.flashnewsgroups.com>...

> what if I want the video de-interlaced?... this is not presenting itself a
s
> a terribly easy issue.

See http://www.100fps.com/

-t

Report this thread to moderator Post Follow-up to this message
Old Post
Anthony J Bybell
10-28-04 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Compression archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:01 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.