you can always add like a 4 byte header that tells you the size of
the next VP8 packet....
Generally speaking vp8 can't be parsed without some sort of container. If you're just using a pipe from the ffmpeg binary you could try the ivf container. You can do better if you're using the API directly.
> Can VP8 be parsed raw? I'd like to avoid the overhead of implementing
> a packetizer and/or depacketizer, and I'm streaming just video (no
> audio) data to a client over a TCP socket.
> I've set up ffmpeg to output the video with "rawvideo" format using
> libvpx as the video codec. I then stream this to a client over TCP.
Not really. It might be possible to determine the length of some
packets by parsing them, but the decoder api expects to be pointed at
the frame boundaries, so you'd have to do this yourself. There's not
much of a start sequence either, so if you ever got off sync it would
be hard to recover.
The normal thing to do in such cases, is just to write the length in
bytes before each packet, e.g. as a 4-byte integer. Then you can
easily split the stream back at the other end.
HTH,
-r