| Printable Version of Topic
Click here to view this topic in its original format |
| Unofficial VirtualDub Support Forums > Codec Discussion > Trouble With H264 (avc1) |
| Posted by: MrSmite Dec 26 2011, 01:15 AM |
| I've been working on converting all the Blizzard Entertainment cinematics to DVD but have run into trouble with one that is an H264 encoded .mp4 Here is my normal workflow: 1) Open video in VDub (no special input driver selected) 2) Add necessary audio / video filters 3) Export as Huffyuv v2.1.1 with 48,000 Khz PCM audio 4) Convert audio to AC3 using Sony Vegas 7 5) Convert video to .mkv using TMPGEnc 6) Eventually burn to DVD (with other vids / menus) using Sony DVD Architect Problem(s): Scenario A Open the video in VDub with no special input driver. Video opens, seeks and edits fine. VDub reports video decompressor: H.264 (avc1) Mode=3, RGB32 Export takes about 7 min. but final video has audio / video out of sync. Note: The only cut I made was remove the first 132 frames of the ESRB rating. This shouldn't cause sync issues. Scenario B Open the video in VDub and select "DirectShowInputDriver". This causes VDub to load ffdshow. Video opens fine, seeking is terrible. VDub reports video decompressor: ffdshow Export cancelled it because it said ~38 min. for a 2 min. video clip Scenario C Install CoreAVC Professional codec. Open the video in VDub and select "DirectShowInputDriver". This causes VDub to load ffdshow. Video opens fine, seeking is terrible. VDub reports video decompressor: CoreAVC Export cancelled it because it said ~38 min. for a 2 min. video clip The only way I could successfully convert this video was to use AVS Video Converter to create a 13 GB uncompressed AVI and use that in VDub to make my edits. Why is H264 so difficult to process? I even tried loading the original into Sony Vegas 7 but it had flickering green frames during the decoding process. I'd really like to be able to convert a file which was originally 34 MB without creating a 13 GB intermediary file. System Info: Pentium 4 3.2 Ghz with Hyperthreading XP Sp3 4 GB RAM (DDR) |
| Posted by: ale5000 Dec 26 2011, 01:31 AM |
| - Get the http://forums.virtualdub.org/index.php?act=ST&f=7&t=19488 - Remove the other QuickTime and MP4 input plugins that may interfere. - Now open VirtualDub and open the video. - Go on File => File information to check what codecs are used for decoding (like "ffdshow-tryout, x264vfw, AAC ACM Codec" and in case updated them with VirtualDub closed). - Now re-try again. PS: Also post the screenshot of File => File information Edit: You can also reduce the steps and create an avi file with H.264 video + AC3 audio directly from VirtualDub using http://komisar.gin.by/ + http://home.comcast.net/~fcchandler/AC3ACM/ and then remux the resulting file to mkv with http://www.bunkus.org/videotools/mkvtoolnix/. Edit 2: If you want a lossless video format try http://lags.leetcode.net/codec.html instead of Huffyuv. |
| Posted by: MrSmite Dec 29 2011, 04:58 PM |
| Strange, I deleted all the plugins in my 'plugins32' folder and downloaded the ones by fcchandler and when I open it I get these very strange results: 1: Using the Quicktime plugin, VDub says "missing codec (avc1)"... even though I have both ffdshow and CoreAVC installed. 2: Using DirectShowInputDriver it loads both ffdshow and CoreAVC and then I get the same problem as in my OP. So I decided to uninstall CoreAVC (leaving ffdshow)... 3: DirectShowInputDriver says "unable to render video" 4: Quicktime plugin loads and shows "ffdshow video codec (avc1)" but now it can't decode the AAC audio stream even though it could before. File information for the audio shows "actual quicktime format: MPEG-4 AAC", "decompressor: unknown" It looks like uninstalling CoreAVC also removed my AAC settings (I had fcchandler's decoder installed). |
| Posted by: ale5000 Dec 30 2011, 01:53 AM |
| It never use DirectShow decoders like CoreAVC (excluding DirectShowInputDriver), also it has nothing to do with AAC. It need VFW/ACM codecs. For AVC1 you need http://komisar.gin.by/ or enable H.264/AVC in ffdshow VFW interface => Decoder => Codecs For AAC you need this: http://home.comcast.net/~fcchandler/AACACM/ |
| Posted by: -vdub- Dec 30 2011, 03:15 AM |
| Download a Graph Editor software http://www.videohelp.com/tools/GraphEdit or http://www.videohelp.com/tools/GraphStudio (you may need http://www.microsoft.com/downloads/details.aspx?familyid=d7b5dc81-ad14-4de2-8ad5-8c4a9aab5992&displaylang=en to run this one, worth it as more options than GraphEdit. The http://www.microsoft.com/downloads/details.aspx?familyid=d7b5dc81-ad14-4de2-8ad5-8c4a9aab5992&displaylang=en link is also linked on the same web page) Drop your file into the chosen Graph Utility and see where it is going wrong. Maybe you find the splitter or something else that causing problem. Post the graph so we can see the problem your having with your setup. |
| Posted by: MrSmite Dec 30 2011, 04:36 AM |
| @ale5000 Right, I had the AAC decoder from fcchandler installed already. When I uninstalled CoreAVC it removed the registry entries for AAC which is why it appeared I had no decompressor anymore @-vdub-, ale5000 Thanks but it seems that I was using an older revision of the Quicktime plugin. I removed all my plugins and downloaded fresh ones from fcchandler and also reinstalled his AAC decompressor. Everything works fine again. |
| Posted by: -vdub- Dec 30 2011, 09:49 PM |
| Good news you have fixed your problem. I'm thinking that the post above or similar should be made a sticky would be used to help others faster by seeing what their system problem is with filters. There is also 'Graph Studio Next' I have spotted on 'Graph Studio' link above post, I haven't tried it yet so cannot comment if ok. Says it is meant to be continuation of 'Graph Studio' since that is no longer maintained. |