<!-- Some styling for better description lists --><style type='text/css'>dt { font-weight: bold;float: left;display:inline;margin-right: 1em} dd { display:block; margin-left: 2em}</style> alias_neo: My code is similar to this one: https://linuxtv.org/downloads/v4l-dvb-apis/uapi/v4l/capture.c.html <br> OK, I got the code working. I had written it to skip frames while the system is loaded, it seems startup of my code caused it to skip the start frames meaning it would write the file with missing bytes at the start <br> now I need to figure out how I can capture the stream once it's started and still be able to decode it. Presumably something akin to "key frames" are required? ezequielg: kbingham[m]: https://github.com/bootlin/libva-v4l2-request - codec test tool ***: IR1965 has left