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 > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd May 2006, 20:14   #1  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
interlaced encoding in x264 is here

Alex Izvorski of Auroras Entertainment has sent a patch adding initial interlaced encoding support to x264 to the maillist, thanks a lot!

Quote:
Hello,

I am pleased to announce the initial release of interlaced support for
x264. This was written by me with invaluable help from Loren Merritt
for Auroras Entertainment LLC.

Current status:
- fixed interlacing only, no PAFF/MBAFF yet
- all analysis modes and all motion estimation options work
- multiple ref frames work
- CABAC and CAVLC work
- no B-frames
- no trellis
- possibly other options don't work: mixed refs, RDO, B-pyramid

Some more information is in the included README.interlacing file.

The patch is relative to x264 r523 from svn, it may not apply cleanly
to the latest version. The patch is copyright Auroras Entertainment
LLC, 2006 and released under the same terms as x264 (GPL v2 or later).

We would like to support further efforts to develop interlacing, please
get in touch with me if you would like to be involved.

Enjoy!

-Alex Izvorski
enjoy!

edit: hum seems the patch attachement has been removed by the mailserver :/
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free

Last edited by bond; 23rd May 2006 at 20:36.
bond is offline   Reply With Quote
Old 23rd May 2006, 20:23   #2  |  Link
ChronoCross
Does it really matter?
 
ChronoCross's Avatar
 
Join Date: Jun 2004
Location: Chicago, IL
Posts: 1,542
I don't have much exp with interlaced encoding. I however do support it's enactment into x264. hopefully all advanced features will work soon. Good luck to all testers and developers.
ChronoCross is offline   Reply With Quote
Old 24th May 2006, 16:48   #3  |  Link
DarkZell666
aka XaS
 
DarkZell666's Avatar
 
Join Date: Jun 2005
Location: France
Posts: 1,122
Well, dunno if it's something good to happen, but I guess it'll be useful for someone

Thx for the contribution !
__________________

Q9300 OC @ 3.2ghz / Asus P5E3 / 4GB PC10600 / Geforce 8600 GTS
DarkZell666 is offline   Reply With Quote
Old 24th May 2006, 16:54   #4  |  Link
SeeMoreDigital
Life looks better in HD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 11,211
Quote:
Originally Posted by DarkZell666
Well, dunno if it's something good to happen, but I guess it'll be useful for someone

Thx for the contribution !
Generating interlaced encodes from interlaced sources is still the preferable method of encoding IMO


Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 24th May 2006, 17:36   #5  |  Link
SteMa
Registered User
 
Join Date: Nov 2003
Posts: 27
Is there a possibility that the decoder would play an interlaced source as powerdvd6 does (try it with interlaced source, it's very impressing imo)? I mean:fields2frames, than doubling vertical resolution, and pushing every frame that was converted from top field 1 pixel down? So progressive display wouldn't need deinterlacing, which eats up cpu power, isn't as smooth, and it could have artifacts.
SteMa is offline   Reply With Quote
Old 24th May 2006, 18:20   #6  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
What decoder? If you mean libavcodec (in ffdshow), you should probably ask in some other thread or make a new one. Anyway, what you described PowerDVD is doing, is deinterlacing, most likely close to bobbing. The same technique can be used on all interlaced sources, no matter the decoder. AFAIK ffdshow includes some deinterlacing filters that do just that. Greedy2frame and TomsMoComp from DScaler/AVISynth are better, but they'll require more CPU time.
nm is offline   Reply With Quote
Old 24th May 2006, 20:22   #7  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,182
here is a win32 generic build and the patch for interlacing support.

Use --interlaced switch to enable this mode.
Kurtnoise is offline   Reply With Quote
Old 24th May 2006, 22:09   #8  |  Link
SeeMoreDigital
Life looks better in HD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 11,211
I guess all we need now is an AVC decoder with native interlaced support
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 24th May 2006, 22:27   #9  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,182
If I remember correctly, the avc ateme decoder from the last beta tests supports interlacing. Not available for a large public though...and CoreAVC Pro Edition supports already PAFF (but not yet included in this patch).

Last edited by Kurtnoise; 24th May 2006 at 22:31.
Kurtnoise is offline   Reply With Quote
Old 24th May 2006, 22:35   #10  |  Link
SeeMoreDigital
Life looks better in HD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 11,211
Sadly I don't posses either of those decoders... So that's me out of the testing


Cheers
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 25th May 2006, 01:27   #11  |  Link
Kostarum Rex Persia
Banned
 
Join Date: May 2005
Location: Serbia
Posts: 565
What about libavcodec x264 decoder in FFDSHOW? Can Milan integrate interlaced support in it?
Kostarum Rex Persia is offline   Reply With Quote
Old 25th May 2006, 01:29   #12  |  Link
Revgen
Registered User
 
Join Date: Sep 2004
Location: Near LA, California, USA
Posts: 1,544
Quote:
Originally Posted by Kurtnoise13
here is a win32 generic build and the patch for interlacing support.

Use --interlaced switch to enable this mode.
It crashed when using the --interlaced command.

Are you sure it's been patched?
__________________
Pirate: Now how would you like to die? Would you like to have your head chopped off or be burned at the stake?

Curly: Burned at the stake!

Moe: Why?

Curly: A hot steak is always better than a cold chop.
Revgen is offline   Reply With Quote
Old 25th May 2006, 06:12   #13  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,856
Quote:
What about libavcodec x264 decoder in FFDSHOW? Can Milan integrate interlaced support in it?
No, ffmpeg doesn't support field only / paff. Loren just created a patch in order to decode mbaff, but that doesn't work with the current x264's implementation of interlacing.
__________________
Manao is offline   Reply With Quote
Old 25th May 2006, 07:51   #14  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,182
Quote:
Originally Posted by Revgen
It crashed when using the --interlaced command.

Are you sure it's been patched?
yep...coz it works fine here.

keep in mind these things :
Quote:
Current status:
- fixed interlacing only, no PAFF/MBAFF yet
- all analysis modes and all motion estimation options work
- multiple ref frames work
- CABAC and CAVLC work
- no B-frames
- no trellis
- possibly other options don't work: mixed refs, RDO, B-pyramid
Otherwise post your command line...
Kurtnoise is offline   Reply With Quote
Old 25th May 2006, 09:10   #15  |  Link
Jay Bee
Registered User
 
Join Date: May 2006
Posts: 451
Nice, I've been waiting for interlaced AVC. Is there a decoder that can handle this properly? And will this update make it into GUIs like Avidemux or Vdub? (since I don't use command lines to encode.)
Jay Bee is offline   Reply With Quote
Old 25th May 2006, 09:21   #16  |  Link
Revgen
Registered User
 
Join Date: Sep 2004
Location: Near LA, California, USA
Posts: 1,544
Okay I've got a problem.

Whenver I try to do a 2nd pass x264.exe gives me an error stating that file I'm trying to encode is shorter than the one I tried on the first pass. It tells me that the first pass was 4178 frames long and the 2nd was 2089 frames long.

First pass:

Code:
H:\x264.exe --pass 1 --bitrate 1000 --stats ".stats" --interlaced --nf --no-chroma-me --analyse all  --8x8dct --direct none --progress --no-psnr --output NUL "H:\KOBE\tnt.avs"
Second pass:

Code:
H:\x264.exe --pass 2 --bitrate 1000 --stats ".stats" --interlaced --nf --no-chroma-me --analyse all  --8x8dct --direct none --progress --no-psnr --output "H:\KOBE\tnt.mp4" "H:\KOBE\tnt.avs"
EDIT
Also I tried encoding to ABR and got a green mess.
__________________
Pirate: Now how would you like to die? Would you like to have your head chopped off or be burned at the stake?

Curly: Burned at the stake!

Moe: Why?

Curly: A hot steak is always better than a cold chop.

Last edited by Revgen; 25th May 2006 at 14:50.
Revgen is offline   Reply With Quote
Old 25th May 2006, 15:23   #17  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,182
mmh, right. There is a problem with multipass. Don't know why...
Kurtnoise is offline   Reply With Quote
Old 25th May 2006, 15:41   #18  |  Link
DarkZell666
aka XaS
 
DarkZell666's Avatar
 
Join Date: Jun 2005
Location: France
Posts: 1,122
I dare believe you all noticed that 4178 = 2089 * 2
__________________

Q9300 OC @ 3.2ghz / Asus P5E3 / 4GB PC10600 / Geforce 8600 GTS
DarkZell666 is offline   Reply With Quote
Old 25th May 2006, 15:54   #19  |  Link
Revgen
Registered User
 
Join Date: Sep 2004
Location: Near LA, California, USA
Posts: 1,544
Here's the green mess I talked about earlier.





Also my orginal video is 2089 frames.

EDIT:

I'm viewing the video with CoreAVC Pro.

Here's my ABR script:

H:\x264.exe --bitrate 1000 --interlaced --nf --no-chroma-me --analyse all --8x8dct --direct none --progress --no-psnr --output "H:\KOBE\tnt.mp4" "H:\KOBE\tnt.avs"
__________________
Pirate: Now how would you like to die? Would you like to have your head chopped off or be burned at the stake?

Curly: Burned at the stake!

Moe: Why?

Curly: A hot steak is always better than a cold chop.

Last edited by Revgen; 25th May 2006 at 16:00.
Revgen is offline   Reply With Quote
Old 25th May 2006, 16:13   #20  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,779
Code:
x264 --interlaced --bitrate 770 --bframe 0 --ref 5 --filter -6:-6 --subme 5 --8x8dct --analyse all --progress --no-psnr --no-fast-pskip -o interlaced.mp4 input.avs
after a quick one pass test it seems nero, ateme and cyberlink decode the stream fine, good job!

still i get strange "fref0 = 16.L 18.U 14.L 16.U 12.L 14.U 10.L 12.U 10.U" messages when encoding with kurt's compile
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Reply

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 16:07.


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