home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
Timeshift file configuration
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mm1352000" data-source="post: 925336" data-attributes="member: 82144"><p>None of the above... I think... but maybe I'm misunderstanding your options.</p><p>When paused, TV Server will use up to [Maximum] * [Filesize] for each paused client/session.</p><p>There is one caveat: the available HDD space must be >= [Filesize] * 2 in order for TV Server to create a new timeshift file. In other words, TV Server prevents you from using the last [Filesize] space on your HDD.</p><p> </p><p>In case you understand code, here is the relevant section from deep inside TsWriter:</p><p>[code]__int64 llDiskSpaceAvailable = 0;</p><p>if (SUCCEEDED(GetAvailableDiskSpace(&llDiskSpaceAvailable)) && (__int64)llDiskSpaceAvailable < (__int64)(m_maxTSFileSize*2))</p><p>{</p><p> hr = ReuseTSFile();</p><p>}</p><p>else</p><p>{</p><p> if (m_tsFileNames.size() >= (UINT)m_minTSFiles)</p><p> {</p><p> if FAILED(hr = ReuseTSFile())</p><p> {</p><p> if (m_tsFileNames.size() < (UINT)m_maxTSFiles)</p><p> {</p><p> if (hr != 0x80070020) // ERROR_SHARING_VIOLATION</p><p> LogDebug("Failed to reopen old file. Unexpected reason. Trying to create a new file.");</p><p> </p><p> hr = CreateNewTSFile();</p><p> }</p><p> else</p><p> {</p><p> if (hr != 0x80070020) // ERROR_SHARING_VIOLATION</p><p> LogDebug("Failed to reopen old file. Unexpected reason. Dropping data!");</p><p> else</p><p> LogDebug("Failed to reopen old file. It's currently in use. Dropping data!");</p><p> </p><p> Sleep(500);</p><p> }</p><p> }</p><p> }</p><p> else</p><p> {</p><p> hr = CreateNewTSFile();</p><p> }</p><p>}[/code]</p><p> </p><p></p><p>Set maximum to the size corresponding with the longest pause you anticipate using... or just set it up to the maximum free space on the HDD.</p><p>Set minimum to the size corresponding with the back buffer that you might nominally want... or if you don't care about HDD wear and speed set it the same as maximum.</p><p>This really isn't something that is particularly critical as MP will prevent you from completely filling the HDD.</p></blockquote><p></p>
[QUOTE="mm1352000, post: 925336, member: 82144"] None of the above... I think... but maybe I'm misunderstanding your options. When paused, TV Server will use up to [Maximum] * [Filesize] for each paused client/session. There is one caveat: the available HDD space must be >= [Filesize] * 2 in order for TV Server to create a new timeshift file. In other words, TV Server prevents you from using the last [Filesize] space on your HDD. In case you understand code, here is the relevant section from deep inside TsWriter: [code]__int64 llDiskSpaceAvailable = 0; if (SUCCEEDED(GetAvailableDiskSpace(&llDiskSpaceAvailable)) && (__int64)llDiskSpaceAvailable < (__int64)(m_maxTSFileSize*2)) { hr = ReuseTSFile(); } else { if (m_tsFileNames.size() >= (UINT)m_minTSFiles) { if FAILED(hr = ReuseTSFile()) { if (m_tsFileNames.size() < (UINT)m_maxTSFiles) { if (hr != 0x80070020) // ERROR_SHARING_VIOLATION LogDebug("Failed to reopen old file. Unexpected reason. Trying to create a new file."); hr = CreateNewTSFile(); } else { if (hr != 0x80070020) // ERROR_SHARING_VIOLATION LogDebug("Failed to reopen old file. Unexpected reason. Dropping data!"); else LogDebug("Failed to reopen old file. It's currently in use. Dropping data!"); Sleep(500); } } } else { hr = CreateNewTSFile(); } }[/code] Set maximum to the size corresponding with the longest pause you anticipate using... or just set it up to the maximum free space on the HDD. Set minimum to the size corresponding with the back buffer that you might nominally want... or if you don't care about HDD wear and speed set it the same as maximum. This really isn't something that is particularly critical as MP will prevent you from completely filling the HDD. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
Timeshift file configuration
Contact us
RSS
Top
Bottom