PDA

View Full Version : How to encode H.264/Lossless in VirtualDubMod using ffdshow


Acid_Reign
4th August 2007, 05:56
I'm only asking this because I have exhausted every conceivable Google keyword search combination I can think of, and have come up fruitless.

Basically what I'm trying to do is encode H.264 AVIs using VirtualDubMod. Reason I'm doing that rather than using an MP4/MKV container is because I need to pass said encodes onto another editor, who will also be using VDubMod, and he needs frame-accurate timecode which can't be obtained through a DirectShowSource AVS.

Now, naturally I can do this with x264 but I don't see any option in the built-in config for lossless. I used to have both options in ffdshow's Encoder drop-down list ("H.264" and "Lossless H.264") but I was getting an error message on the latter in VDM so I decided to reinstall my codec pack (K-Lite). But when I did that, they both disappeared, and I haven't been able to find them again, be it through obtaining the Mega pack or installing CCCP or the latest FFDS build or whatever.

Can anyone point me in the right direction? Thanks.

foxyshadis
4th August 2007, 13:01
You can use ffmpegsource with mkv or mp4, along with assumefps, to get frame-accuracy with no seeking randomness at all.

With ffdshow, the CCCP version you want is still in beta and somewhat hard to find, or you can better yet just use the latest official releases (now called tryouts fork): http://sourceforge.net/projects/ffdshow-tryout/

Acid_Reign
4th August 2007, 14:54
Just installed ffmpegsource, and it seems to be running great. Tried the tryout build as well, which restored the H.264 encoding options. Thanks for that!

However, I still get the same error message when attempting to encode lossless:

"Cannot start video compression:

An unknown error occurred (may be corrupt data).
(error code -100)"

Is this likely a bug in the beta (grabbed the latest stable build) or in VDM (version 1.5.10.2)? I've tried multiple video sources, and they all seem to generate this error, so I doubt that the data is actually corrupt.

foxyshadis
4th August 2007, 22:18
Hmm, you're right, even with the latest SVN. Nothing stands out while debugging, I'll have to dig deeper. I guess you could use q1, in the meantime, it's much closer to lossless than mpeg-4 asp's q1.

Acid_Reign
5th August 2007, 08:08
Hmm, you're right, even with the latest SVN. Nothing stands out while debugging, I'll have to dig deeper. I guess you could use q1, in the meantime, it's much closer to lossless than mpeg-4 asp's q1.
Alright thanks, I'll try that for now.

Let me know if you come up with anything.