PDA

View Full Version : How to join x264 files? (bit by bit)


dazzler000
17th November 2006, 00:45
I'm programming application which joins x264 files together.

I have two(or more) x264 files (encoded with same settings & have same resolution,etc). Is it possible to just cut out the header part from the second file, and then add that second file to the end of the first file (which already got header information) ?
If this is possible I would need to know the ending of the header information in HEX :)

or is there timecode information or something in the x246 which will get messed up then?


please, no not recommend me any application which are able to join files, I need to do it myself :)

orbitlee
17th November 2006, 01:59
if all files are raw 264 video, and all of them are started with IDR frame(it should be yes if they are encoded by yourself instead of from H.264 cap), I believe you can concatenate them in HEX, no more additional operations. I can even recommend the simplest application, :-)
copy /b 1.264+2.264+3.264 final.264

bond
18th November 2006, 11:45
you can not simply remove the headers of the second part because what if the headers of part 1 and 2 are different? if the decoder tries to decode the part 2 with the wrong header it will not work...
basically its possible to have multiple headers in avc so this shouldnt be much of a problem anyways