<div dir="ltr"><div><div><div>My app requires fetching each frame of an h264 stream,
wrapping the frame in custom headers, and then sending it over the
network.<br><br></div>For testing, I'm using a raw .h264 file and trying
to fetch each frame in a fakesink. On the command line, it's similar
to this:<br>
<br><span style="font-family:courier new,monospace">$ gst-launch-0.10 filesrc location=in.h264 ! h264parse ! filesink location=out.h264</span><br><br></div>I
would have expected out.h264 to be identical to in.h264. And they are
the right size, but there are slight differences between them:<br>
<br><span style="font-family:courier new,monospace">$ ls -l in.h264 out.h264<br>-rw-r--r-- 1 user group 100495 Jan 19 17:00 in.h264<br>-rw-r--r-- 1 user group 100495 Jan 28 08:00 out.h264<br>$ sha1sum in.h264 out.h264 <br>
2046b04ed23d3980d35c4819a97358113beb0f6c in.h264<br>ef8233787e025dfc8aeb4b8f1a245014bb43d528 out.h264</span><br><br></div>Looking
at them in a hex editor, in.h264 starts with 0x00000001, and out.h264
starts with 0x0000000A. There are a few other differences here and
there, too. It's enough that mplayer doesn't detect the right filetype
and refuses to play in (in.h264 plays fine).<br>
</div>