Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Trouble With H264 (avc1)
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
MrSmite
Posted: Dec 26 2011, 01:15 AM


Advanced Member


Group: Members
Posts: 102
Member No.: 25620
Joined: 30-May 09



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)
 
     Top
ale5000
Posted: Dec 26 2011, 01:31 AM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



- Get the QuickTime input plugin by fccHandler
- 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 x264vfw + AC-3 ACM Codec and then remux the resulting file to mkv with MKVToolnix.
Edit 2: If you want a lossless video format try Lagarith instead of Huffyuv.

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
MrSmite
Posted: Dec 29 2011, 04:58 PM


Advanced Member


Group: Members
Posts: 102
Member No.: 25620
Joined: 30-May 09



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).
 
     Top
ale5000
Posted: Dec 30 2011, 01:53 AM


Advanced Member


Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07



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 x264vfw or enable H.264/AVC in ffdshow VFW interface => Decoder => Codecs
For AAC you need this: http://home.comcast.net/~fcchandler/AACACM/

--------------------
New VirtualDub forum
VirtualDub AIO (All-in-One installer for VirtualDub and plugins)
Codec Toolbox RS (A tool to read/change merit of codecs and many other things)
Input plugins for VirtualDub / ACM codecs / VFW codecs
 
     Top
-vdub-
Posted: Dec 30 2011, 03:15 AM


Advanced Member


Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10



Download a Graph Editor software

Graph Edit

or

Graph Studio
(you may need XMLite to run this one, worth it as more options than GraphEdit. The XMLite 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.
 
    Top
MrSmite
Posted: Dec 30 2011, 04:36 AM


Advanced Member


Group: Members
Posts: 102
Member No.: 25620
Joined: 30-May 09



@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.
 
     Top
-vdub-
Posted: Dec 30 2011, 09:49 PM


Advanced Member


Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10



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.
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
6 replies since Dec 26 2011, 01:15 AM Track this topic | Email this topic | Print this topic

<< Back to Codec Discussion