Support Request #12226
closed
ADTF 2 dat file compression
Added by hidden over 3 years ago.
Updated over 2 years ago.
Requester's Priority:
Normal
Platform:
Ubuntu 18.04 64bit, Windows 10 64bit
Description
Supportanfrage
Quick question:
For our own filter we want to write compressed files (using zip or gzip). The HD-Recorder can compress its dat-files.
So, are there any public functions within the ADTF2-SDK or any available libraries in the ADTF2 installation we might use?
Lösung
cFileCompression is the only functionality available.
The Recorder compresses DAT Files after they have been closed.
As the DAT Format requires random write access to the file, a streaming based compression is not an option.
Oh, I just found cFileCompression.
In fact, I has hoping for a stream compression, which compresses "along the way" of writing the file.
Is it wise to compress a file at cFilter::Stop() or cFilter::Shutdown()? This might slow down the shutdown process heavily? Which strategy is used by the HD-Recorder?
- Status changed from New to In Progress
- Topic set to ADTF::FilterSDK
Hi Marc,
yep, unfortunately cFileCompression is the only functionality available. The Recorder compresses DAT Files after they have been closed. As the DAT Format requires random write access to the file, a streaming based compression is not an option.
Maybe using something like https://bitbucket.org/wbenny/ziplib/wiki/Home is an option for you.
Regards,
Martin
- Status changed from In Progress to Customer Feedback Required
Unfortunately the ziplib is C++11, since we need a solution for ADTF2 we cannot use this.
We are now using cFileCompression (after closing the original stream). I seems to work fast enough.
Thanks. Ticket can be closed.
- Project changed from 4 to Public Support
- Subject changed from ADTF2 File compression to ADTF 2 dat file compression
- Description updated (diff)
- Status changed from Customer Feedback Required to To Be Closed
- Private changed from Yes to No
- Resolution set to Solved Issue
- Status changed from To Be Closed to Closed
Also available in: Atom
PDF