I know it has been discussed before, but I can"t find the thread. Was some where in the earlier posts about cloning the drive without losing recordings?
I have copied the mkv files from Icebox to another drive on occassion in order to use on another player or edit the recording.
Player/editing software of choice will playback without issue but all program information/meta data is missing.
Where is that metadata located on the recorded file IceBox?
There is a section within our Help - IceBox Knowledge base under "Advanced Topics" titled Cloning an IceBox Drive?
It is my understanding that the .backup subfolder in the Recordings directory contains copies of the metadata for both timers and recordings. I cannot remember where the primary versions are stored (separate locations for timers and recordings), but I am sure that @Delta Mike Charlie will provide the location.
My recollection is that the ".backup" folder is not a standard LibreELEC/TVHeadend feature but was added by @Daniel Hall to aid in the recover of recordings when doing a soft reset.
Ian
PS the period at the commencement of the name of the .backup folder indicates that the folder is a hidden folder.
I used VLC to check an MKV recorded on my IceBox and I found that some of the metadata was already embedded in the recording file.
Capture.png
Here is some background for those who are interested:
Recording metadata storage is not immediately intuitive.
When a recording is first scheduled, it is allocated a unique identifier known as a UUID. A UUID is a 32 character alphanumeric code.
The recording object is stored in JSON format using its UUID as the file name in the following location:
/storage/.kodi/userdata/addon_data/service.tvheadendicetv/dvr/log
For example, a file listing may look like this:
IceBox:~/.kodi/userdata/addon_data/service.tvheadendicetv/dvr/log # ls -laF
total 260
drwxr-xr-x 2 root root 4096 Mar 19 04:56 ./
drwxr-xr-x 4 root root 4096 Feb 3 06:52 ../
-rw------- 1 root video 1675 Mar 19 04:25 0adebc216f77ac201111d207730a15d3
-rw-r--r-- 1 root root 1308 May 19 2024 10da6afacd236ba26a7e376d476934a4
<SNIP>
-rw-r--r-- 1 root root 1313 May 19 2024 2f3028fb79294202c66ebe67296b2f4b
-rw-r--r-- 1 root root 1443 May 19 2024 323b1479d7b8fba3e06b617c1d353e0e
-rw-r--r-- 1 root root 1609 May 19 2024 32ac943c0957cb9ce87a8fc8b6235000 <=====
-rw-r--r-- 1 root root 991 May 19 2024 39c14089533ab3a0d30d77320f55f2f5
<SNIP>
-rw------- 1 root video 1736 Mar 13 03:21 fbc771c322ab7a33e0a5aceb4d0304c5
-rw-r--r-- 1 root root 1464 May 19 2024 fc88cb3e59c2d505c6931f3d0c156a83
IceBox:~/.kodi/userdata/addon_data/service.tvheadendicetv/dvr/log #
The contents of the file '32ac943c0957cb9ce87a8fc8b6235000' looks like this:
{
"enabled": true,
"create": 1711432015,
"watched": 0,
"start": 1711434622,
"start_extra": 3,
"stop": 1711436345,
"stop_extra": 30,
"channel": "f3a1edcdce1970d9f41dd9bab16ff89e",
"channelname": "FTA-SBS ONE",
"title": {
"eng": "Letters And Numbers"
},
"description": {
"eng": "Two contestants pit their linguistic and numerical skills against each other and the clock in this entertaining quiz show. Join host Richard Morecroft along with Lily Serna and David Astle."
},
"pri": 2,
"retention": 0,
"removal": 0,
"playposition": 1022,
"playcount": 0,
"config_name": "8d0f5b7ae354d956d7fe5db25f5d0d24",
"creator": "127.0.0.1",
"errorcode": 0,
"errors": 0,
"data_errors": 7,
"dvb_eid": 56088,
"noresched": true,
"norerecord": false,
"fileremoved": 0,
"uri": "crid://sydney.sbsone.sbs.au/842467",
"autorec": "",
"timerec": "",
"parent": "",
"child": "",
"content_type": 3,
"copyright_year": 0,
"broadcast": 11697,
"age_rating": 9,
"rating_label_saved": "G",
"rating_icon_saved": "file:///storage/.kodi/addons/script.quicktvh/resources/ratingicons/acma-g.png",
"rating_label_uuid": "",
"files": [{
"filename": "/storage/recordings/Letters And Numbers/Letters And Numbers-FTA-SBS ONE2024-03-2606-30.mkv",
"info": [{
"type": "MPEG2AUDIO",
"language": "eng",
"audio_type": 0,
"audio_version": 2
}, {
"type": "MPEG2AUDIO",
"language": "aus",
"audio_type": 3,
"audio_version": 2
}, {
"type": "MPEG2VIDEO",
"width": 720,
"height": 576,
"duration": 3600,
"aspect_num": 16,
"aspect_den": 9
}, {
"type": "TEXTSUB",
"language": "eng",
"composition_id": 0,
"ancillary_id": 0
}
],
"start": 1711434442,
"stop": 1711438145,
"size": 998842998
}
]
}
To find the UUID of a recording using the file name, you can try this command:
grep -i -r "Letters And Numbers-FTA-SBS ONE2024-03-2606-30.mkv" .|awk -F ":" '{print $1}'
This information is not easily accessible but can also be obtained from the TVH API.
http://[ICEBOX_IP]:9981/api/idnode/load?uuid=[UUID_OF_RECORDING]
The programme sub-title and recording comments have been recently added to TVH. Also the parental rating was changed to show the rating text 'PG (AUS)' instead of the age.