Automatic cleaning of recordings
Added by Sébastien Aubry over 12 years ago
Hello,
I am using XBMCBuntu Eden + tvheadend 2.12.99~pulse-6.
Quite often, the old recordings are not deleted from my hard disk in order to make some space for the new ones.
This results in a full hard disk, also causing problem with the EPG grabbing and potentially making tvheadend crash.
Is there any way to specify a minimum space amount tvheadend should regularly check and free up? I have seen in the FAQ that this should be automatic but it looks like not enough old recordings are deleted. How to fix this?
From my old Windows setups, I would say that I need about 20 GB of free space before starting to record (sometimes recordings 3 or 4 movies at the same time).
Thanks
/usr/bin$ tvheadend & [1] 9042 [INFO]:dvb: Found adapter /dev/dvb/adapter0 (DiBcom 3000MC/P) via USB (480 Mbit/s) [INFO]:dvb: Found adapter /dev/dvb/adapter1 (DiBcom 3000MC/P) via USB (480 Mbit/s) [INFO]:xmltv: Grabbing "France" using command "/usr/bin/tv_grab_fr" [INFO]:dvr: Creating new configuration '' [INFO]:CSA: Using SSE2 128bit parallel descrambling [NOTICE]:START: HTS Tvheadend version 2.12.99~pulse-6 started, running as PID:9042 UID:1000 GID:1000, settings located in '/home/spontex/.hts/tvheadend' [INFO]:AVAHI: Service 'Tvheadend' successfully established. [INFO]:dvr: "Irène" on "W9" recorder starting [INFO]:subscription: "DVR: Irène" subscribing on "W9", weight: 300, adapter: "DiBcom 3000MC/P", network: "F", mux: "F: 522,000 kHz", provider: "MULTI4", service: "W9", quality: 100 [INFO]:dvr: "Pirates" on "France 4" recorder starting [INFO]:subscription: "DVR: Pirates" subscribing on "France 4", weight: 300, adapter: "DiBcom 3000MC/P", network: "F", mux: "F: 610,000 kHz", provider: "NTN", service: "France 4", quality: 100 [ERROR]:MKV: /pchc_f/Recorded TV/Pirates/France-4-Pirates.2012-05-13.22-30-1.mkv: Unable to write -- No space left on device [INFO]:dvr: France 4-Pirates.2012-05-13.22-30 from adapter: "DiBcom 3000MC/P", network: "F", mux: "F: 610,000 kHz", provider: "NTN", service: "France 4" [INFO]:dvr: # type lang resolution samplerate channels [INFO]:dvr: 1 MPEG2VIDEO 720 x 576 [INFO]:dvr: 2 MPEG2AUDIO fra 48000 2 [INFO]:dvr: 3 MPEG2AUDIO eng 48000 2 [INFO]:dvr: 4 DVBSUB fra [INFO]:dvr: 5 DVBSUB fra [ERROR]:MKV: /pchc_f/Recorded TV/Irène/W9-Irène.2012-05-13.22-20-1.mkv: Unable to write -- No space left on device [INFO]:dvr: W9-Irène.2012-05-13.22-20 from adapter: "DiBcom 3000MC/P", network: "F", mux: "F: 522,000 kHz", provider: "MULTI4", service: "W9" [INFO]:dvr: # type lang resolution samplerate channels [INFO]:dvr: 3 MPEG2VIDEO 720 x 576 [INFO]:dvr: 1 MPEG2AUDIO eng 48000 2 [INFO]:dvr: 2 MPEG2AUDIO qad 48000 2 [INFO]:dvr: 4 MPEG2AUDIO fra 48000 2 [INFO]:dvr: 5 DVBSUB fra [INFO]:dvr: 6 DVBSUB fra
Replies (27)
RE: Automatic cleaning of recordings - Added by Sébastien Aubry about 11 years ago
Mark Kirkpatrick wrote:
FYI I have a very new ffmpeg but the script is using handbrake for some time now the ffmpeg were commented out:
- $enc_opts = '-map 0 -map -0:a:1 -c:v libx264 -s:v:0 640x480 -c:a:0 libfdk_aac -flags +qscale -global_quality 3 -afterburner 1 -ac:0 2 -c:s copy -crf 24';
- $hbret = `/usr/bin/ffmpeg -i "${mfile}" -preset veryslow ${enc_opts} "${mediatitle}"`;
$enc_opts = 'bframes=8:b-adapt=2:direct=auto:me=umh:merange=24:partitions=all:rc-lookahead=60:ref=16:subme=10:trellis=2:psy-rd=1.0,0.2';
$hbret = `/usr/bin/HandBrakeCLI -i ${mfile} -I -v -e x264 -q 24 -w 640 --loose-anamorphic -a 1 -E faac -B 128 -f mkv -N eng -s 1,2 -m -x ${enc_opts} -o "${mediatitle}"`;( so it is possible that the c:v syntax is no longer valid. handbrake runs the same libx264 but has easier subtitle inclusion )
Hi,
What I don't get is that in the script you sent earlier, the ffmpeg lines were not commented out:
if ( $mfile =~ /\.mkv/ ) # change to Switch to decide if blueray or dvd source { $enc_opts = '-map 0 -map -0:a:1 -c:v libx264 -s:v:0 640x480 -c:a:0 libfdk_aac -flags +qscale -global_quality 3 -afterburner 1 -ac:0 2 -c:s copy -crf 24'; $hbret = `/usr/bin/ffmpeg -i "${mfile}" -preset veryslow ${enc_opts} "${mediatitle}"`; }
Do I get into this block because I tried to convert a .mkv file instead of a .ts one?
Regards
RE: Automatic cleaning of recordings - Added by Mark Kirkpatrick about 11 years ago
Yes, That is what is happening. All my tvheadend are from an hdhomerun and in ts format. I did say they were not cleaned up .
That whole clause is never used in my case and is leftover from an older script that would take makemkv generated blueray copies and compress them.
I looked at it again and that is the case , also comscipt only works on original mpg so another reason I left it as TS. You can delete the entire if statement and just update the one below it to open whatever filetypes you use ( comment out comskip if not ts|mpg )
- « Previous
- 1
- 2
- Next »