Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th June 2009, 16:52   #1  |  Link
extra
Registered User
 
Join Date: Apr 2009
Posts: 10
Uncompressed Interlaced Video?

Hi,

Sorry if this is not the right place to post this question.

I have some interlaced video in the form of frame pictures (a frame picture contains two fields). I want to make a video file so that I can play the file in a player and make use of the player's deinterlacing ability. Also I want to keep the video as uncompressed to best maintain the quality. Then I ran into a puzzle: how to make an uncompressed interlaced video? The interlaced video I have ever seen are all compressed... Please help if you got any idea.

Extra
extra is offline   Reply With Quote
Old 29th June 2009, 17:01   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
What is the format of your source video? Container? Codec?

What player are you referring to?
Guest is offline   Reply With Quote
Old 29th June 2009, 17:02   #3  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by extra View Post
I have some interlaced video in the form of frame pictures (a frame picture contains two fields). I want to make a video file so that I can play the file in a player and make use of the player's deinterlacing ability. Also I want to keep the video as uncompressed to best maintain the quality.
Why? The only reason I can think of would be archiving important footage or lossless intermediates for editing. And even then I'd compress losslessly with x264, FFV1, huffyuv, Lagarith or some other codec. What player (software and hardware) do you target and what is the resolution of your video?
nm is offline   Reply With Quote
Old 29th June 2009, 19:08   #4  |  Link
extra
Registered User
 
Join Date: Apr 2009
Posts: 10
Thanks for the reply. The input is not in a video format. It's a sequence of images.

Actually we are doing some research on deinterlacing algorithms and would like to compare our algorithm with those adopted by some popular players, such as WMP, MPC or VLC player. That's why we don't want to use lossy compression.

To use lossless video compression is a good idea actually. But I still want to know if "uncompressed interlaced video" is possible just out of curiosity.
extra is offline   Reply With Quote
Old 29th June 2009, 19:29   #5  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by extra View Post
Actually we are doing some research on deinterlacing algorithms and would like to compare our algorithm with those adopted by some popular players, such as WMP, MPC or VLC player.
Ok, check out yadif in MPlayer and ffdshow too.

Quote:
But I still want to know if "uncompressed interlaced video" is possible just out of curiosity.
Sure. You need to put it in a container though to make those players play it back. Raw/uncompressed AVI would probably work in all of them. ffmpeg should be able to convert an image sequence to uncompressed AVI.
nm is offline   Reply With Quote
Old 30th June 2009, 15:24   #6  |  Link
extra
Registered User
 
Join Date: Apr 2009
Posts: 10
Quote:
Ok, check out yadif in MPlayer and ffdshow too.
I will give a try

Quote:
Sure. You need to put it in a container though to make those players play it back. Raw/uncompressed AVI would probably work in all of them. ffmpeg should be able to convert an image sequence to uncompressed AVI.
I tried to use uncompressed AVI for progressive video without any problem. But for interlaced video, there's no place to specify "interlaced" such that the player could call its deinterlacing algorithm automatically... that's my question actually...
extra is offline   Reply With Quote
Old 30th June 2009, 15:50   #7  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
AVI does not carry any interlaced/progressive flag, so your goal is not possible.
Guest is offline   Reply With Quote
Old 30th June 2009, 16:24   #8  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by extra View Post
I tried to use uncompressed AVI for progressive video without any problem. But for interlaced video, there's no place to specify "interlaced" such that the player could call its deinterlacing algorithm automatically... that's my question actually...
Well, VLC and MPlayer never deinterlace automatically anyway. For DirectShow-based players such as MPC(-HC) and WMP, you would need to use some other container and possibly a lossy compression scheme. I think ffdshow can set the DirectShow interlaced flag though, so you can force (hardware) deinterlacing that way if the player doesn't provide such an option.
nm is offline   Reply With Quote
Old 30th June 2009, 18:19   #9  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
Compression algorithms were designed to solve the problem of quantity

If you have 3 seconds of a video (75 images or 150 half images) you won't need any compression.

If you have 98 minutes of Full PAL video you'll definitively need compression.

So it depends on your storage space.

I think that AVI has information of interlaced and pregressive, maybe I'm wrong, but there are many sources for AVI that are interlaced (eg MiniDV). It depends solely on the codec, in my view.
Ghitulescu is offline   Reply With Quote
Old 30th June 2009, 18:28   #10  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by Ghitulescu View Post
I think that AVI has information of interlaced and pregressive, maybe I'm wrong, but there are many sources for AVI that are interlaced (eg MiniDV). It depends solely on the codec, in my view.
AVI can certainly contain interlaced video, both compressed and uncompressed, but there are no flags in the container to signal such content. Uncompressed video needs container-level signaling for automatic deinterlacing -- unless the player has some content-based detection scheme.
nm is offline   Reply With Quote
Old 30th June 2009, 18:35   #11  |  Link
extra
Registered User
 
Join Date: Apr 2009
Posts: 10
Quote:
Originally Posted by nm View Post
AVI can certainly contain interlaced video, both compressed and uncompressed, but there are no flags in the container to signal such content. Uncompressed video needs container-level signaling for automatic deinterlacing -- unless the player has some content-based detection scheme.
Why don't we have FourCC's for interlaced uncompressed video? For example: IRGB, then we can put it in the biCompression field of the BITMAPINFOHEADER struct.

Actually, in http://www.fourcc.org/ there are YUV formats called IUYV and IY41 for interlaced YUV. But they are not commonly used as far as I know and I would doubt any player can play them.
extra is offline   Reply With Quote
Reply

Tags
interlacing, uncompressed video

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 22:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.