PDA

View Full Version : WDM + VirtualDubMod + MJPEG


maxxrock
18th January 2006, 10:53
I have a WDM capture card (digital DVB-T TV tuner, Asus My Cinema-P7131 Dual). I can capture with half resolution (384x288) VirtualDubMod, but not at full resolution (768x576). Also, if I try to capture via S-VHS, VirtualDubMod freezes totally and will *not* shut down at all!

Pegasus Imaging PCVideo M-JPEG VfW Codec V3 does not work too good at all. It does not capture if I try to crop the video realtime or use noise reduction or anything. What I get is "VirtualDub Error Cannot start video compression: An unknown error occured (may be corrupt data). (error code -100)

Also, while VirtualDubMod does open the resulting MJPEG file, it refuses to re-encode it to XviD or do any other postprocessing (like filters) with it. I can do absolutely nothing with the file, which makes the huge M-JPEG file absolutely useless!

I have tried with pretty much every data format. RGB-24 should work with VirtualDubMod, but doesn't.

With LEAD MCMP/MJPEG VfW Codec I hae a better luck. It works with both cropping and noise reduction and it can be postprocessed with VirtualDubMod. Filters works, as does XviD encoding. But the problem is that the resulting XviD is jerky ie. movement is not smooth! It is only slightly jerky, but this is definately not acceptable. Still, the frame rate and frame count is the same in both the MJPEG and XviD. And I do not get much dropped frames during capturing.

It's not that I get dropped frames while capturing.
It's not that I lack CPU power to play the XvID.
It's not that the XviD has less frames.
It's not that the XviD has a different frame rate.

So, what is it?

The solution probably is, that I do have to capture with a WDM compatible software, most likely iuVCR. But I would *really* rather use VirtualDubMod for both capturing and especially for postprocessing. I like to have a GUI and am. not too keen on scripting, so I amn not (at least at this point) a fan of AviSynth.

Is this a problem with the MJPEG codec(s)?
Is this a problem with the MJPEG codec settings?
Is this a problem with VirtualDubMod settings?
Is this a problem with XviD settings? (unlikely)

What MJPEG codec *does* work with VirtualDubMod?

What data formats (ie. color spaces) does VirtualDubMod really support?

My card is WDM and (native) YUY2. It would be really nive if the software I'm using would support them both. I would like to be able to capture to use cropping (while capturing) and capture to YUY2 MJPEG. Then I would use VirtualDubMod and filters (at least Smart Smoothing for noise reduction while preserving details) and re-encode to two pass XviD. For sound I will probaly use WMA (DivX ;) Audio).

Any help and hints are appriciated. I'm beginning to be rather clueless here.

PS. HuffYUV does not work either and takes too much HDD space anyways, so it really is out of question.

PPS. I will not be buying a new capture card either, since I just bought this one and I don't have too much money to spend.

johnsonlam
19th January 2006, 14:50
I have a WDM capture card (digital DVB-T TV tuner, Asus My Cinema-P7131 Dual). I can capture with half resolution (384x288) VirtualDubMod, but not at full resolution (768x576). Also, if I try to capture via S-VHS, VirtualDubMod freezes totally and will *not* shut down at all!


Try capture with Media Player Classics, install "Huffyuv v2.1.1 - CCESP Patch v0.2.5" video codec, sound capture with "uncompress" wav, split into 2 file, and mux them with VirtualDub (I don't use MPEG2, so stick to original VDub).


Pegasus Imaging PCVideo M-JPEG VfW Codec V3 does not work too good at all. It does not capture if I try to crop the video realtime or use noise reduction or anything. What I get is "VirtualDub Error Cannot start video compression: An unknown error occured (may be corrupt data). (error code -100)


Use Huffyuv mentioned above, ArithYUV (no RGB, only YUY2) or MSULoseless Codec.


Also, while VirtualDubMod does open the resulting MJPEG file, it refuses to re-encode it to XviD or do any other postprocessing (like filters) with it. I can do absolutely nothing with the file, which makes the huge M-JPEG file absolutely useless!


MJPEG is not a precise codec, the only reason to use it is because it can easily excerpt a single frame, which is ideal for digital camera.


It's not that I get dropped frames while capturing.
It's not that I lack CPU power to play the XvID.
It's not that the XviD has less frames.
It's not that the XviD has a different frame rate.

So, what is it?


I'm not codec professional, so unable to answer all your questions, but I can share the way I did my capture.

1) I'm using Canpus ADVC-1394, luckily Media Player Classics works, try your card

2) I capture in loseless HuffYUV, then did the filtering with VDub, mux the video and sound

3) Run a 2-Pass XVID and resize the video (to save hard disk space, 768 pixel horizontal are too much for me)

4) During 2nd Pass, encode WAV to MP3 (CBR)


Is this a problem with the MJPEG codec(s)?
Is this a problem with the MJPEG codec settings?
Is this a problem with VirtualDubMod settings?
Is this a problem with XviD settings? (unlikely)

What MJPEG codec *does* work with VirtualDubMod?


Yes, MJPEG did have problem, read:

http://neuron2.net/www.math.berkeley.edu/benrg/huffyuv.html#MJPEG


PS. HuffYUV does not work either and takes too much HDD space anyways, so it really is out of question.

PPS. I will not be buying a new capture card either, since I just bought this one and I don't have too much money to spend.

If you insist not using HuffYUV, I'm sorry that you may try encode with MPEG2 directly with software (such as WinProducer)

HuffYUV can capture 15min35sec 720x576 (PAL) with 8.6GB (sound 78.7MB), and you can obtain loseless quality! In nowadays high-end processor with a 200GB hard disk, this is not a tough job anymore.