Forum archive - H264 to avi?

http://www.supermediastore.com/



Forum Archive Home -> Video Conversion -> H264 to avi?



H264 to avi?

dallylama posted 2007 Dec 01 03:59
I have a MKV file (1.07 GB). I want to convert it to avi with this guide:
http://forum.videohelp.com/topic239995.html
After I extract I got in the folder a H264 file and AC3 file.
How do i convert H264 to avi?
will the result (the avi file I'll get) be the same quality as the original MKV file?



Baldrick posted 2007 Dec 01 04:43
I would use alltoavi.


Midzuki posted 2007 Dec 01 04:46
Avi-Mux GUI or avc2avi.


dallylama posted 2007 Dec 01 06:21
Will the avi be the same quality?


Midzuki posted 2007 Dec 01 06:26
:
Will the avi be the same quality?


YES!

*****



dallylama posted 2007 Dec 01 06:57
I'll use alltoavi


dallylama posted 2007 Dec 01 09:22
It does'nt keep the quality. the original mkv file is 1.07 GB and the avi file I get is 332 MB. I used alltoavi.


Midzuki posted 2007 Dec 01 10:11
< COMMAND-LINE >

:
[C:\]
=>avc2avi -h
avc2avi
Syntax: avc2avi [options] [ -i input.h264 ] [ -o output.avi ]

-h, --help Print this help

-i, --input Specify input file (default: stdin)
-o, --output Specify output file (default: stdout)

-f, --fps <float> Set FPS (default: 25.0)
-c, --codec <string> Set the codec fourcc (default: 'h264')


[C:\]
=>


< /COMMAND-LINE >



dallylama posted 2007 Dec 01 10:19
What avc2avi? i don't find this software
how do i use this software?
how do i use what you wrote?
I downloaded the software and what do i use the code you wrote?
***but the original file is mkv. after i extract it i get h264 file and ac3 file so the avi file i'll get be without sound?***



jagabo posted 2007 Dec 01 10:51
As was pointed out, avc2avi is a command line application:

http://forum.doom9.org/showthread.php?t=118267
http://sourceforge.net/projects/avc2avi

If your goal is to make an AVI file that will play on a Divx certified DVD player this will not work.



dallylama posted 2007 Dec 01 10:57
i just want to convert mkv to avi with the same quality. when i extract from the mkv as i said in the first post i get h264 and ac3.


jagabo posted 2007 Dec 01 11:05
You'll probably find the other tool Midzuki recommended, Avi-Mux GUI, easier to use.


dallylama posted 2007 Dec 01 11:12
i tried Avi-Mux GUI, but it gives me mkv file back... :(


jagabo posted 2007 Dec 01 11:58
The easiest way I know of to convert MKV to AVI is to use AviDemux. It has a GUI and can remux h.264 and ac3 audio from an MKV into an AVI. No quality will be lost.


Scooter_NJ posted 2007 Dec 01 12:04
Will that same tool do the same to burn a DVD9?


dallylama posted 2007 Dec 01 23:14
I downloaded Avidemux but how do I convert mkv to avi withe avidemux?


jagabo posted 2007 Dec 02 07:43
Open, select MKV file
verify: video=copy, audio=copy, output=AVI (these are all the defaults)
Save.

This may or may not work.

A more robust solution is to use MkvExtractGui to demux to .h264 and .ac3 files. Then use Avc2Avi to mux the .h264 file to an AVI, then use VirtualDubMod to mux the audio into the AVI.



dallylama posted 2007 Dec 02 11:16
I don't understand how to work with Avc2Avi


Scooter_NJ posted 2007 Dec 02 11:20
No "One Click"...damn!!!!!


jagabo posted 2007 Dec 02 11:23
Avc2Avi is a command line application. You start up a command line interpreter (CLI) (Start -> All Programs -> Accessories -> Command Propmpt) and start typing in commands. Unfortunately, it's hard to explain how to use a CLI.

To simplyfy things a bit, try this:

1) Put AVC2AVI.EXE in your Windows System32 folder, usually, C:\Windows\System32.

2) Put the attached MUX.BAT file in the same folder as your .h264 file.

3) Drag your .h264 file onto the MUX.BAT file. Wait a few minutes. Press a key when prompted.

That should create an AVI file in the same folder as the .h264 file -- with the same name, just .AVI added to the end. You should be able to play the file but it will have no audio. Add the AC3 audio with VirtualDubMod:

0) Start VirtualDubMod.

1) File -> Open Video File, pick AVI (you may get an error message about not finding an h264 codec, ignore it).

2) Video -> Direct Stream Copy

3) Streams -> Stream List...

4) Press the Add button, select the AC3 file

5) File -> Save As...



dallylama posted 2007 Dec 02 11:38
MUX.BAT ??? what is it?
Press a key when prompted---- ?



jagabo posted 2007 Dec 02 12:01
MUX.BAT is a batch file I created for you so you don't need to use the command promt and and type a bunch of commands by hand. Follow the intructions I gave.

Oh, I see, attaching the MUX.BAT file directly didn't work. Here it is in a zip file:

mux.zip



dallylama posted 2007 Dec 02 13:17
I did it. i got avi file, I tried to play it--- does'nt work.


Midzuki posted 2007 Dec 02 13:36
With which program did you try to open your newborn .avi?
BTW, had you already managed to play the MKVed h264 video
on your computer? You need an AVC codec if you want to playback h264 ---
ffdshow is a good start.

+++++



dallylama posted 2007 Dec 02 14:24
i played the mkv file


jagabo posted 2007 Dec 02 15:21
dallylama :
i played the mkv file

Did you try to play the AVI file with the same player?



dallylama posted 2007 Dec 02 22:59
yes.


jagabo posted 2007 Dec 02 23:04
Is the AVI file about the size as the mkv file? Does GSpot show the correct codec?


dallylama posted 2007 Dec 03 07:14

what codec do i need? can you give me a direct link?
the avi file is about the same size as the h264 file i convert



jagabo posted 2007 Dec 03 07:48
Judging by the file size it looks like the h.264 video was muxed into the AVI file.

You should be able to play h.264 AVI with VLC or KMPlayer without a DirectShow codec (they have their own built-in decoders). Otherwise you can use ffdshow or CoreAVC to let any DirectShow based player to play h.264.



dallylama posted 2007 Dec 03 10:12


I got this meesage when i tried to open the avi file in VirtualDubMod



jagabo posted 2007 Dec 03 10:36
There are two basic video systems within Windows: Video For Windows (VFW, old and deprecated but still used by many programs) and DirectShow. VirtaulDubMod requires a VFW decoder for h.264. Ffdshow includes an h.264 decoder for VFW. Start -> All Programs -> ffdshow -> VFW codec configurateion -> codecs...


Midzuki posted 2007 Dec 03 10:50
dallylama, would you mind telling us
why have you transformed a 1280x720 h264 MKV
into a 1280x720 h264 AVI :?: I do not see your point.
If your goal is to playback your TV-show episode on
a DivX-capable standalone, then you have been on a wrong path.

*****



dallylama posted 2007 Dec 03 11:39
Becaus i could'nt attach subtitles to the MKV file


poisondeathray posted 2007 Dec 03 12:17
dallylama - what is your end goal?

Do you want to play the .mkv file on a PC with subtitles? or Do you want to be able to play this on a stand-alone DVD player?

What format are your subtitles in (what file extension)?



dallylama posted 2007 Dec 03 14:14
I have the original MKV file- I want to burn it with ConvertXtoDVD but i can't attach subtitles- even with the software convertXtoDVD the subtitles don't show when i click on the subtitles button.
the subtitles- ssa.



poisondeathray posted 2007 Dec 03 14:34
OK - So you want to burn your MKV (with ssa subs) onto a DVD so that it plays on a standalone DVD player, correct?

The newer versions of ConvertXtoDVD support both ssa and mkv. Check to see that you have the latest version.

Subs often don't "autoload" with mkv files with this program. You have to manually right click the "0 subtitle stream" (with the menu tree broken out) and it will give you an option to "add subtitle stream"

Note: you will lose quality, because you are doing an encode.



jagabo posted 2007 Dec 03 14:52
poisondeathray :
Note: you will lose quality, because you are doing an encode.

Not to mention the conversion from high def to standard def!



kwfine posted 2008 Jan 11 08:33
Hi
I have a h264 video, and I have downloaded all2AVI, hoping to convert the video to AVI format, but
I was totally surprised when I looked at its remaining time: it's an hour remained!
any idea?



mats.hogberg posted 2008 Jan 11 08:48
kwfine :
Hi
I have a h264 video, and I have downloaded all2AVI, hoping to convert the video to AVI format, but
I was totally surprised when I looked at its remaining time: it's an hour remained!
any idea?
Er... Where is the surprise? :shock:

/Mats



Nadleeh posted 2008 Jan 11 08:49
Alltoavi first converts MKV TO AVI but with the h264 codec. (this takes a long time)

Then you have to encode it again to xvid or divx. (not long) :)

when it doesn't work out or when you want to give a go to another guide, try this one : guide

Works like a charm, easy, good explained!




Login/Register to our forum to be able to post here.








VSO Software ConvertXtoDVD lets you convert any video like AVI,MKV to DVD easily. More info or download trial!
About   Advertise   Forum   Forum Archive   RSS Feeds   Statistics   Tools