Kodi Community Forum
Different Recording and Timeshift Directories - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: VDR (https://forum.kodi.tv/forumdisplay.php?fid=169)
+---- Thread: Different Recording and Timeshift Directories (/showthread.php?tid=319873)



Different Recording and Timeshift Directories - username145 - 2017-08-13

After some googling I found we can change the default recording directory on linux from /var/lib/video by setting VIDEO_DIR in /etc/default/vdr but it also now places timeshift files in there. Is there a way to specify a different directory for timeshift files?

Thanks


Different Recording and Timeshift Directories - hoppel118 - 2017-08-14

Which vdr server version do you use?


RE: Different Recording and Timeshift Directories - username145 - 2017-08-14

(2017-08-14, 02:26)hoppel118 Wrote: Which vdr server version do you use?

Version 2.2.0 on Xubuntu


Different Recording and Timeshift Directories - hoppel118 - 2017-08-14

OK, with vdr version 2.2.0 I did it the following way:

under "/var/lib/vdr/setup.conf" you have the possibility to configure the path for the TimeshiftBuffer. "vnsiserver.TimeshiftBufferDir" is what you are looking for:

Code:
vnsiserver.Timeshift = 2
vnsiserver.TimeshiftBufferDir = /srv/dev-disk-by-label-timeshift/timeshift/
vnsiserver.TimeshiftBufferFileSize = 74
vnsiserver.TimeshiftBufferSize = 222

If I remember right, you can set it up the following way:
  • vnsiserver.Timeshift = 0 -> Timeshift off
  • vnsiserver.Timeshift = 1 -> Timeshift to RAM
  • vnsiserver.Timeshift = 2 -> Timeshift to HDD
  • vnsiserver.TimeshiftBufferDir = /path/to/your/timeshiftbuffer
  • vnsiserver.TimeshiftBufferFileSize = X -> BufferFileSize per vdr client
  • vnsiserver.TimeshiftBufferSize = X -> BufferSize for all vdr clients

For TimeshiftBuffering I mounted a 222GB ssd to "/srv/dev-disk-by-label-timeshift/" and "/srv/dev-disk-by-label-timeshift/timeshift/" is the path where vdr has the rights to r/w. I have three vdr clients. Every client is able to generate a BufferFile with a size of 74GB.

under "/etc/vdr/conf.d/00-vdr.conf" you have the possibility to configure the path for your recordings:

Code:
[vdr]
--video=/var/lib/video

There was a change from version 2.0.2 to 2.2.0. It's not possible to set the variable "VIDEO_DIR" in "/etc/default/vdr" with vdr 2.2.0.

Don't forget to stop the vdr service before editing the files and start again after editing the files. Wink

Maybe it's possible to configure some (or all) parameters at the vdr client gui. But for me it's not possible to do this at the client side, because the vdr client gui under the kodi pvr settings (client specific) is not working with AndroidTV or Win10.

Greetings Hoppel


RE: Different Recording and Timeshift Directories - username145 - 2017-08-15

(2017-08-14, 13:50)hoppel118 Wrote: OK, with vdr version 2.2.0 I did it the following way:

under "/var/lib/vdr/setup.conf" you have the possibility to configure the path for the TimeshiftBuffer. "vnsiserver.TimeshiftBufferDir" is what you are looking for:

Code:
vnsiserver.Timeshift = 2
vnsiserver.TimeshiftBufferDir = /srv/dev-disk-by-label-timeshift/timeshift/
vnsiserver.TimeshiftBufferFileSize = 74
vnsiserver.TimeshiftBufferSize = 222

If I remember right, you can set it up the following way:
  • vnsiserver.Timeshift = 0 -> Timeshift off
  • vnsiserver.Timeshift = 1 -> Timeshift to RAM
  • vnsiserver.Timeshift = 2 -> Timeshift to HDD
  • vnsiserver.TimeshiftBufferDir = /path/to/your/timeshiftbuffer
  • vnsiserver.TimeshiftBufferFileSize = X -> BufferFileSize per vdr client
  • vnsiserver.TimeshiftBufferSize = X -> BufferSize for all vdr clients

For TimeshiftBuffering I mounted a 222GB ssd to "/srv/dev-disk-by-label-timeshift/" and "/srv/dev-disk-by-label-timeshift/timeshift/" is the path where vdr has the rights to r/w. I have three vdr clients. Every client is able to generate a BufferFile with a size of 74GB.

under "/etc/vdr/conf.d/00-vdr.conf" you have the possibility to configure the path for your recordings:

Code:
[vdr]
--video=/var/lib/video

There was a change from version 2.0.2 to 2.2.0. It's not possible to set the variable "VIDEO_DIR" in "/etc/default/vdr" with vdr 2.2.0.

Don't forget to stop the vdr service before editing the files and start again after editing the files. Wink

Maybe it's possible to configure some (or all) parameters at the vdr client gui. But for me it's not possible to do this at the client side, because the vdr client gui under the kodi pvr settings (client specific) is not working with AndroidTV or Win10.

Greetings Hoppel

Thank you, I tried your suggestions it and it worked perfectly!

I think I had to use the old Confluence skin in order to configure the client through the Kodi interface; but I remember I could not find any video/timeshift directory settings in the menus. The conf entries will do just fine though


Different Recording and Timeshift Directories - hoppel118 - 2017-08-15

Great, have fun! Wink
Bye