<p>I have a <a href="http://dl.dropbox.com/u/1705348/share/om/JSC000001.OM" rel="nofollow">video file</a> (30Mb) in some unknown format, hex dump of its header looks like this:</p>

<pre><code>0000000    78  55  52  30  09  10  02  0a  00  00  09  09  22  93  00  39
0000020    00  00  00  00  bd  09  a4  00  a4  00  a4  00  a4  00  1c  00
0000040    24  00  00  00  00  00  8d  00  00  00  00  00  00  00  a3  00
0000060    00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
*
0002560    00  00  00  00  00  00  00  00  24  24  24  24  24  24  0f  23
</code></pre>

<p>I have a <a href="http://dl.dropbox.com/u/1705348/share/om/first_frame.bmp" rel="nofollow">first frame</a> of that video in BMP format, so I can compare encoded and decoded bytes. The only thing I came up to is that one pixel (RBGA) is encoded to one byte. So some kind if YUV encoding is used (?). </p>

<p>Also there are misterios 6 same bytes before each line and 7 after =) and header is 100 bytes long.</p>

<p>For example first line of pixels in video</p>

<pre><code>0002560    00  00  00  00  00  00  00  00  24  24  24  24  24  24  0f  23
0002600    10  22  0f  20  0f  20  0d  21  0e  21  0e  21  0e  1f  0e  1f
0002620    0d  1e  0e  1f  0c  1d  0d  1c  0c  1c  0c  0c  0c  0c  0c  0c
0002640    0c  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
</code></pre>

<p>Corresponds to first line in BMP.</p>

<pre><code>3960   00 00 00 00 00 00 00 00 00 0e 48 43 0e 48 43 0e 48 43 00 45
3980   42 00 45 42 00 40 43 00 3c 40 00 3d 3d 00 3e 3d 00 3f 3d 00
4000   42 40 00 42 40 00 41 43 00 42 40 00 40 43 00 3e 3d 00 3a 3a
4020   00 3a 3a 00 3a 3a 00 37 35 00 37 35 00 37 35 00 3a 3a 00 36
4040   39 00 32 36 00 30 35 00 31 35 00 30 30 02 30 31 02 30 31 00
4060   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
</code></pre>

<p>I thought maybe my video's format is not custom and I could detect it with <code>file</code> or <code>ffmpeg</code> but both knew nothing about it.</p>

<p>So me questions are:</p>

<ol>
<li>Maybe you know what format that video has?</li>
<li>Maybe there are tools to find it out?</li>
</ol>

CC BY-SA 3.0
2012-04-02T01:35:48.047Z
damn, call Indiana Jones!
H_7
<video><codec>
How to figure out video format by video sample?
alexanderkuk
# How to figure out video format by video sample?

(Asked by: username_0 on 2012-02-22)

I have a video file (30Mb) in some unknown format, hex dump of its header looks like this:
0000000    78  55  52  30  09  10  02  0a  00  00  09  09  22  93  00  39
0000020    00  00  00  00  bd  09  a4  00  a4  00  a4  00  a4  00  1c  00
0000040    24  00  00  00  00  00  8d  00  00  00  00  00  00  00  a3  00
0000060    00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
*
0002560    00  00  00  00  00  00  00  00  24  24  24  24  24  24  0f  23

I have a first frame of that video in BMP format, so I can compare encoded and decoded bytes. The only thing I came up to is that one pixel (RBGA) is encoded to one byte. So some kind if YUV encoding is used (?). 
Also there are misterios 6 same bytes before each line and 7 after =) and header is 100 bytes long.
For example first line of pixels in video
0002560    00  00  00  00  00  00  00  00  24  24  24  24  24  24  0f  23
0002600    10  22  0f  20  0f  20  0d  21  0e  21  0e  21  0e  1f  0e  1f
0002620    0d  1e  0e  1f  0c  1d  0d  1c  0c  1c  0c  0c  0c  0c  0c  0c
0002640    0c  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00

Corresponds to first line in BMP.
3960   00 00 00 00 00 00 00 00 00 0e 48 43 0e 48 43 0e 48 43 00 45
3980   42 00 45 42 00 40 43 00 3c 40 00 3d 3d 00 3e 3d 00 3f 3d 00
4000   42 40 00 42 40 00 41 43 00 42 40 00 40 43 00 3e 3d 00 3a 3a
4020   00 3a 3a 00 3a 3a 00 37 35 00 37 35 00 37 35 00 3a 3a 00 36
4040   39 00 32 36 00 30 35 00 31 35 00 30 30 02 30 31 02 30 31 00
4060   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

I thought maybe my video's format is not custom and I could detect it with file or ffmpeg but both knew nothing about it.
So me questions are:

Maybe you know what format that video has?
Maybe there are tools to find it out?

**Tags:** video, codec

> **Comments:**
> **username_1**: damn, call Indiana Jones!  

---

## 0 answers

