Log in

View Full Version : problem with avc2avi


Shayx
28th December 2007, 12:51
i'm trying to make avi file from a .h264 stream stripped out of a mkv file.
i change the .h264 file to .264 so i can load it in avc2avi.
then i select the apropriate frame rate and then i press MUX.
it works fine with samples-small files, but with a complete movie (4-6GB) i get an error when trying to play the stream in MPC.

whyyyy?!?!:confused:

Kurth
28th December 2007, 15:04
AVI container dont support files bigger than 2 GB.
You should use MKV or MP4 and it will work fine.

Shayx
28th December 2007, 15:41
any good mkv to mp4 solution?

LoRd_MuldeR
28th December 2007, 16:52
AVI container dont support files bigger than 2 GB.
Not true :p

AVI 1.0 doesn't support files bigger than 4 GB, because the "size" fields in RIFF chunks are 32-Bit.
The 2 GB limitation is/was caused by a bug in Microsoft's RIFF parser code, and definitely not by AVI/RIFF itself :rolleyes:

AVI 2.0 aka "OpenDML" (the one that is commonly used nowadays) supports files bigger than 4 GB just fine!
OpenDML simply puts several RIFF structures into the same file, which is legitimate for RIFF files.

More info can be found at: http://the-labs.com/Video/odmlff2-avidef.pdf

ilovejedd
28th December 2007, 16:57
any good mkv to mp4 solution?

Use mp4box. There's a bunch of GUIs out there available for it. My favorite is Yamb (http://yamb.unite-video.com/). I think it supports MKV natively so no need to extract to raw h264 stream. If it doesn't, then just extract the video stream from MKV as usual and feed the raw h264 file to MP4.

jethro
28th December 2007, 17:01
As Lord_Mulder said AVIs can be ok with >2GB.

this might help you if you want to make it AVI: (taken from http://neuron2.net/LVG/filesize.html)

The Problem:

Many applications, especially older ones, use the Video for Windows architecture, which limits AVI files to 2 GB in size.
Standard AVI files can be up to 4 GB in size if other methods of handling AVIs are used. However, those other methods are rarely used.

Solutions:

1) OpenDML 1.02: This is an extension to the AVI file format that allows AVI files to be of any size.
To create and work with OpenDML AVIs, you need software that supports the OpenDML standard (such as VirtualDub).

2) Segmented AVIs: By breaking your AVI files into smaller chunks, like 2 GB or 4 GB pieces, you can create videos of any length or size.
To create and work with segmented AVIs, you need software that supports them (such as AVI_IO, VirtualDub, or Avisynth).

3) Avisynth: This little utility enables many programs with a 2 GB limit to open AVI files of any size.
It also has many other functions, such as joining segmented AVIs and processing your videos.

Shayx
28th December 2007, 20:58
well i didnt quite understand what to do with all of this.
i just want to convert the H264 stream to avi so i can work with the stream in Virtualdub.

LoRd_MuldeR
28th December 2007, 21:11
Did you give Avidemux (http://forum.doom9.org/showthread.php?t=126164) a try? It should be able to open RAW H.264 streams and maybe it can even copy them to AVI...

ilovejedd
28th December 2007, 21:18
well i didnt quite understand what to do with all of this.
i just want to convert the H264 stream to avi so i can work with the stream in Virtualdub.

Then may I point you to this thread (http://forum.doom9.org/showthread.php?t=122598&highlight=dgavcdec)? It's still in alpha but it works quite well. Seeking's kinda slow, though, and it hangs in my PC. Avisynth required.

There's also this option if you have the appropriate splitters and ffdshow installed seeing as you'll be installing Avisynth either way:
DirectShowSource("file.mkv")

crypto
29th December 2007, 18:33
If you want to go the VirtualDub/AVI road, use this avc2avi (https://sourceforge.net/projects/avc2avi) version. It outputs a segmented avi (use option -s 2000) which loads into VirtualDub.

Load the first segment, then append the remaining.

foxyshadis
29th December 2007, 20:31
Just as long as you realize that you're going to be in for a lot of pain when you go to edit, due to the minimum 2-frame delay, it's all yours. True mp4 editors are much kinder though.

Shayx
30th December 2007, 17:58
i tried to divide the h264 to 2 parts, the first is ok, but i can't play the second part.
divided a sapmle of 28MB to 15=2 parts