Deinterlacing VOBs (in Linux)

The old Video Software Help forum, left visible as an archive.

Deinterlacing VOBs (in Linux)

Postby HellFyre » Wed Dec 04, 2002 12:16 pm

Well, I've been ripping Lain to create an AMV, and noticed that it's interlaced. It's not that hard to deinterlace it in mplayer or even transcode, but when I'm transcoding it, it gives me a few problems. Trying to use DivX4 ends up with cinelerra not being able to read it and horribly desynced sound. If anyone knows how I can deinterlace the video (preferably without as much of a quality loss as I've been getting), keep it compatible with cinelerra, and keep the sound in sync, I'd appreciate it. Thanks.
Thanatos HellFyre
(((((((((-!-)))))))))
"The suffering of others amuses me."
HellFyre
 
Joined: 26 Nov 2002
Location: Missoula, MT

Postby trythil » Wed Dec 04, 2002 3:49 pm

The quick answer:

It's hard.

The best way to use VOBs is to generate an index file for the VOB using mpeg3toc, and then load the index file into Cinelerra, which allows you to (1) edit the video stream directly without additional transcoding and (2) edit with frame-accuracy. For example:

Code: Select all
tccat -i /dev/cdroms/cdrom0 -T 1,-1 | tcdemux -a 0,0 > DISC_01.VOB; mpeg3toc [absolute path to VOB]/DISC_01.VOB


You can use Cinelerra's deinterlace or inverse telecine filters on the footage. However, the deinterlacer is about on par with Premiere's deinterlacing algorithm (e.g. ick), and the inverse telecine filter can be difficult to work with sometimes (it will ask you for the telecine pattern offset, and although it _can_ detect the pattern offset manually, it's not the greatest detection algorithm).

The neat thing is that once you get that working, you can just set the frame rate to 23.976 (or whatever you need it to be) and not have to worry about timebases or whatnot.
This is a block of text that can be added to posts you make. There is a 512 character limit.
trythil
is
 
Joined: 23 Jul 2002
Location: Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch

Postby trythil » Wed Dec 04, 2002 3:52 pm

Fix some stuff there:

"it can detect the pattern offset automatically"

and

Code: Select all
... | mpeg3toc [absolute path to VOB]/DISC_01.VOB DISC_01.TOC
This is a block of text that can be added to posts you make. There is a 512 character limit.
trythil
is
 
Joined: 23 Jul 2002
Location: Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch

Postby HellFyre » Wed Dec 04, 2002 9:02 pm

Alright, well that worked... up until the mpeg3toc part. I tried using mpeg3toc and it returned a nice, tasty little error to me:
mpeg3io_device: Value too large for defined data type
mpeg3io_open_file: File too large
Segmentation fault

Grargh. Argh. YAR. Would it be easier to rip each chapter of the DVD into a seperate .vob and edit them individually? Cuz not being able to work with this video is getting annoying.
Thanatos HellFyre
(((((((((-!-)))))))))
"The suffering of others amuses me."
HellFyre
 
Joined: 26 Nov 2002
Location: Missoula, MT

Postby trythil » Wed Dec 04, 2002 11:16 pm

I've never seen that before...

What filesystem type are you using?

You probably know that ext2 has a limitation of 2 GB on files and 4 TB for the entire filesystem, even though the Linux VFS can go much higher.

On my XFS filesystem, I've been able to work with Quicktime files in the tens of gigabytes, and I've managed to make mpeg3toc work fine on a relatively massive VOB:

Code: Select all
sh-2.05a$ ls -lh
total 3.0G
-rw-r--r--    1 trythil  users        2.9G Nov 13 19:03 EVA02.VOB


...so I'm pretty sure it's not an internal limitation of mpeg3toc.

You _could_ try ripping each chapter individually and work from there, I suppose, but it's a good idea to figure out just what is going wrong.
This is a block of text that can be added to posts you make. There is a 512 character limit.
trythil
is
 
Joined: 23 Jul 2002
Location: Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch

Postby HellFyre » Thu Dec 05, 2002 1:29 am

Well... I'm using ext3 (journalised ext2) for a filesystem. I've heard some pretty awful things about XFS reponse when your filesystem crashes. Anyways, I tried individual chapter ripping and cinelerra's response to deinterlacing etc. was less than encouraging. So I tried mencoder, and mencoder refuses to process the deinterlacing tag. It's frustrating the hell out of me. Anyone worked with this and know what might cause it?
Thanatos HellFyre
(((((((((-!-)))))))))
"The suffering of others amuses me."
HellFyre
 
Joined: 26 Nov 2002
Location: Missoula, MT

Postby danielwang » Fri Dec 06, 2002 10:30 pm

* L I N U X = THE PROBLEM !!! *
OK, that's enough.

I don't think there is any good software under Linux to do that, and even so there seems to be a Linuxy problem in storing the files as well. Here's my ideas:

- Don't use DivX, it removes unlinked-significant objects, a lot of invisible data that makes it hard to play. I would be coming up with a better, non-flawed vector algorithm architecture but I'm lazy and stupid. Use something else.

- Don't use Cinerella, or at least get the new version. THere is a bug in the older version, I believe.

- Software issue. Get (pirate if its not free) the latest in DVD rippers, encoders etc. Update everything just to make sure. And RTFM the parameters/FAQ/Readme, there may be something you didn't see.

- Enough RAM and stuff? DON'T try to multitask, i had this problem with burning CDs with Linux until I decided to close StarOffice, then it worked.

- Linux is for hackers, not for productivity. Pirate the latest: Microsoft Windows .NET Advanced Gundam, Director's Cut. With the features, and special code and hacks by the engineers that didn't make the original release! Now, you get the XP PowerToys Graphing Calculator instead of that boring Windows Calculator!
danielwang
Village Idiot
 
Joined: 03 May 2002
Location: Denver, CO Banned: Several times!

Postby trythil » Fri Dec 06, 2002 11:15 pm

danielwang wrote:* L I N U X = THE PROBLEM !!! *
OK, that's enough.

I don't think there is any good software under Linux to do that, and even so there seems to be a Linuxy problem in storing the files as well. Here's my ideas:


Really? I'm doing "that" right now with my latest AMV. I'm doing the impossible!
This is a block of text that can be added to posts you make. There is a 512 character limit.
trythil
is
 
Joined: 23 Jul 2002
Location: Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch

Postby ErMaC » Sat Dec 07, 2002 3:14 am

The idiocy of danielwang never ceases to amaze me.
User avatar
ErMaC
The Man who puts the "E" in READFAG
 
Joined: 24 Feb 2001
Location: Irvine, CA


Return to Video Software Help Archive

Who is online

Users browsing this forum: No registered users and 1 guest