MP4 problem H.263 codec

The old Video Software Help forum, left visible as an archive.
User avatar
Willen
Now in Hi-Def!
Joined: Sun Jul 10, 2005 1:50 am
Status: Melancholy
Location: SOS-Dan HQ
Org Profile

Post by Willen » Sun Jun 04, 2006 7:02 am

gepetto wrote:
Willen wrote:At this point, I'm going to recommend installing CCCP or plain ffdshow.
Weren't people having problems opening Premiere after they installed CCCP? "Adobe Premiere could not find any valid editing modes. Please reinstall Adobe Premiere and start again."
I think the problem lies in the fact that CCCP will uninstall or de-register codecs that will conflict with it when you install it. And Premiere relies on some of those removed or disabled codecs.
Communist_Hitler wrote:i think i have ffdshow. does it come with amvapp, because i have that installed (sorry for giving wrong information). But it still doesn't work.And does this CCCP really have problems because I don't want to have to reinstall Premiere and lose the editing I've done so far.
Click on Start > All Programs and look for ffdshow. Choose Video decoder configuration and under Codecs look for H.263+ and H.264 in the right pane. If ffdshow is handling the decoding, under the Decoder column, it should say libavcodec. Change it if necessary and click OK. If that doesn't solve your problem, then I'm at a loss.
Having trouble playing back videos? I recommend: Image

User avatar
Zero1
Joined: Fri Jan 02, 2004 12:51 pm
Location: Sheffield, United Kingdom
Contact:
Org Profile

Post by Zero1 » Sun Jun 04, 2006 8:10 am

gepetto wrote:
Communist_Hitler wrote:I used the "Yamb" thingy but the AVI still isn't readable. That means it's a codec problem, right?

Actually i don't know if the codec is h.263 or h.264... BECAUSE NONE OF THE PROGRAMS THAT COULD TELL ME WHICH ONE OPEN THE DAMN FILE!!!

either way the extracted avi was viewable without any quality loss.
Care to explain?
Most if not all video editing software uses the Video for Windows interface, which has been around since 1991 or so and just isn't capable of new types of compression. This includes XviD (it's real name for the standard is MPEG-4 ASP) and H.264. When you play H.264, most decoders/players (if not all) do so via directshow, which is not Video for Windows. Directshow is perfectly able to view such files, but VfW will not (or if it does, does so in a broken way).

So there you go, players are using directshow and that's why it works; video editing apps are using VfW and so it does not work.

What you should do now is create that AVISynth script using Directshowsource("video.mp4") then drag that .avs into virtualdub, select a lossless codec such as Lagarith, Huffyuv or even a lossy one like MJPG (but do not use XviD or x264 here) and save as AVI.

The previous method described to you only extracted the H.264 stream and put it into AVI, which is twice as evil than it being in MP4 and indeed less likely to work (since AVI is too old to handle H.264 without hacks).

You will need FFDShow to do this, but you should uninstall the FFDShow that came with AMVapp (it's waaaaaaaay old), reboot, and install CCCP as advised already.

User avatar
Communist_Hitler
Joined: Fri May 26, 2006 12:21 pm
Org Profile

Post by Communist_Hitler » Sun Jun 04, 2006 9:18 am

I did all that, and then tried to open the mp4 on virtualdubmod. I got this error.

Image

Then I made a simple AviSynth script that has only one line (just imports the video with directshowsource). I tried loading THAT on virtualdubmod and this error came up:


Image

I then tried to open the AVI I extracted with YAMB. Opening it normally, I got the same error as on the first screenshot, and when I tried to use the "Open file via AviSynth" command, I got yet another different error message:

Image

so, now what?

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Sun Jun 04, 2006 6:23 pm

Download this:
http://www.digital-digest.com/dvd/downl ... t_141.html

Unzip it, double-click on register.bat, and then open the program (GraphEdit.exe), go to 'Render Media File...' and choose the MP4 you're trying to open. Take a screenshot of what appears on screen, and post it here. That will probably help to figure this mess out.


The error about there not being a VFW decompressor for h264 is because you don't have ffdshow's VFW interface set to decode it, if you have ffdshow's VFW interface at all (the CCCP ffdshow build doesn't include it; if you don't have it, get one of the new builds here - uninstall whatever version of ffdshow you have before installing a full build). Take the same steps as Willen described to get the Video decoder portion set right, except go to Programs->ffdshow->VFW codec configuration. If you haven't already set the Video decoder page, do that too.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
Communist_Hitler
Joined: Fri May 26, 2006 12:21 pm
Org Profile

Post by Communist_Hitler » Sun Jun 04, 2006 7:07 pm

I listen and obey

Image

and how do I configure the ffdshow thingy? I had downloaded the one Willen told me to get (from sourceforge.net, so it's probably the latest version) before I got those errors I posted in the screenshots.

Please help me!!
We must eliminate all who are different!!!

And the best way is to make everyone equal!
Heil!!!!

User avatar
Gepetto
Mr. Poopy Pants
Joined: Thu Jun 10, 2004 10:11 pm
Status: Bored to tears
Location: The Tokyo Settlement
Contact:
Org Profile

Post by Gepetto » Sun Jun 04, 2006 7:21 pm

From my experience, if Qyot27 can't help you with a codec problem, that problem is unsolvable.

This problem just got way above my head a few posts ago so I'm leaving now. Sorry I couldn't be of more help.
And God spoke unto the Chicken, and He said: "Thou shalt crosseth the road", and the Chicken did cross the road, and there was much rejoicing.
My DeviantART profile

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Sun Jun 04, 2006 9:37 pm

Communist_Hitler wrote:I listen and obey

Image

and how do I configure the ffdshow thingy? I had downloaded the one Willen told me to get (from sourceforge.net, so it's probably the latest version) before I got those errors I posted in the screenshots.

Please help me!!
What that means is that you don't have the right software installed to playback the file.

No, the Sourceforge version is horrendously outdated. The ones on Sourceforge are nearly two years old; I don't even know if that alpha version from 2004 supports H.264.

I posted the link to the latest versions in my last post - the one I've linked to below is from May 8th of this year. But to be simple about this, download and install this version (remember to uninstall the one you got from Sourceforge before installing the new one).
http://ffdshow.faireal.net/mirror/ffdsh ... 6-SSE2.exe (Right click, Save Target As...)


During the setup, it will ask you if you want to decode H.263+ and H.264 with ffdshow. Keep those checked; for the purposes of this explanation, the rest of the checkboxes can be left blank. The next screen is for the audio decoder. Keep Ogg Vorbis, AC3, and AAC checked and uncheck everything else. Then finish out the setup like normal.

Install Haali's Media Splitter:
http://haali.cs.msu.ru/mkv/

Now you should be able to use Graphedit, although what that also means is that you can play the files in Windows Media Player and can use DirectShowSource in AviSynth.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
Willen
Now in Hi-Def!
Joined: Sun Jul 10, 2005 1:50 am
Status: Melancholy
Location: SOS-Dan HQ
Org Profile

Post by Willen » Mon Jun 05, 2006 2:46 am

Qyot27 wrote:No, the Sourceforge version is horrendously outdated. The ones on Sourceforge are nearly two years old; I don't even know if that alpha version from 2004 supports H.264.
Gah, this is what happens when I post replies just before I go to sleep. I meant to link HERE. If I remember correctly, the alpha 2004 didn't reliably decode H.264, at least it didn't for me.
Having trouble playing back videos? I recommend: Image

User avatar
Communist_Hitler
Joined: Fri May 26, 2006 12:21 pm
Org Profile

Post by Communist_Hitler » Tue Jun 06, 2006 6:06 pm

I was unable to open the link to Haali's Media Splitter, but I installed FFDShow through the link in Qyot27's last post, installed it as per your instructions and decided to run graphedit again.

I got the same error trying to open the mp4. However, the script that directshowsource'd the mp4, as well as the avi extracted with YAMB, opened in graphedit.

Script:
Image

AVI:
Image

I cut the AVI screenshot so that the horizontal resolution wouldn't be too large and it would still be readable, but there aren't any parts missing.
We must eliminate all who are different!!!

And the best way is to make everyone equal!
Heil!!!!

User avatar
Zero1
Joined: Fri Jan 02, 2004 12:51 pm
Location: Sheffield, United Kingdom
Contact:
Org Profile

Post by Zero1 » Tue Jun 06, 2006 7:30 pm

Jesus fucking christ, do people not read what I say?

Most if not all video editing software uses the Video for Windows interface, which has been around since 1991 or so and just isn't capable of new types of compression. This includes XviD (it's real name for the standard is MPEG-4 ASP) and H.264. When you play H.264, most decoders/players (if not all) do so via directshow, which is not Video for Windows. Directshow is perfectly able to view such files, but VfW will not (or if it does, does so in a broken way).

So there you go, players are using directshow and that's why it works; video editing apps are using VfW and so it does not work.

What you should do now is create that AVISynth script using Directshowsource("video.mp4") then drag that .avs into virtualdub, select a lossless codec such as Lagarith, Huffyuv or even a lossy one like MJPG (but do not use XviD or x264 here) and save as AVI.

The previous method described to you only extracted the H.264 stream and put it into AVI, which is twice as evil than it being in MP4 and indeed less likely to work (since AVI is too old to handle H.264 without hacks).

You will need FFDShow to do this, but you should uninstall the FFDShow that came with AMVapp (it's waaaaaaaay old), reboot, and install CCCP as advised already.


Well now to address that screenshot directly.
Communist_Hitler wrote:I did all that, and then tried to open the mp4 on virtualdubmod. I got this error.

Image
No, you didn't. Virtualdub/Mod has never, and will never read MP4 files just by dragging them into the window or using a load dialogue. That's because Virtualdub is VfW based, and MP4/H.264 is directshow based. Two completely different "technologies". It will just say it failed to determine the file type.

What you probably did was try to open the H.264 in AVI in Virtualdub since it's giving you a VfW related error. This won't work unless you enable VfW decoding which isn't reliable and is hassle you do not need to go to, that's why it's saying it can't locate a decompressor. Just delete the H.264 AVI.
Also I could tell it was the AVI because true H.264 in MP4 uses the type AVC1, not h264. h264 is the fourcc that a vfw H.264 encoders use, and probaby what ever let you demux that track and put it in AVI used.
Communist_Hitler wrote:Then I made a simple AviSynth script that has only one line (just imports the video with directshowsource). I tried loading THAT on virtualdubmod and this error came up:


Image
This means it can not find the splitter for .mp4. Which also means you do not have Haali's media splitter installed/enabled. Go install it, or install CCCP, as we advised you before.
Communist_Hitler wrote:I then tried to open the AVI I extracted with YAMB. Opening it normally, I got the same error as on the first screenshot, and when I tried to use the "Open file via AviSynth" command, I got yet another different error message:

Image

so, now what?
Again... AVISOURCE USES VFW! VFW = NO. If you can't open the H.264 AVI in Virtualdub alone, you won't be able to do it using AVISource either. It uses the same interface.

Here's a step by step what to do.

1) Check add/remove programs in Windows' control panel. Uninstall any FFDShow and Haali/Matroska splitter you have. Also check the start menu incase there are uninstallers there.
2) Reboot computer (this will free up any files that were in use).
3) Go to http://cccp-project.net/ download and install the appropriate version using the default settings.
4) Now make that AVS script with directshowsource pointing to the .mp4 file. If you still have a problem you might need an AVISynth plugin or an updated version.


Now when dealing with MP4 files, here are a few tips to not failing:
1) Do not try and drag it straight into Virtualdub, it simply will not work
2) Do not use AVISource, VfW cannot handle H.264 without hacks, also the chances are you do not have a VfW decoder installed or enabled at all.
3) Do not edit directly with MP4 files using Directshowsource. Directshowsource is NOT frame accurate, meaning when you begin seeking in a video it loses track of the frames. You might have a scene cut at frame 100, seek forward and back a bit, go back to frame 100 and it's shifted a few frames.
4) Do not extract the H.264 video from MP4 and put it in AVI. It's hacky, incompatible and even more of a pain in the ass to deal with. Again it is not good to edit with H.264 even if it's in AVI and you have a decoder for it.
5) Load your AVS with Directshowsource and encode it losslessly to HuffYUV or Lagarith AVI. See the guides for more info.

Apoligies if that came off a bit harsh, but it's no use doing half a job. You need Haali's splitter AND FFDshow.

Locked

Return to “Video Software Help Archive”