Convert video to .bin for hologram 3D fan

I am facing the issue where I need to convert a video(in .mp4 for example) to .bin so it can be read by one of these infamous 3D Holographic Fan. At the moment I am doing it this way using C#.

private async Task<bool> convertToBin(string file)
    {
        byte[] bytes = System.IO.File.ReadAllBytes(file);
        string path = Path.GetFullPath(file) + ".bin";
        string str = System.Text.Encoding.UTF8.GetString(bytes);
        System.IO.File.WriteAllText(path, str);
        return true;
    }

However, the produced .bin is recognized by the fan but when played the LEDs all turn white. Furthermore if I open a .bin generated with the fan's software the format seems completely different, as the first 8.000 lines of the correct .bin are just 0000 0000 0000 0000.

Any idea how to accomplish this?

728x90

1 Answers Convert video to .bin for hologram 3D fan

This is a pretty broad question on file conversion since technically you can just change the extension on any file to .bin and it is a valid .bin file.

The reason being that the .bin extension has no specific standard, its just a collection of binary data - this means that different companies can (if they wish) implement their own standards within files that they work with.

In terms of holo fans, most manufacturers of them will often either have for free (or a small fee) a video conversion piece of software available that converts a file into a .bin that will work with the fan for you. (also many fans now can just work with .mp4 etc too, but im guessing yours cant)

If the first X amount of data in the correct file really is just a stream of 0's it seems as if there is some amount of "padding" at the beginning of the file though without really being able to see the file not 100% on that.

Either way, generic conversion to a .bin without knowing the specific format that the device / manufacturer is potentially enforcing is pretty hard - like trying to get the exact amount of water to fill a bucket, without ever seeing the bucket

Binary itself is meaningless, until such time as an executed algorithm defines what should be done with each bit, byte, word or block. Thus, just examining the binary and attempting to match it against known formats can lead to the wrong conclusion as to what it actually represents.

Quote from the Wiki page on Binary files :)

2 weeks ago