hpc app for avi

There are many good open source tools for processing video data, but very little in a HPC context; and yet processing image data/video streams is becoming increasingly common, at least from the perspective of our unit. Hence I’ve invested a little time in an application that works directly on the stream from stdin, using FFmpeg, OpenCV and boost::threads. With the power of UNIX pipes, different processing algorithms are readily concatenated, all without the need for copious i/o. Hexdump -C has been a lifesaver in terms of discovering the quirks of the format.


00000000  52 49 46 46 48 e0 6f 3e  41 56 49 20 4c 49 53 54  |RIFFH.o>AVI LIST|
00000010  88 22 00 00 68 64 72 6c  61 76 69 68 38 00 00 00  |."..hdrlavih8...|
00000020  21 00 00 00 5c 05 51 00  00 00 00 00 10 09 00 00  |!...\.Q.........|
00000030  d5 0a 4d 00 00 00 00 00  02 00 00 00 00 00 10 00  |..M.............|
00000040  80 07 00 00 38 04 00 00  00 00 00 00 00 00 00 00  |....8...........|
00000050  00 00 00 00 00 00 00 00  4c 49 53 54 ae 10 00 00  |........LIST....|
00000060  73 74 72 6c 73 74 72 68  38 00 00 00 76 69 64 73  |strlstrh8...vids|
00000070  61 76 63 31 00 00 00 00  00 00 00 00 00 00 00 00  |avc1............|
00000080  01 00 00 00 30 75 00 00  00 00 00 00 d5 0a 4d 00  |....0u........M.|
00000090  00 00 10 00 ff ff ff ff  00 00 00 00 00 00 00 00  |................|
000000a0  80 07 38 04 73 74 72 66  46 00 00 00 45 00 00 00  |..8.strfF...E...|
000000b0  80 07 00 00 38 04 00 00  01 00 18 00 61 76 63 31  |....8.......avc1|
000000c0  00 ec 5e 00 00 00 00 00  00 00 00 00 00 00 00 00  |..^.............|
000000d0  00 00 00 00 01 42 e0 32  ff e1 00 0e 67 42 e0 32  |.....B.2....gB.2|
000000e0  da 01 e0 08 9a 6e 02 02  0c 04 01 00 04 68 ce 3c  |.....n.......h.<|
000000f0  80 00 4a 55 4e 4b 14 10  00 00 04 00 00 00 00 00  |..JUNK..........|
00000100  00 00 30 30 64 63 00 00  00 00 00 00 00 00 00 00  |..00dc..........|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s