- Edited
I have a problem with titles of video files created by TVHeadend both after running recording manually and through autorec. In example default recording profile has those options (file /home/hts/.hts/tvheadend/dvr/config/6af31fd6d023c41ef1d86191c0f6fac6
):
{
"enabled": true,
"name": "",
"profile": "cce0555725b5723a396327f3fc49f135",
"pri": 0,
"retention-days": 2147483646,
"removal-days": 2147483647,
"remove-after-playback": 0,
"pre-extra-time": 1,
"post-extra-time": 1,
"clone": true,
"rerecord-errors": 0,
"complex-scheduling": false,
"fetch-artwork": false,
"fetch-artwork-known-broadcasts-allow-unknown": false,
"storage": "/home/hts/multimedia/tv",
"storage-mfree": 1000,
"storage-mused": 0,
"directory-permissions": "0775",
"file-permissions": "0664",
"charset": "UNICODE",
"pathname": "%F_$t$n.$x",
"cache": 1,
"day-dir": false,
"channel-dir": false,
"title-dir": false,
"format-tvmovies-subdir": "tvmovies",
"format-tvshows-subdir": "tvshows",
"channel-in-title": false,
"date-in-title": true,
"time-in-title": false,
"episode-in-title": false,
"subtitle-in-title": false,
"omit-title": false,
"clean-title": true,
"whitespace-in-title": false,
"windows-compatible-filenames": true,
"tag-files": true,
"epg-update-window": 86400,
"epg-running": false,
"autorec-maxcount": 50,
"autorec-maxsched": 0,
"record": 0,
"skip-commercials": true,
"warm-time": 0
}
Of course this setup was generated with WebGUI. Despite:
Format string/Pathname specification: "%F_$t$n.$x"
recording creates a file /home/hts/multimedia/tv/2
which is a valid video.
Here's a part of tvheadend log during that recording:
2024-03-15 19:35:47.272 [ DEBUG]:dvr: File "/home/hts/multimedia/tv/2" -- Nie ma takiego pliku ani katalogu -- Using for recording
2024-03-15 19:35:47.287 [ INFO]:dvr: /home/hts/multimedia/tv/2 from adapter: "Afatech AF9033 (DVB-T) #0 : DVB-T #0", network: "kablowka", mux: "490MHz",
provider: "DOLSAT", service: "Polsat Film HD"
(Nie ma takiego pliku ani katalogu - there is no file or directory of that name)
When I try to record anything else without deleting that file, recording fails with that info in log:
2024-03-15 19:54:37.940 [ DEBUG]:dvr: Overwrite protection, file "/home/hts/multimedia/tv/2" exists
2024-03-15 19:54:37.940 [ ERROR]:dvr: unable to create unique name (missing $n in format string?)
2024-03-15 19:54:37.940 [ ERROR]:dvr: Recording error: "Rodzina zastępcza": Unable to create file
despite presence of '$n' in format string.
Sometimes it creates filename with only '2', another times something like '__2'.
Autorec is unusable, because after creation of first file, it won't create another.
What can cause this?
TVHeadend version Build: 4.3-2299~g79aaa1434 (2024-03-09T22:47:20+0000)
on Debian Bookworm.