# Get Video Data Post-Compression Pre-Writing

**URL:** <https://forum.opencv.org/t/get-video-data-post-compression-pre-writing/24628>\
**Category:** C++\
**Tags:** videoio\
**Created:** [July 15, 2026, 6:42am UTC](https://forum.opencv.org/t/get-video-data-post-compression-pre-writing/24628 "2026-07-15T06:42:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![redbull](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@redbull](https://forum.opencv.org/u/redbull)\
**Post date:** [July 15, 2026, 6:42am UTC](https://forum.opencv.org/t/get-video-data-post-compression-pre-writing/24628/1 "2026-07-15T06:42:09Z")

</div>

Hello,

I have a video stream that I’m compressing and writing to a video file. Is there a way to get the data post-compression but prior to writing the video file? Or is ffmpeg compressing and then writing without any opencv hooks in between?
