subspawn
16th April 2007, 10:55
For anyone having troubles with the Kiss DVD-players with packed bitstreams in XViD (I believe it's now the default setting for new encodes).
The known & suggested solution from Kiss has always been to replace the "DivX503b1393p" header with "DivX999b000p" as this will force the player to play it.
So far one could change it using Moitah's MPEGModifier (great piece of software by the way), which even works fine under mono (1.2.3 required tho).
But all this full blown file rewriting isn't really needed if you'd only want to change a couple of headers, hence this easy to use attached linux program: In-place search & replace (ipsr).
Install:
DL the rar file & open a shell in the folder
# unrar e ipsr-1.0.rar
# make
Usage:
# ./ipsr <searchstring> <replacestring> <file>
In-place Search & Replace (ipsr)
searchstring, replacestring can be either normal strings or
hex encoded strings, beginning with 0x
When using replace, make sure search & replace strings are of exact the same length
Example search & replace:
# ./ipsr 0x000001b244697658353033623133393370 0x000001b244697658393939623030307000 videofile.avi
Found pattern at position 2086, need replacing !
Found pattern at position 866616, need replacing !
Found pattern at position 1257792, need replacing !
Found pattern at position 1584488, need replacing !
...
This will search for the prefix tags of a the DivX503b1393p header and replace it with DivX999b000p (and 00 padding at the end, to maintain file length & consistency).
The program can be used for other file in-place modifications as well. This is where hex-editors fail, most of them don't operate stream-based and buffering is not an option in large video files. Binmay (Sean Loaring) has similar functionalities but lacks the in-place working to save space.
Since it's a pure stream-oriented C-program it has a good speed and requires no extra disk space for file modification.
WARNING
Do use with care, this modifies the file in-place, thus your original file will be directly modified, there will be NO backup copy of it. So please copy a backup yourself if needed.
Enjoy !
The known & suggested solution from Kiss has always been to replace the "DivX503b1393p" header with "DivX999b000p" as this will force the player to play it.
So far one could change it using Moitah's MPEGModifier (great piece of software by the way), which even works fine under mono (1.2.3 required tho).
But all this full blown file rewriting isn't really needed if you'd only want to change a couple of headers, hence this easy to use attached linux program: In-place search & replace (ipsr).
Install:
DL the rar file & open a shell in the folder
# unrar e ipsr-1.0.rar
# make
Usage:
# ./ipsr <searchstring> <replacestring> <file>
In-place Search & Replace (ipsr)
searchstring, replacestring can be either normal strings or
hex encoded strings, beginning with 0x
When using replace, make sure search & replace strings are of exact the same length
Example search & replace:
# ./ipsr 0x000001b244697658353033623133393370 0x000001b244697658393939623030307000 videofile.avi
Found pattern at position 2086, need replacing !
Found pattern at position 866616, need replacing !
Found pattern at position 1257792, need replacing !
Found pattern at position 1584488, need replacing !
...
This will search for the prefix tags of a the DivX503b1393p header and replace it with DivX999b000p (and 00 padding at the end, to maintain file length & consistency).
The program can be used for other file in-place modifications as well. This is where hex-editors fail, most of them don't operate stream-based and buffering is not an option in large video files. Binmay (Sean Loaring) has similar functionalities but lacks the in-place working to save space.
Since it's a pure stream-oriented C-program it has a good speed and requires no extra disk space for file modification.
WARNING
Do use with care, this modifies the file in-place, thus your original file will be directly modified, there will be NO backup copy of it. So please copy a backup yourself if needed.
Enjoy !