Log in

View Full Version : .avi to .264 conversion.


samia
5th November 2009, 02:55
Hi,
Can anyone refer me any software to convert .avi video file into .264 encoded file format?

Thanks.
Samia

thewebchat
5th November 2009, 03:10
http://x264.nl

wyti
5th November 2009, 08:06
and you will need avisynth too to decode avi file (x264 can only have raw yuv (or yuv4mpeg)) : http://sourceforge.net/projects/avisynth2/files/

G_M_C
5th November 2009, 08:07
http://x264.nl

That is correct most of the time, but in this case: The AVI can also already be in H264, however unlikely :p

MatLz
5th November 2009, 09:21
Install Avisynth. Make a script (script.avs) with your favorite text editor:avisource("c:\videotoencode.avi")add filtering if you need it...

Download x264.exe. Make a launcher (launcher.bat) with your favorite text editor:"c:\x264.exe" --pass 1 --bitrate XXX --output NUL "c:\script.avs"
"c:\x264.exe" --pass 2 --bitrate XXX --output "c:\result.264" "c:\script.avs"add other options if you need them, adjust the bitrate...

Launch the launcher...

roozhou
5th November 2009, 11:37
MEncoder is your friend. A single executable file will do all the jobs.

G_M_C
5th November 2009, 12:50
People, I wasn't vague for nothing. The question is moot, the AVI is only a container. We do not know what it contains, what he wants to do with it, and what he is tagetting or trying to achieve. For all we know it's a AVC-in-AVI (shiver) and re-muxing is the only thing he wants to do.

In short we need to learn more before we answer this question. And TS needs to :search: cause chances are very high that the answer is here on the board (or "on" google).

samia
5th November 2009, 20:45
Thanks for all the reply.
Basically, I want to transmit a .264 extension file through a communication block in Matlab Simulink and reconstruct the .264 file again. But Matlab don't support .264 extension file. It can read .avi file. Therefore I am thinking about the file conversion.
It would be more helpful for me if I can read the bit stream(binary value) from .264 file and feed it in Matlab and reconstruct the .264 file after passing through the communication block.

G_M_C
6th November 2009, 09:27
Thanks for all the reply.
Basically, I want to transmit a .264 extension file through a communication block in Matlab Simulink and reconstruct the .264 file again. But Matlab don't support .264 extension file. It can read .avi file. Therefore I am thinking about the file conversion.
It would be more helpful for me if I can read the bit stream(binary value) from .264 file and feed it in Matlab and reconstruct the .264 file after passing through the communication block.

So basically, it's the other way around as you put in your Topic title; You want to put .264 in AVI (in stead of other way around).

Cant you just rename the .264 into .avc ? Or can you not mux into one of the transport-containers (.TS / . M2TS ?). Cause AVC-in-AVI is really not pretty.

roozhou
6th November 2009, 09:58
IMO AVC-in-AVI has lower overhead than AVC in ts. Unless you are broadcasting, authoring a bluray or playing it on some device that only supports ts, it is not necessary to mux AVC to a transport stream.

AVC-in-AVI is not pretty but it works.

nurbs
6th November 2009, 17:13
Sure, but in basically every situation where you can use avc in avi you can just as well put it into mp4 or mkv so why not do that.

Blue_MiSfit
6th November 2009, 21:12
I'm still not entirely clear - so forgive me OP if your question has already been answered to your satisfaction.

1) Are you trying to mux an H.264 elementary stream to an AVI?
2) If not, are you trying to demux an AVI containing H.264 video to an elementary video stream?
3) If not, are you trying to re-encode and AVI containing something else to an elementary stream?

~Misfit