Can't play recordings
Added by vistalba vistalba over 6 years ago
Hi all
I use tvheadend in a docker container (linuxserver/tvheadend:latest).
I mounted /recordings into the container and configured it in my recording profile as direcroty.
If I record a tv stream now, it converts and save the files as set in the profile to /recordings. /recordings points to a SMB-Mount on my Ubuntu Server.
If I check, the file is on my SMB-Mount and I can play it in VLC or other applications like plex.
If I try to play it from the TVHeadend WebGUI or TVHClient on iPhone it runs into an error.
2018-02-12 22:11:57.672 [ INFO] dvr: /recordings/SomeShow/2018-02-12_21-50_SomeShow_Channel-HD.mp4 from adapter: "IPTV", network: "Networkprovider", mux: "Channel HD", provider: "Networkprodiver", service: "Channel HD" 2018-02-12 22:11:57.672 [ INFO] dvr: # type lang resolution aspect ratio sample rate channels 2018-02-12 22:11:57.672 [ INFO] dvr: 1 HEVC 1280x720 16:9 2018-02-12 22:11:57.672 [ INFO] dvr: 3 AAC-LATM und 24000 2 2018-02-12 22:12:15.804 [ INFO] subscription: 0002: "DVR: SomeShow" unsubscribing from "Channel HD" x265 [warning]: specified frame type is not compatible with max B-frames x265 [info]: frame I: 45, Avg QP:24.13 kb/s: 16529.29 x265 [info]: frame P: 219, Avg QP:25.25 kb/s: 3414.93 x265 [info]: frame B: 661, Avg QP:27.20 kb/s: 650.55 x265 [info]: consecutive B-frames: 16.3% 0.0% 0.8% 83.0% encoded 925 frames in 18.57s (49.80 fps), 2077.52 kb/s, Avg QP:26.59 2018-02-12 22:12:15.931 [ INFO] dvr: "SomeShow" on "Channel HD": End of program: Completed OK 2018-02-12 22:12:20.573 [ INFO] http: 10.32.0.1: using ticket bd6cfcc2496694d2393693f0332089b4f494d76f for /dvrfile/ce692fe4756c8b6e5188a0332f7588bc 2018-02-12 22:12:20.573 [ ERROR] http: unable to convert filename 'ASCII//TRANSLIT//IGNORE' to a safe form using charset '2018-02-12_21-50_SomeShow_Channel-HD.mp4' 2018-02-12 22:12:20.573 [ ERROR] http: 10.32.0.1: HTTP/1.1 GET /dvrfile/ce692fe4756c8b6e5188a0332f7588bc -- 500
First part is from recording... second from tring to play the file directly from the webgui. -> downloads file and open with vlc.
I also activated Configuration -> Debugging -> Debug to Syslog ... but I can't see more information in my log. So I'm not sure if it works properly.
I use utf8 as setting in recording profile also as mount option for my smb mount on ubuntu.
I can't figure out whats wrong... the file is there and can also deleted from the tvheadend webGUI... so there is no permission problem.
I also logged in into tvheadend docker container and tried to open the file on /recordings ... I can "cat" it so read permission is also work.
So now I'm really confused about that... maybe someone here has an idea or a hint how to solve this problem?
If you need some more log output or infos... just ask I will try to get and post it.
Replies (8)
RE: Can't play recordings - Added by Mark Clarkstone over 6 years ago
Well, "2018-02-12 22:12:20.573 [ ERROR] http: unable to convert filename 'ASCII//TRANSLIT//IGNORE' to a safe form using charset '2018-02-12_21-50_SomeShow_Channel-HD.mp4'" is a bit concerning!
Do you have windows compatible filenames enabled? If not enable it.
RE: Can't play recordings - Added by vistalba vistalba over 6 years ago
Yes, checkmark is enabled. Also the other one to replace all unsave characters.
RE: Can't play recordings - Added by Mark Clarkstone over 6 years ago
none none wrote:
Yes, checkmark is enabled. Also the other one to replace all unsave characters.
OK - try changing Character set to utf-8.
RE: Can't play recordings - Added by vistalba vistalba over 6 years ago
Characterset is already set to utf-8 (i think its the default). I also tried already to switch wo 8859-1 but in this case tvheadend only create a folder named „(null)“ and tvheadend comes unresponsive until I delete and recreate the container.
RE: Can't play recordings - Added by Mark Clarkstone over 6 years ago
Can you give a proper example of the filenames it's trying to create?
RE: Can't play recordings - Added by vistalba vistalba over 6 years ago
Okay... yes, I can. But to be clear: writing the file to the share is working. I can also play the file with VLC player. The problem only appears if I try to play the already recorded file with tvheadend.
Examples of filename and the path:
root@tvheadend-7b57d997f9-cmgwt:/recordings/Tagesschau$ ls -lha total 5.0G drwxr-xr-x 2 1000 root 0 Feb 12 21:14 . drwxr-xr-x 2 1000 root 0 Feb 12 22:45 .. -rwxr-xr-x 1 1000 root 1.5G Feb 10 19:52 2018-02-10_19-30_Tagesschau_SRF1-HD.ts -rwxr-xr-x 1 1000 root 1.8G Feb 11 19:57 2018-02-11_19-30_Tagesschau_SRF1-HD.ts -rwxr-xr-x 1 1000 root 1.8G Feb 12 19:57 2018-02-12_19-30_Tagesschau_SRF1-HD.ts
Tagesschau = Show Name
SRF1-HD = Channel Name
tvheadend is running as root inside the container.
RE: Can't play recordings - Added by Mark Clarkstone over 6 years ago
RE: Can't play recordings - Added by vistalba vistalba over 6 years ago
okay.. i tried it with "--debug --trace -l /config/log.txt" as start options.
Got this output:
2018-02-13 21:47:04.044 [ TRACE]:thread: created thread 139663960447720 [tvh:tcp-start / 0x55e69a632060(0x55e6a230e280)] 2018-02-13 21:47:04.044 [ TRACE]:http: HTTP/1.1 GET /play/dvrfile/7fd1f4552858df1420719c0a004b7012?title=Fussball%3A%20UEFA%20Champions%20League{{Host=tvheadend.my.internal-domain.com,User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36,Accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,Accept-Encoding=gzip, deflate, br,Accept-Language=de-CH,de-DE;q=0.9,de;q=0.8,en-US;q=0.7,en;q=0.6,Authorization=Digest,Cookie=__cfduid=d428b3c5f172888208319578b5a6ccc341514563594; ys-api/dvr/entry/grid_upcoming=o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253Adetails%25255Ewidth%25253Dn%2525253A46%255Eo%25253Aid%25253Ds%2525253Acategory%25255Ewidth%25253Dn%2525253A32%255Eo%25253Aid%25253Dn%2525253A2%25255Ewidth%25253Dn%2525253A25%255Eo%25253Aid%25253Dn%2525253A3%25255Ewidth%25253Dn%2525253A64%25255Ehidden%25253Db%2525253A1%255Eo%25253Aid%25253Dn%2525253A4%25255Ewidth%25253Dn%2525253A147%255Eo%25253Aid%25253Dn%2525253A5%25255Ewidth%25253Dn%2525253A147%255E 2018-02-13 21:47:04.044 [ TRACE]:access: vistalba:vistalba [SATWRE *], conn=0:s0:r0:l2, matched, profile=ANY, dvr=ANY, tag=ANY 2018-02-13 21:47:06.323 [ TRACE]:http: HTTP/1.1 GET /dvrfile/7fd1f4552858df1420719c0a004b7012?ticket=31f9f0c6593f2df6ac1eabb701bad95ab9f6a8c9{{Host=tvheadend.my.internal-domain.com,User-Agent=VLC/3.0.0 LibVLC/3.0.0,Accept=*/*,Accept-Language=de,Cookie=traefik-session-tvheadend=http://10.32.1.202:9981,Range=bytes=0-,X-Forwarded-For=192.168.1.172,X-Forwarded-Host=tvheadend.my.internal-domain.com,X-Forwarded-Port=443,X-Forwarded-Proto=https,X-Forwarded-Server=srv-cluster1,X-Real-Ip=192.168.1.172}} 2018-02-13 21:47:06.324 [ INFO]:http: 10.32.0.1: using ticket 31f9f0c6593f2df6ac1eabb701bad95ab9f6a8c9 for /dvrfile/7fd1f4552858df1420719c0a004b7012 2018-02-13 21:47:06.324 [ TRACE]:idnode: find node 7fd1f4552858df1420719c0a004b7012 class dvrentry 2018-02-13 21:47:06.324 [ ERROR]:http: unable to convert filename 'ASCII//TRANSLIT//IGNORE' to a safe form using charset '2018-02-13_20-30_Fussball_-UEFA-Champions-League_SRF-zwei-HD.mp4' 2018-02-13 21:47:06.324 [ ERROR]:http: 10.32.0.1: HTTP/1.1 GET /dvrfile/7fd1f4552858df1420719c0a004b7012 -- 500