Log in

View Full Version : How to put AVC video in AVI container


Rashik
8th April 2010, 23:37
Hi everybody I have a question

Video codec is AVC and audio codec and format is AVI
Format : AVI at 1 577 Kbps
Length : 891 MiB for 1s 19dk 2s 120ms

Video #0 : AVC at 1 250 Kbps
Aspect : 720 x 544 (1.324) at 25.000 fps

Audio #0 : MPEG Audio at 320 Kbps
Infos : 2 kanal, 48.0 KHz

How can that be so? Can someone explain me?

Rashik
8th April 2010, 23:43
Also how can ripper use AVC codec on AVI format? I tried some program but the program can't accept that. So I wanted ask here if someone know how that can use.

Inspector.Gadget
9th April 2010, 00:07
Congratulations, you've managed to unearth a file in which the encoder used the wrong container, used the wrong framerate/resolution combination, and made a bad decision about the audio. That's not an example to emulate.

Guest
9th April 2010, 00:08
[bump after forum move]

mariush
9th April 2010, 00:12
In order to save AVC in AVI, the application must use an encoder capable of performing some "hacks" that make the AVC output compatible with AVI. AVI container is too old, it doesn't work right with AVC (without workarounds and hacks) so it's not recommended to use it anymore.

So those applications that can encode AVC to AVI probably use a codec like "h264 Video For Windows codec" which has some code that makes it possible to save in avi. (see http://www.free-codecs.com/download/x264_Video_Codec.htm but keep in mind these codecs are not supported in this forum)

You can't use x264.exe to save to AVI, only as raw AVC stream (.h264), .mp4 or .mkv files. MKV files are probably the best to use, MP4 are also good for portable players, Playstation x and so on.

Rashik
9th April 2010, 00:39
Thanks everybody for explanation. I know it's not possible with x264 but I would just wonder how to do that.

BigDid
9th April 2010, 01:13
...I know it's not possible with x264 but I would just wonder how to do that.

Hi,

Tips already given by mariush.

A file-info app like mediainfo could give you the app/gui used for encoding + muxing in an avi container like Gknot or Vdub/Vdubmod +vfw-x264 ...

Did

MatLz
9th April 2010, 01:18
You can use avc2avi to put an avc stream (.264 file) outputed by X264.exe in an avi. This is currently the easiest tool to do that.
Not recommended....but doable.

roozhou
9th April 2010, 03:08
Look at this (http://forum.doom9.org/showthread.php?t=152419). This is currently the best tool to mux avc to avi.
It currently supports raw/avi/mkv/mp4/flv/ts -> avi remuxing.

Also with my x264 build (http://forum.doom9.org/showthread.php?t=141441), it's possible to generate avi from x264.

Anyone who claims that avc does not belong to avi knows little about avi. We don't need special "hacks" to store avc in avi. All we need is splitting Annex-B stream into separate frames and store them in chunks like other video codecs. If you try to put MP4-style avc header and frames in avi, of course you will fail.

Rashik
9th April 2010, 14:23
Thanks for everybody but Megui doesn't accept FLV format, It accepted before. What can I do so It works as before?

Picture
http://img519.imageshack.us/img519/107/asfdo.jpg

And This
http://img18.imageshack.us/img18/965/asdarz.jpg

I don't know what It's wrong.

Do I need install directshowsource?

I fixed that. Have a nice day.